port: add missing BTSTACK_ROOT

This commit is contained in:
Matthias Ringwald 2022-06-13 17:09:48 +02:00
parent 02bddf72de
commit dce6d7b3e9
6 changed files with 14 additions and 4 deletions

View File

@ -5,6 +5,7 @@ SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(BTstack-libusb)
SET(BTSTACK_ROOT ${CMAKE_SOURCE_DIR}/../..)
# pkgconfig
find_package(PkgConfig REQUIRED)

View File

@ -5,6 +5,8 @@ SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)
project(BTstack-posix-h4-zephyr)
SET(BTSTACK_ROOT ${CMAKE_SOURCE_DIR}/../..)
# pkgconfig
find_package(PkgConfig REQUIRED)

View File

@ -172,7 +172,8 @@ foreach(EXAMPLE ${EXAMPLES})
# add GATT DB creation
if ( "${EXAMPLES_GATT_FILES}" MATCHES ${EXAMPLE} )
message("example ${EXAMPLE} -- with GATT DB")
add_custom_command(
message("${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h <- ${Python_EXECUTABLE} ${BTSTACK_ROOT}/tool/compile_gatt.py ${BTSTACK_ROOT}/example/${EXAMPLE}.gatt ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h")
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h
DEPENDS ${BTSTACK_ROOT}/example/${EXAMPLE}.gatt
COMMAND ${Python_EXECUTABLE}

View File

@ -2,6 +2,8 @@ cmake_minimum_required (VERSION 3.5)
project(BTstack-windows-h4-da14585)
SET(BTSTACK_ROOT ${CMAKE_SOURCE_DIR}/../..)
# extra compiler warnings
if ("${CMAKE_C_COMPILER_ID}" MATCHES ".*Clang.*")
# using Clang
@ -82,9 +84,9 @@ foreach(EXAMPLE ${EXAMPLES})
message("example ${EXAMPLE} -- with GATT DB")
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h
DEPENDS ${BTSTACK_ROOT}/example/${EXAMPLE}.gatt
COMMAND ${Python_EXECUTABLE}
ARGS ${BTSTACK_ROOT}/tool/compile_gatt.py ${BTSTACK_ROOT}/example/${EXAMPLE}.gatt ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h
DEPENDS ${CMAKE_SOURCE_DIR}/../../example/${EXAMPLE}.gatt
COMMAND ${CMAKE_SOURCE_DIR}/../../tool/compile_gatt.py
ARGS ${CMAKE_SOURCE_DIR}/../../example/${EXAMPLE}.gatt ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h
)
list(APPEND SOURCE_FILES ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h)
else()

View File

@ -2,6 +2,8 @@ cmake_minimum_required (VERSION 3.5)
project(BTstack-windows-h4-zephyr)
SET(BTSTACK_ROOT ${CMAKE_SOURCE_DIR}/../..)
# extra compiler warnings
if ("${CMAKE_C_COMPILER_ID}" MATCHES ".*Clang.*")
# using Clang

View File

@ -2,6 +2,8 @@ cmake_minimum_required (VERSION 3.5)
project(BTstack-windows-winusb)
SET(BTSTACK_ROOT ${CMAKE_SOURCE_DIR}/../..)
# extra compiler warnings
if ("${CMAKE_C_COMPILER_ID}" MATCHES ".*Clang.*")
# using Clang