blob: d754560ea5739b30f34f4086951eee3b298e9d98 [file] [log] [blame]
Todd Poynorc7d606d2017-06-22 18:13:56 -07001subdirs = [
2 "libthermalcallback"
3]
4
Todd Poynorb2803522017-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 Poynorc7d606d2017-06-22 18:13:56 -070040 include_dirs: ["frameworks/native"],
41
Todd Poynorb2803522017-05-24 17:19:18 -070042 shared_libs: [
43 "libthermalservice",
44 "libbinder",
45 "libutils",
Todd Poynorc7d606d2017-06-22 18:13:56 -070046 "libthermalcallback",
47 "android.hardware.thermal@1.1",
48 "libhidlbase",
49 "libhidltransport",
50 "liblog",
Todd Poynorb2803522017-05-24 17:19:18 -070051 ],
52
53 cflags: [
54 "-Wall",
55 "-Werror",
56 "-Wunused",
57 "-Wunreachable-code",
58 ],
59
60 init_rc: ["thermalservice.rc"],
61}