• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_native_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_native_license"],
8}
9
10vintf_fragment {
11    name: "android.frameworks.stats-service.xml",
12    src: "android.frameworks.stats-service.xml",
13}
14
15cc_library_shared {
16    name: "libstatshidl",
17    srcs: [
18        "StatsAidl.cpp",
19        "StatsHal.cpp",
20    ],
21    cflags: [
22        "-Wall",
23        "-Werror",
24    ],
25    shared_libs: [
26        "android.frameworks.stats@1.0",
27        "android.frameworks.stats-V2-ndk",
28        "libbinder_ndk",
29        "libexpresslog",
30        "libhidlbase",
31        "liblog",
32        "libstatssocket",
33        "libutils",
34    ],
35    generated_sources: [
36        "statslog_hidl.cpp",
37    ],
38    generated_headers: [
39        "statslog_hidl.h",
40    ],
41    export_include_dirs: [
42        "include/",
43    ],
44    export_shared_lib_headers: [
45        "android.frameworks.stats@1.0",
46        "android.frameworks.stats-V2-ndk",
47    ],
48    local_include_dirs: [
49        "include/stats",
50    ],
51    vintf_fragment_modules: [
52        "android.frameworks.stats-service.xml",
53    ],
54}
55
56genrule {
57    name: "statslog_hidl.h",
58    tools: ["stats-log-api-gen"],
59    cmd: "$(location stats-log-api-gen)" +
60        " --header $(genDir)/statslog_hidl.h" +
61        " --module statshidl" +
62        " --namespace android,util,statshidl",
63    out: [
64        "statslog_hidl.h",
65    ],
66}
67
68genrule {
69    name: "statslog_hidl.cpp",
70    tools: ["stats-log-api-gen"],
71    cmd: "$(location stats-log-api-gen)" +
72        " --cpp $(genDir)/statslog_hidl.cpp" +
73        " --module statshidl" +
74        " --namespace android,util,statshidl" +
75        " --importHeader statslog_hidl.h",
76    out: [
77        "statslog_hidl.cpp",
78    ],
79}
80