summaryrefslogtreecommitdiff
path: root/Android.bp
blob: 930ec37805bfcf184ad8cd304f69953ea0b48fa5 (plain)
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
cc_binary {
	name: "android.hardware.thermal@2.0-service.qti",
	defaults: [
		"hidl_defaults",
	],
	vendor: true,
	relative_install_path: "hw",
	init_rc: ["android.hardware.thermal@2.0-service.qti.rc"],
	vintf_fragments: ["android.hardware.thermal@2.0-service.qti.xml"],
	srcs: [
		"service.cpp",
		"thermal.cpp",
		"thermalConfig.cpp",
		"thermalCommon.cpp",
		"thermalUtils.cpp",
		"thermalMonitor.cpp",
	],
	shared_libs: [
		"libbase",
		"libcutils",
		"libhidlbase",
		"libutils",
		"liblog",
		"android.hardware.thermal@1.0",
		"android.hardware.thermal@2.0",
	],
	header_libs: [
		"liblog_headers",
		"libcutils_headers"
	],
	cflags: [
		"-Wno-unused-parameter",
		"-Wno-unused-variable",
		"-fexceptions",
	],
}

cc_binary {
	name: "android.hardware.thermal@2.0-service.qti-v2",
	defaults: [
		"hidl_defaults",
	],
	vendor: true,
	relative_install_path: "hw",
	init_rc: ["android.hardware.thermal@2.0-service.qti-v2.rc"],
	vintf_fragments: ["android.hardware.thermal@2.0-service.qti.xml"],
	srcs: [
		"service.cpp",
		"thermal.cpp",
		"thermalConfig.cpp",
		"thermalCommon.cpp",
		"thermalUtilsNetlink.cpp",
		"thermalMonitorNetlink.cpp",
	],
	shared_libs: [
		"libbase",
		"libcutils",
		"libhidlbase",
		"libutils",
		"liblog",
		"libnl",
		"android.hardware.thermal@1.0",
		"android.hardware.thermal@2.0",
	],
	header_libs: [
		"liblog_headers",
		"libcutils_headers",
		"qti_kernel_headers"
	],
	cflags: [
		"-Wno-unused-parameter",
		"-Wno-unused-variable",
		"-DENABLE_THERMAL_NETLINK",
		"-fexceptions",
	],
}