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 "hardware_interfaces_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
10cc_defaults {
11    name: "cas_service_defaults@1.1",
12    defaults: ["hidl_defaults"],
13    vendor: true,
14    relative_install_path: "hw",
15    srcs: [
16      "CasImpl.cpp",
17      "DescramblerImpl.cpp",
18      "MediaCasService.cpp",
19      "service.cpp",
20      "SharedLibrary.cpp",
21      "TypeConvert.cpp",
22    ],
23
24    compile_multilib: "prefer32",
25
26    shared_libs: [
27      "android.hardware.cas@1.0",
28      "android.hardware.cas@1.1",
29      "android.hardware.cas.native@1.0",
30      "android.hidl.memory@1.0",
31      "libbinder",
32      "libhidlbase",
33      "libhidlmemory",
34      "liblog",
35      "libutils",
36    ],
37    header_libs: [
38      "libstagefright_foundation_headers",
39      "media_plugin_headers",
40    ],
41}
42
43cc_binary {
44    name: "android.hardware.cas@1.1-service",
45    vintf_fragments: ["android.hardware.cas@1.1-service.xml"],
46    defaults: ["cas_service_defaults@1.1"],
47    init_rc: ["android.hardware.cas@1.1-service.rc"],
48}
49
50cc_binary {
51    name: "android.hardware.cas@1.1-service-lazy",
52    vintf_fragments: ["android.hardware.cas@1.1-service-lazy.xml"],
53    overrides: ["android.hardware.cas@1.1-service"],
54    defaults: ["cas_service_defaults@1.1"],
55    init_rc: ["android.hardware.cas@1.1-service-lazy.rc"],
56    cflags: ["-DLAZY_SERVICE"],
57}
58