forked from Archive/PX4-Autopilot
cmake: add __DF_ defines with comments
This commit is contained in:
parent
0a4ca7c77f
commit
75657dc2eb
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue