summaryrefslogtreecommitdiff
path: root/android/Makefile.am
blob: e6b91876d70093ffb08075eda252c187a992d6f2 (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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
if ANDROID
android_plugindir = $(abs_top_srcdir)/android/.libs

noinst_PROGRAMS += android/system-emulator

android_system_emulator_SOURCES = android/system-emulator.c \
					monitor/mainloop.h monitor/mainloop.c

noinst_PROGRAMS += android/bluetoothd-snoop

android_bluetoothd_snoop_SOURCES = android/bluetoothd-snoop.c \
				monitor/mainloop.h monitor/mainloop.c \
				src/shared/btsnoop.h src/shared/btsnoop.c

noinst_PROGRAMS += android/bluetoothd

android_bluetoothd_SOURCES = android/main.c \
				src/log.c \
				android/hal-msg.h \
				android/audio-msg.h \
				android/utils.h \
				src/sdpd-database.c src/sdpd-server.c \
				src/sdpd-service.c src/sdpd-request.c \
				src/glib-helper.h src/glib-helper.c \
				src/eir.h src/eir.c \
				src/shared/io.h src/shared/io-glib.c \
				src/shared/queue.h src/shared/queue.c \
				src/shared/util.h src/shared/util.c \
				src/shared/mgmt.h src/shared/mgmt.c \
				android/bluetooth.h android/bluetooth.c \
				android/hidhost.h android/hidhost.c \
				android/ipc.h android/ipc.c \
				android/audio-ipc.h android/audio-ipc.c \
				android/avdtp.h android/avdtp.c \
				android/a2dp.h android/a2dp.c \
				android/socket.h android/socket.c \
				android/pan.h android/pan.c \
				btio/btio.h btio/btio.c \
				src/sdp-client.h src/sdp-client.c \
				profiles/network/bnep.h profiles/network/bnep.c

android_bluetoothd_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@

plugin_LTLIBRARIES += android/bluetooth.default.la

android_bluetooth_default_la_SOURCES = android/hal.h android/hal-bluetooth.c \
					android/hal-sock.c \
					android/hal-hidhost.c \
					android/hal-pan.c \
					android/hal-a2dp.c \
					android/hardware/bluetooth.h \
					android/hardware/bt_av.h \
					android/hardware/bt_gatt.h \
					android/hardware/bt_gatt_client.h \
					android/hardware/bt_gatt_server.h \
					android/hardware/bt_gatt_types.h \
					android/hardware/bt_hf.h \
					android/hardware/bt_hh.h \
					android/hardware/bt_hl.h \
					android/hardware/bt_pan.h \
					android/hardware/bt_rc.h \
					android/hardware/bt_sock.h \
					android/hardware/hardware.h \
					android/cutils/properties.h \
					android/hal-log.h \
					android/hal-ipc.h android/hal-ipc.c \
					android/hal-utils.h android/hal-utils.c

android_bluetooth_default_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/android
android_bluetooth_default_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \
					-no-undefined

noinst_PROGRAMS += android/haltest

android_haltest_SOURCES = android/client/haltest.c \
				android/client/pollhandler.h \
				android/client/pollhandler.c \
				android/client/terminal.h \
				android/client/terminal.c \
				android/client/history.h \
				android/client/history.c \
				android/client/tabcompletion.c \
				android/client/if-main.h \
				android/client/if-av.c \
				android/client/if-bt.c \
				android/client/if-gatt.c \
				android/client/if-hf.c \
				android/client/if-hh.c \
				android/client/if-pan.c \
				android/client/if-sock.c \
				android/client/if-audio.c \
				android/hardware/hardware.c \
				android/hal-utils.h android/hal-utils.c

android_haltest_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/android \
				-DPLUGINDIR=\""$(android_plugindir)"\"

android_haltest_LDFLAGS = -pthread -ldl

noinst_PROGRAMS += android/android-tester

android_android_tester_SOURCES = emulator/btdev.h emulator/btdev.c \
				emulator/bthost.h emulator/bthost.c \
				src/shared/io.h src/shared/io-glib.c \
				src/shared/queue.h src/shared/queue.c \
				src/shared/util.h src/shared/util.c \
				src/shared/mgmt.h src/shared/mgmt.c \
				src/shared/hciemu.h src/shared/hciemu.c \
				src/shared/tester.h src/shared/tester.c \
				monitor/rfcomm.h \
				android/hardware/hardware.c \
				android/android-tester.c

android_android_tester_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/android \
				-DPLUGINDIR=\""$(android_plugindir)"\"

android_android_tester_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@

android_android_tester_LDFLAGS = -pthread -ldl

plugin_LTLIBRARIES += android/audio.a2dp.default.la

android_audio_a2dp_default_la_SOURCES = android/audio-msg.h \
					android/hal-audio.c \
					android/hardware/audio.h \
					android/hardware/audio_effect.h \
					android/hardware/hardware.h \
					android/system/audio.h

android_audio_a2dp_default_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/android

android_audio_a2dp_default_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \
					-no-undefined -pthread

endif

EXTRA_DIST += android/Android.mk android/hal-ipc-api.txt android/README \
		android/pics-gap.txt android/pics-hid.txt \
		android/pics-pan.txt android/pics-did.txt \
		android/pics-opp.txt android/pics-pbap.txt \
		android/pixit-did.txt android/pts-did.txt \
		android/pixit-gap.txt android/pixit-hid.txt \
		android/pixit-opp.txt android/pixit-pan.txt \
		android/pixit-pbap.txt android/pts-gap.txt android/pts-hid.txt \
		android/pts-opp.txt android/pts-pbap.txt \
		android/audio-ipc-api.txt android/pics-map.txt \
		android/pixit-map.txt android/pts-map.txt \
		android/pics-l2cap.txt android/pixit-l2cap.txt \
		android/pics-avrcp.txt android/pixit-avrcp.txt \
		android/pics-a2dp.txt android/pixit-a2dp.txt \
		android/pics-avctp.txt android/pixit-avctp.txt \
		android/pts-l2cap.txt