• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1soong_config_module_type {
2    name: "platform_filegroup",
3    module_type: "filegroup",
4    config_namespace: "ANDROID",
5    bool_variables: [
6        "crashrecovery_files_in_platform",
7    ],
8    properties: [
9        "srcs",
10    ],
11}
12
13platform_filegroup {
14    name: "services-crashrecovery-sources",
15    soong_config_variables: {
16        // if this flag is enabled, then files are part of platform
17        crashrecovery_files_in_platform: {
18            srcs: [
19                "java/**/*.java",
20                "java/**/*.aidl",
21                ":statslog-crashrecovery-java-gen",
22            ],
23        },
24    },
25    visibility: ["//frameworks/base:__subpackages__"],
26}
27
28soong_config_module_type {
29    name: "module_filegroup",
30    module_type: "filegroup",
31    config_namespace: "ANDROID",
32    bool_variables: [
33        "crashrecovery_files_in_module",
34    ],
35    properties: [
36        "srcs",
37    ],
38}
39
40module_filegroup {
41    name: "services-crashrecovery-module-sources",
42    soong_config_variables: {
43        // if this flag is enabled, then files are part of module
44        crashrecovery_files_in_module: {
45            srcs: [
46                "java/**/*.java",
47                "java/**/*.aidl",
48                ":statslog-crashrecovery-java-gen",
49            ],
50        },
51    },
52    visibility: ["//packages/modules/CrashRecovery/service"],
53}
54
55genrule {
56    name: "statslog-crashrecovery-java-gen",
57    tools: ["stats-log-api-gen"],
58    cmd: "$(location stats-log-api-gen) --java $(out) --module crashrecovery " +
59        "--javaPackage com.android.server.crashrecovery.proto --javaClass CrashRecoveryStatsLog --worksource",
60    out: ["com/android/server/crashrecovery/proto/CrashRecoveryStatsLog.java"],
61}
62