cmake: add __DF_ defines with comments

This commit is contained in:
Julian Oes 2016-10-04 17:53:09 +02:00 committed by Lorenz Meier
parent 0a4ca7c77f
commit 75657dc2eb
4 changed files with 7 additions and 6 deletions

View File

@ -3,9 +3,9 @@ include(posix/px4_impl_posix)
set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linux-gnueabihf-raspbian.cmake)
add_definitions(
-D__PX4_POSIX_BEBOP
-D__DF_LINUX
-D__DF_BEBOP
-D__PX4_POSIX_BEBOP
-D__DF_LINUX # Define needed DriverFramework
-D__DF_BEBOP # Define needed DriverFramework
)
set(CMAKE_PROGRAM_PATH

View File

@ -7,7 +7,7 @@ include(posix/px4_impl_posix)
# or if it is for the RPi.
add_definitions(
-D__PX4_POSIX_RPI
-D__LINUX
-D__DF_LINUX # For DriverFramework
)

View File

@ -434,7 +434,7 @@ function(px4_os_add_flags)
)
set(added_definitions
-D__PX4_NUTTX
-D__DF_NUTTX
-D__DF_NUTTX # Define for DriverFramework
)
set(added_c_flags
-nodefaultlibs

View File

@ -171,7 +171,8 @@ function(px4_os_add_flags)
)
set(added_definitions
-D__PX4_QURT
-D__PX4_QURT
-D__DF_QURT # For DriverFramework
-D__PX4_POSIX
-D__QAIC_SKEL_EXPORT=__EXPORT
-include ${PX4_INCLUDE_DIR}visibility.h