• 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_av_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_av_license"],
8}
9
10filegroup {
11    name: "tv_tuner_aidl",
12    srcs: [
13        "aidl/android/media/tv/tuner/*.aidl",
14    ],
15    path: "aidl",
16}
17
18filegroup {
19    name: "tv_tuner_frontend_info",
20    srcs: [
21        "aidl/android/media/tv/tuner/TunerFrontendInfo.aidl",
22        "aidl/android/media/tv/tuner/TunerFrontend*Capabilities.aidl",
23    ],
24    path: "aidl",
25}
26
27aidl_interface {
28    name: "tv_tuner_aidl_interface",
29    unstable: true,
30    local_include_dir: "aidl",
31    srcs: [
32        ":tv_tuner_aidl",
33    ],
34    imports: [
35        "android.hardware.common-V2",
36        "android.hardware.common.fmq-V1",
37    ],
38
39    backend: {
40        java: {
41            enabled: false,
42        },
43        cpp: {
44            enabled: false,
45        },
46        ndk: {
47            enabled: true,
48        },
49    },
50}
51
52aidl_interface {
53    name: "tv_tuner_frontend_info_aidl_interface",
54    unstable: true,
55    local_include_dir: "aidl",
56    srcs: [
57        ":tv_tuner_frontend_info",
58    ],
59
60    backend: {
61        java: {
62            enabled: true,
63        },
64        cpp: {
65            enabled: true,
66        },
67        ndk: {
68            enabled: true,
69        },
70    },
71}
72
73cc_library {
74    name: "libtunerservice",
75
76    srcs: [
77        "Tuner*.cpp",
78    ],
79
80    shared_libs: [
81        "android.hardware.tv.tuner@1.0",
82        "android.hardware.tv.tuner@1.1",
83        "libbase",
84        "libbinder",
85        "libbinder_ndk",
86        "libcutils",
87        "libfmq",
88        "libhidlbase",
89        "liblog",
90        "libmedia",
91        "libutils",
92        "tv_tuner_aidl_interface-ndk_platform",
93        "tv_tuner_resource_manager_aidl_interface-ndk_platform",
94        "tv_tuner_resource_manager_aidl_interface-cpp",
95    ],
96
97    static_libs: [
98        "android.hardware.common.fmq-V1-ndk_platform",
99        "libaidlcommonsupport",
100    ],
101
102    include_dirs: [
103        "frameworks/av/include"
104    ],
105
106    cflags: [
107        "-Werror",
108        "-Wall",
109    ],
110
111    export_include_dirs: ["."],
112}
113
114
115cc_binary {
116    name: "mediatuner",
117
118    srcs: [
119        "main_tunerservice.cpp",
120    ],
121
122    shared_libs: [
123        "android.hardware.tv.tuner@1.0",
124        "android.hardware.tv.tuner@1.1",
125        "libbase",
126        "libbinder",
127        "libfmq",
128        "liblog",
129        "libtunerservice",
130        "libutils",
131        "tv_tuner_resource_manager_aidl_interface-ndk_platform",
132        "tv_tuner_resource_manager_aidl_interface-cpp",
133    ],
134
135    static_libs: [
136        "tv_tuner_aidl_interface-ndk_platform",
137    ],
138
139    init_rc: ["mediatuner.rc"],
140
141    cflags: [
142        "-Werror",
143        "-Wall",
144    ],
145}
146