• 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
10cc_defaults {
11    name: "libscheduler_defaults",
12    defaults: ["surfaceflinger_defaults"],
13    cflags: [
14        "-DLOG_TAG=\"Scheduler\"",
15        "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
16    ],
17    shared_libs: [
18        "libbase",
19        "libcutils",
20        "liblog",
21        "libutils",
22    ],
23}
24
25cc_library_headers {
26    name: "libscheduler_headers",
27    defaults: ["libscheduler_defaults"],
28    export_include_dirs: ["include"],
29}
30
31// TODO(b/185535769): Remove libsurfaceflinger_unittest's dependency on AsyncCallRecorder.
32cc_library_headers {
33    name: "libscheduler_test_headers",
34    defaults: ["libscheduler_defaults"],
35    export_include_dirs: ["tests"],
36}
37
38cc_library_static {
39    name: "libscheduler",
40    defaults: ["libscheduler_defaults"],
41    srcs: [
42        "src/Timer.cpp",
43    ],
44    local_include_dirs: ["include"],
45    export_include_dirs: ["include"],
46}
47
48cc_test {
49    name: "libscheduler_test",
50    test_suites: ["device-tests"],
51    defaults: ["libscheduler_defaults"],
52    srcs: [
53        "tests/TimerTest.cpp",
54    ],
55    static_libs: [
56        "libgmock",
57        "libgtest",
58        "libscheduler",
59    ],
60    sanitize: {
61        address: true,
62    },
63}
64