blob: 2812c133afd5d12b1a9e2d01b20e85a3f5499145 [file] [log] [blame]
Todd Poynor46f388c2017-06-22 18:13:56 -07001subdirs = [
2 "libthermalcallback"
3]
4
Todd Poynor539d2562017-05-24 17:19:18 -07005cc_library {
6 name: "libthermalservice",
7
8 srcs: [
9 "aidl/android/os/IThermalEventListener.aidl",
10 "aidl/android/os/IThermalService.aidl",
11 "aidl/android/os/Temperature.cpp",
12 ],
13 aidl: {
14 include_dirs: ["frameworks/native/services/thermalservice/aidl"],
15 export_aidl_headers: true,
16 },
17 export_include_dirs: ["aidl"],
18
19 shared_libs: [
20 "libbinder",
21 "libutils",
22 ],
23
24 cflags: [
25 "-Wall",
26 "-Werror",
27 "-Wunused",
28 "-Wunreachable-code",
29 ],
30}
31
32cc_binary {
33 name: "thermalserviced",
34
35 srcs: [
36 "ThermalService.cpp",
37 "thermalserviced.cpp",
38 ],
39
Todd Poynor46f388c2017-06-22 18:13:56 -070040 include_dirs: ["frameworks/native"],
41
Todd Poynor539d2562017-05-24 17:19:18 -070042 shared_libs: [
Wei Wang52150002018-10-24 19:33:10 -070043 "libbase",
Todd Poynor539d2562017-05-24 17:19:18 -070044 "libthermalservice",
45 "libbinder",
46 "libutils",
Todd Poynor46f388c2017-06-22 18:13:56 -070047 "libthermalcallback",
48 "android.hardware.thermal@1.1",
Wei Wang52150002018-10-24 19:33:10 -070049 "android.hardware.thermal@2.0",
Todd Poynor46f388c2017-06-22 18:13:56 -070050 "libhidlbase",
51 "libhidltransport",
52 "liblog",
Todd Poynor539d2562017-05-24 17:19:18 -070053 ],
54
55 cflags: [
56 "-Wall",
57 "-Werror",
58 "-Wunused",
59 "-Wunreachable-code",
60 ],
61
62 init_rc: ["thermalservice.rc"],
63}