mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 08:40:30 +08:00
cmake: add __DF_ defines with comments
This commit is contained in:
1 parent
0a4ca7c77f
commit
75657dc2eb
4 files changed
+7
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user