-
Notifications
You must be signed in to change notification settings - Fork 3
/
Android.bp
87 lines (84 loc) · 1.62 KB
/
Android.bp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
soong_config_module_type {
name: "qti_thermal_hal_cc_defaults",
module_type: "cc_defaults",
config_namespace: "qti_thermal",
variables: ["netlink"],
properties: [
"cflags",
"header_libs",
"shared_libs",
"srcs",
],
}
soong_config_string_variable {
name: "netlink",
values: [
"true",
"false",
],
}
qti_thermal_hal_cc_defaults {
name: "qti_thermal_hal_defaults",
soong_config_variables: {
netlink: {
true: {
cflags: ["-DENABLE_THERMAL_NETLINK"],
header_libs: ["qti_kernel_headers"],
shared_libs: ["libnl"],
srcs: [
"thermalUtilsNetlink.cpp",
"thermalMonitorNetlink.cpp",
],
},
false: {
cflags: [],
header_libs: [],
shared_libs: [],
srcs: [
"thermalUtils.cpp",
"thermalMonitor.cpp",
],
},
conditions_default: {
cflags: ["-DENABLE_THERMAL_NETLINK"],
header_libs: ["qti_kernel_headers"],
shared_libs: ["libnl"],
srcs: [
"thermalUtilsNetlink.cpp",
"thermalMonitorNetlink.cpp",
],
},
},
},
}
cc_binary {
name: "android.hardware.thermal-service.qti",
defaults: ["qti_thermal_hal_defaults"],
relative_install_path: "hw",
init_rc: ["android.hardware.thermal-service.qti.rc"],
vintf_fragments: ["android.hardware.thermal-service.qti.xml"],
vendor: true,
shared_libs: [
"libbase",
"libbinder_ndk",
"android.hardware.thermal-V1-ndk",
"libcutils",
"libutils",
"liblog",
],
srcs: [
"service.cpp",
"thermal.cpp",
"thermalConfig.cpp",
"thermalCommon.cpp",
],
header_libs: [
"liblog_headers",
"libcutils_headers",
],
cflags: [
"-Wno-unused-parameter",
"-Wno-unused-variable",
"-fexceptions",
],
}