mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
libusb: depend on all .gatt files
This commit is contained in:
parent
b795dcd07c
commit
e2cd77349c
@ -174,6 +174,9 @@ list(REMOVE_ITEM EXAMPLES_C ${EXAMPLES_OFF})
|
|||||||
# workaround: add lwip sources only to lwip_examples
|
# workaround: add lwip sources only to lwip_examples
|
||||||
set (LWIP_EXAMPLES pan_lwip_http_server)
|
set (LWIP_EXAMPLES pan_lwip_http_server)
|
||||||
|
|
||||||
|
# .gatt files in src
|
||||||
|
file(GLOB GATT_FILES "../../src/*/gatt-service/*.gatt")
|
||||||
|
|
||||||
# create targets
|
# create targets
|
||||||
foreach(EXAMPLE_FILE ${EXAMPLES_C})
|
foreach(EXAMPLE_FILE ${EXAMPLES_C})
|
||||||
get_filename_component(EXAMPLE ${EXAMPLE_FILE} NAME_WE)
|
get_filename_component(EXAMPLE ${EXAMPLE_FILE} NAME_WE)
|
||||||
@ -191,7 +194,7 @@ foreach(EXAMPLE_FILE ${EXAMPLES_C})
|
|||||||
message("example ${EXAMPLE} -- with GATT DB")
|
message("example ${EXAMPLE} -- with GATT DB")
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h
|
||||||
DEPENDS ${BTSTACK_ROOT}/example/${EXAMPLE}.gatt
|
DEPENDS ${BTSTACK_ROOT}/example/${EXAMPLE}.gatt ${GATT_FILES}
|
||||||
COMMAND ${Python_EXECUTABLE}
|
COMMAND ${Python_EXECUTABLE}
|
||||||
ARGS ${BTSTACK_ROOT}/tool/compile_gatt.py ${BTSTACK_ROOT}/example/${EXAMPLE}.gatt ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h
|
ARGS ${BTSTACK_ROOT}/tool/compile_gatt.py ${BTSTACK_ROOT}/example/${EXAMPLE}.gatt ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user