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 10aidl_interface { 11 name: "tv_tuner_aidl_interface", 12 unstable: true, 13 local_include_dir: "aidl", 14 srcs: ["aidl/android/media/tv/tuner/*.aidl"], 15 imports: [ 16 "android.hardware.common-V2", 17 "android.hardware.common.fmq-V1", 18 "android.hardware.tv.tuner-V2", 19 ], 20 backend: { 21 java: { 22 enabled: false, 23 }, 24 cpp: { 25 enabled: false, 26 }, 27 ndk: { 28 enabled: true, 29 }, 30 }, 31} 32 33cc_library { 34 name: "libtunerservice", 35 36 srcs: [ 37 "Tuner*.cpp", 38 "hidl/Tuner*.cpp", 39 ], 40 41 shared_libs: [ 42 "android.hardware.tv.tuner@1.0", 43 "android.hardware.tv.tuner@1.1", 44 "android.hardware.tv.tuner-V2-ndk", 45 "libbase", 46 "libbinder", 47 "libbinder_ndk", 48 "libcutils", 49 "libfmq", 50 "libhidlbase", 51 "liblog", 52 "libmedia", 53 "libutils", 54 "packagemanager_aidl-cpp", 55 "tv_tuner_aidl_interface-ndk", 56 "tv_tuner_resource_manager_aidl_interface-ndk", 57 ], 58 59 static_libs: [ 60 "android.hardware.common.fmq-V1-ndk", 61 "libaidlcommonsupport", 62 ], 63 64 include_dirs: [ 65 "frameworks/av/include" 66 ], 67 68 cflags: [ 69 "-Werror", 70 "-Wall", 71 ], 72 73 export_include_dirs: ["."], 74} 75 76 77cc_binary { 78 name: "mediatuner", 79 80 srcs: [ 81 "main_tunerservice.cpp", 82 ], 83 84 shared_libs: [ 85 "android.hardware.tv.tuner@1.0", 86 "android.hardware.tv.tuner@1.1", 87 "android.hardware.tv.tuner-V2-ndk", 88 "libbase", 89 "libcutils", 90 "libbinder", 91 "libfmq", 92 "libhidlbase", 93 "liblog", 94 "libtunerservice", 95 "libutils", 96 "tv_tuner_aidl_interface-ndk", 97 "tv_tuner_resource_manager_aidl_interface-ndk", 98 ], 99 100 init_rc: ["mediatuner.rc"], 101 102 cflags: [ 103 "-Werror", 104 "-Wall", 105 ], 106} 107