example/avdtp_sink: move avdtp_sink_demo to examples

This commit is contained in:
Matthias Ringwald 2017-06-02 14:32:04 +02:00
parent b0ffbc3514
commit 08c0d996ca
10 changed files with 13 additions and 7 deletions

View File

@ -108,6 +108,7 @@ HXCMOD_PLAYER = \
${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods/nao-deceased_by_disease.c \ ${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods/nao-deceased_by_disease.c \
EXAMPLES = \ EXAMPLES = \
avdtp_sink_demo \
avdtp_source_demo \ avdtp_source_demo \
ancs_client_demo \ ancs_client_demo \
gap_dedicated_bonding \ gap_dedicated_bonding \
@ -270,6 +271,9 @@ hid_keyboard_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} btstac
avdtp_source_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_ENCODER_OBJ} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} ${HXCMOD_PLAYER_OBJ} avdtp_source_demo.c avdtp_source_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_ENCODER_OBJ} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} ${HXCMOD_PLAYER_OBJ} avdtp_source_demo.c
${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@ ${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
avdtp_sink_demo: ${CORE_OBJ} ${COMMON_OBJ} ${CLASSIC_OBJ} ${SDP_CLIENT} ${SBC_ENCODER_OBJ} ${SBC_DECODER_OBJ} ${AVDTP_OBJ} avdtp_sink_demo.c
${CC} $^ ${CFLAGS} -I${BTSTACK_ROOT}/platform/posix ${LDFLAGS} -o $@
clean: clean:
rm -f ${EXAMPLES} rm -f ${EXAMPLES}

View File

@ -3,7 +3,7 @@ BTSTACK_ROOT = ../..
CORE += main.c btstack_stdin_posix.c CORE += main.c btstack_stdin_posix.c
COMMON += hci_transport_h2_libusb.c btstack_run_loop_posix.c le_device_db_fs.c btstack_link_key_db_fs.c COMMON += hci_transport_h2_libusb.c btstack_run_loop_posix.c le_device_db_fs.c btstack_link_key_db_fs.c wav_util.c
include ${BTSTACK_ROOT}/example/Makefile.inc include ${BTSTACK_ROOT}/example/Makefile.inc
@ -30,8 +30,8 @@ LDFLAGS += $(shell pkg-config libusb-1.0 --libs)
endif endif
# use pkg-config for portaudio # use pkg-config for portaudio
# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs) LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
# hard coded flags for portaudio in /usr/local/lib # hard coded flags for portaudio in /usr/local/lib
# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO # CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO
# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon # LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon

View File

@ -10,6 +10,7 @@ CORE += \
hci_transport_h4.c \ hci_transport_h4.c \
le_device_db_fs.c \ le_device_db_fs.c \
main.c \ main.c \
wav_util.c \
stdin_support.c \ stdin_support.c \
# examples # examples

View File

@ -16,6 +16,7 @@ CORE += \
le_device_db_fs.c \ le_device_db_fs.c \
main.c \ main.c \
btstack_stdin_posix.c \ btstack_stdin_posix.c \
wav_util.c \
# bluetooth_init_cc2564_2.14.c \ # bluetooth_init_cc2564_2.14.c \
# bluetooth_init_cc2564C_1.0.c \ # bluetooth_init_cc2564C_1.0.c \

View File

@ -11,6 +11,7 @@ CORE += \
hci_transport_h5.c \ hci_transport_h5.c \
le_device_db_fs.c \ le_device_db_fs.c \
main.c \ main.c \
wav_util.c \
btstack_stdin.c \ btstack_stdin.c \
# examples # examples

View File

@ -15,6 +15,7 @@ CORE += \
hci_transport_h5.c \ hci_transport_h5.c \
le_device_db_fs.c \ le_device_db_fs.c \
main.c \ main.c \
wav_util.c \
btstack_stdin.c \ btstack_stdin.c \
# TI-WL183x requires TIInit_11.8.32.c # TI-WL183x requires TIInit_11.8.32.c

View File

@ -16,6 +16,7 @@ COMMON += \
btstack_chipset_stlc2500d.c \ btstack_chipset_stlc2500d.c \
btstack_chipset_tc3566x.c \ btstack_chipset_tc3566x.c \
btstack_chipset_bcm.c \ btstack_chipset_bcm.c \
wav_util.c \
# examples # examples
include ${BTSTACK_ROOT}/example/Makefile.inc include ${BTSTACK_ROOT}/example/Makefile.inc

View File

@ -3,7 +3,7 @@ BTSTACK_ROOT = ../..
CORE += main.c btstack_stdin_windows.c CORE += main.c btstack_stdin_windows.c
COMMON += hci_transport_h2_winusb.c btstack_run_loop_windows.c le_device_db_fs.c btstack_link_key_db_fs.c COMMON += hci_transport_h2_winusb.c btstack_run_loop_windows.c le_device_db_fs.c btstack_link_key_db_fs.c wav_util.c
include ${BTSTACK_ROOT}/example/Makefile.inc include ${BTSTACK_ROOT}/example/Makefile.inc

View File

@ -99,9 +99,6 @@ HXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o)
all: ${AVDTP_TESTS} all: ${AVDTP_TESTS}
avdtp_sink_demo: ${CORE_OBJ} ${COMMON_OBJ} ${SBC_DECODER_OBJ} ${SBC_ENCODER_OBJ} ${AVDTP_OBJ} avdtp_sink_demo.o
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
portaudio_test: btstack_util.o hci_dump.o wav_util.o btstack_ring_buffer.o portaudio_test.c portaudio_test: btstack_util.o hci_dump.o wav_util.o btstack_ring_buffer.o portaudio_test.c
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@ ${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@