mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 19:20:51 +00:00
example/avdtp_sink: move avdtp_sink_demo to examples
This commit is contained in:
parent
b0ffbc3514
commit
08c0d996ca
@ -108,6 +108,7 @@ HXCMOD_PLAYER = \
|
||||
${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods/nao-deceased_by_disease.c \
|
||||
|
||||
EXAMPLES = \
|
||||
avdtp_sink_demo \
|
||||
avdtp_source_demo \
|
||||
ancs_client_demo \
|
||||
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
|
||||
${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:
|
||||
rm -f ${EXAMPLES}
|
||||
|
@ -3,7 +3,7 @@ BTSTACK_ROOT = ../..
|
||||
|
||||
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
|
||||
|
||||
@ -30,8 +30,8 @@ LDFLAGS += $(shell pkg-config libusb-1.0 --libs)
|
||||
endif
|
||||
|
||||
# use pkg-config for portaudio
|
||||
# CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
|
||||
# LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
|
||||
CFLAGS += $(shell pkg-config portaudio-2.0 --cflags) -DHAVE_PORTAUDIO
|
||||
LDFLAGS += $(shell pkg-config portaudio-2.0 --libs)
|
||||
# hard coded flags for portaudio in /usr/local/lib
|
||||
# CFLAGS += -I/usr/local/include -DHAVE_PORTAUDIO
|
||||
# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
|
||||
|
@ -10,6 +10,7 @@ CORE += \
|
||||
hci_transport_h4.c \
|
||||
le_device_db_fs.c \
|
||||
main.c \
|
||||
wav_util.c \
|
||||
stdin_support.c \
|
||||
|
||||
# examples
|
||||
|
@ -16,6 +16,7 @@ CORE += \
|
||||
le_device_db_fs.c \
|
||||
main.c \
|
||||
btstack_stdin_posix.c \
|
||||
wav_util.c \
|
||||
# bluetooth_init_cc2564_2.14.c \
|
||||
# bluetooth_init_cc2564C_1.0.c \
|
||||
|
||||
|
@ -11,6 +11,7 @@ CORE += \
|
||||
hci_transport_h5.c \
|
||||
le_device_db_fs.c \
|
||||
main.c \
|
||||
wav_util.c \
|
||||
btstack_stdin.c \
|
||||
|
||||
# examples
|
||||
|
@ -15,6 +15,7 @@ CORE += \
|
||||
hci_transport_h5.c \
|
||||
le_device_db_fs.c \
|
||||
main.c \
|
||||
wav_util.c \
|
||||
btstack_stdin.c \
|
||||
|
||||
# TI-WL183x requires TIInit_11.8.32.c
|
||||
|
@ -16,6 +16,7 @@ COMMON += \
|
||||
btstack_chipset_stlc2500d.c \
|
||||
btstack_chipset_tc3566x.c \
|
||||
btstack_chipset_bcm.c \
|
||||
wav_util.c \
|
||||
|
||||
# examples
|
||||
include ${BTSTACK_ROOT}/example/Makefile.inc
|
||||
|
@ -3,7 +3,7 @@ BTSTACK_ROOT = ../..
|
||||
|
||||
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
|
||||
|
||||
|
@ -99,9 +99,6 @@ HXCMOD_PLAYER_OBJ = $(HXCMOD_PLAYER:.c=.o)
|
||||
|
||||
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
|
||||
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user