Todd Poynor | b280352 | 2017-05-24 17:19:18 -0700 | [diff] [blame^] | 1 | cc_library { |
| 2 | name: "libthermalservice", |
| 3 | |
| 4 | srcs: [ |
| 5 | "aidl/android/os/IThermalEventListener.aidl", |
| 6 | "aidl/android/os/IThermalService.aidl", |
| 7 | "aidl/android/os/Temperature.cpp", |
| 8 | ], |
| 9 | aidl: { |
| 10 | include_dirs: ["frameworks/native/services/thermalservice/aidl"], |
| 11 | export_aidl_headers: true, |
| 12 | }, |
| 13 | export_include_dirs: ["aidl"], |
| 14 | |
| 15 | shared_libs: [ |
| 16 | "libbinder", |
| 17 | "libutils", |
| 18 | ], |
| 19 | |
| 20 | cflags: [ |
| 21 | "-Wall", |
| 22 | "-Werror", |
| 23 | "-Wunused", |
| 24 | "-Wunreachable-code", |
| 25 | ], |
| 26 | } |
| 27 | |
| 28 | cc_binary { |
| 29 | name: "thermalserviced", |
| 30 | |
| 31 | srcs: [ |
| 32 | "ThermalService.cpp", |
| 33 | "thermalserviced.cpp", |
| 34 | ], |
| 35 | |
| 36 | shared_libs: [ |
| 37 | "libthermalservice", |
| 38 | "libbinder", |
| 39 | "libutils", |
| 40 | ], |
| 41 | |
| 42 | cflags: [ |
| 43 | "-Wall", |
| 44 | "-Werror", |
| 45 | "-Wunused", |
| 46 | "-Wunreachable-code", |
| 47 | ], |
| 48 | |
| 49 | init_rc: ["thermalservice.rc"], |
| 50 | } |