1 subdirs = [ 2 "libthermalcallback" 3 ] 4 5 cc_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 32 cc_binary { 33 name: "thermalserviced", 34 35 srcs: [ 36 "ThermalService.cpp", 37 "thermalserviced.cpp", 38 ], 39 40 include_dirs: ["frameworks/native"], 41 42 shared_libs: [ 43 "libthermalservice", 44 "libbinder", 45 "libutils", 46 "libthermalcallback", 47 "android.hardware.thermal (a] 1.1", 48 "libhidlbase", 49 "libhidltransport", 50 "liblog", 51 ], 52 53 cflags: [ 54 "-Wall", 55 "-Werror", 56 "-Wunused", 57 "-Wunreachable-code", 58 ], 59 60 init_rc: ["thermalservice.rc"], 61 } 62