forked from tobetter/wiringPi
-
Notifications
You must be signed in to change notification settings - Fork 61
/
Android.bp
123 lines (107 loc) · 2.52 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
cc_library_headers {
name: "wiringPi-headers",
export_include_dirs: ["wiringPi"],
vendor_available: true,
host_supported: true,
}
cc_library_shared {
header_libs: ["wiringPi-headers"],
name: "libwiringPi",
srcs: [
"wiringPi/ads1115.c",
"wiringPi/mcp23008.c",
"wiringPi/mcp4802.c",
"wiringPi/piHiPri.c",
"wiringPi/sr595.c",
"wiringPi/bmp180.c",
"wiringPi/mcp23016.c",
"wiringPi/odroidc1.c",
"wiringPi/odroidn2.c",
"wiringPi/piThread.c",
"wiringPi/wiringPi.c",
"wiringPi/mcp23017.c",
"wiringPi/odroidc2.c",
"wiringPi/odroidc4.c",
"wiringPi/odroidhc4.c",
"wiringPi/odroidm1.c",
"wiringPi/odroidm1s.c",
"wiringPi/drcSerial.c",
"wiringPi/mcp23s08.c",
"wiringPi/odroidn1.c",
"wiringPi/wiringPiI2C.c",
"wiringPi/ds18b20.c",
"wiringPi/mcp23s17.c",
"wiringPi/sn3218.c",
"wiringPi/wiringPiSPI.c",
"wiringPi/htu21d.c",
"wiringPi/mcp3002.c",
"wiringPi/odroidxu3.c",
"wiringPi/softPwm.c",
"wiringPi/wiringSerial.c",
"wiringPi/max31855.c",
"wiringPi/mcp3004.c",
"wiringPi/pcf8574.c",
"wiringPi/softServo.c",
"wiringPi/wiringShift.c",
"wiringPi/max5322.c",
"wiringPi/mcp3422.c",
"wiringPi/pcf8591.c",
"wiringPi/softTone.c",
],
vendor_available: true,
cflags: [
"-UNDEBUG",
"-DANDROID",
"-Wno-return-type",
],
host_ldlibs: [
"-ldl",
"-llog",
],
}
cc_library_shared {
header_libs: ["wiringPi-headers"],
name: "libwiringPiDev",
srcs: [
"devLib/ds1302.c",
"devLib/maxdetect.c",
"devLib/piNes.c",
"devLib/gertboard.c",
"devLib/lcd128x64.c",
"devLib/lcd.c",
"devLib/piGlow.c",
"devLib/scrollPhat.c",
"devLib/piFace.c",
],
shared_libs: ["libwiringPi"],
host_ldlibs: [
"-ldl",
"-llog",
],
cflags: [
"-UNDEBUG",
"-DANDROID",
"-Wno-return-type",
],
}
cc_binary {
name: "gpio",
srcs: [
"gpio/gpio.c",
"gpio/readall.c",
],
header_libs: ["wiringPi-headers"],
local_include_dirs: [
"devLib",
],
cflags: [
"-UNDEBUG",
"-DANDROID",
"-Wno-return-type",
],
host_ldlibs: ["-llog"],
shared_libs: [
"libwiringPi",
"libwiringPiDev",
],
}