mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 03:35:20 +00:00
daemon: use USB_CFLAGS/LDFLAGS, set linker flags for winusb
This commit is contained in:
parent
ddca189c91
commit
6358dec73f
@ -55,6 +55,7 @@ case "$host_os" in
|
||||
# BTSTACK_DEVICE_NAME_DB_INSTANCE="btstack_device_name_db_memory_instance"
|
||||
UNIX_SOCKETS=no
|
||||
HCI_USB_LIB=winusb
|
||||
USB_LDFLAGS="-lsetupapi -lwinusb"
|
||||
UART_BLOCK=windows
|
||||
;;
|
||||
*)
|
||||
@ -88,7 +89,7 @@ if test "x$HCI_TRANSPORT" = xUSB && test "x$HCI_USB_LIB" == xlibusb; then
|
||||
if test "$HAVE_LIBUSB" == "no" ; then
|
||||
AC_MSG_ERROR(USB Transport requested but libusb-1.0 not found using pkg-config. Please set PKG_CONFIG_PATH correctly and/or install libusb-1.0 from your distribution or from http://libusb.sourceforge.net/api-1.0/)
|
||||
fi
|
||||
LIBUSB_LDFLAGS=$LIBUSB_LIBS
|
||||
USB_LDFLAGS=$LIBUSB_LIBS
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_LIBUSB, [test "x$HAVE_LIBUSB" == "xyes"])
|
||||
|
||||
@ -104,19 +105,19 @@ BTSTACK_LIB_LDFLAGS+=" -fpic"
|
||||
|
||||
# summary
|
||||
|
||||
echo "CC: $CC"
|
||||
echo "CFLAGS: $CFLAGS"
|
||||
echo "LDFLAGS: $LDFLAGS"
|
||||
echo "BTSTACK_LIB_LDFLAGS: $BTSTACK_LIB_LDFLAGS"
|
||||
echo "CC: $CC"
|
||||
echo "CFLAGS: $CFLAGS"
|
||||
echo "LDFLAGS: $LDFLAGS"
|
||||
echo "BTSTACK_LIB_LDFLAGS: $BTSTACK_LIB_LDFLAGS"
|
||||
|
||||
if test "x$HCI_TRANSPORT" = xUSB; then
|
||||
echo "USB_PRODUCT_ID: $USB_PRODUCT_ID"
|
||||
echo "USB_VENDOR_ID: $USB_VENDOR_ID"
|
||||
echo "LIBUSB_CFLAGS: $LIBUSB_CFLAGS"
|
||||
echo "LIBUSB_LDFLAGS: $LIBUSB_LDFLAGS"
|
||||
echo "USB_PRODUCT_ID: $USB_PRODUCT_ID"
|
||||
echo "USB_VENDOR_ID: $USB_VENDOR_ID"
|
||||
echo "USB_CFLAGS: $USB_CFLAGS"
|
||||
echo "USB_LDFLAGS: $USB_LDFLAGS"
|
||||
else
|
||||
echo "UART_DEVICE: $UART_DEVICE"
|
||||
echo "UART_SPEED: $UART_SPEED"
|
||||
echo "UART_DEVICE: $UART_DEVICE"
|
||||
echo "UART_SPEED: $UART_SPEED"
|
||||
fi
|
||||
|
||||
echo "BTSTACK_LINK_KEY_DB: $BTSTACK_LINK_KEY_DB_INSTANCE"
|
||||
@ -195,6 +196,6 @@ AC_SUBST(CFLAGS)
|
||||
AC_SUBST(CPPFLAGS)
|
||||
AC_SUBST(BTSTACK_LIB_LDFLAGS)
|
||||
AC_SUBST(BTSTACK_LIB_EXTENSION)
|
||||
AC_SUBST(LIBUSB_CFLAGS)
|
||||
AC_SUBST(LIBUSB_LDFLAGS)
|
||||
AC_SUBST(USB_CFLAGS)
|
||||
AC_SUBST(USB_LDFLAGS)
|
||||
AC_OUTPUT(Makefile src/Makefile example/Makefile)
|
||||
|
Loading…
x
Reference in New Issue
Block a user