Set flags for building the proper DriverFramework target

The DF_TARGET cmake variable needs to be set to (linux, darwin, qurt, nuttx)
The define __DF_LINUX or __DF_QURT needs to be set.
The __DF_DARWIN target is untested

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-11-16 23:24:59 -08:00
parent 62eba58fb4
commit 1bcb93180b
5 changed files with 19 additions and 2 deletions

View File

@@ -171,6 +171,7 @@ if(UNIX AND APPLE)
set(added_definitions
-D__PX4_POSIX
-D__PX4_DARWIN
-D__DF_DARWIN
-DCLOCK_MONOTONIC=1
-Dnoreturn_function=__attribute__\(\(noreturn\)\)
-include ${PX4_INCLUDE_DIR}visibility.h
@@ -185,6 +186,7 @@ else()
set(added_definitions
-D__PX4_POSIX
-D__PX4_LINUX
-D__DF_LINUX
-DCLOCK_MONOTONIC=1
-Dnoreturn_function=__attribute__\(\(noreturn\)\)
-include ${PX4_INCLUDE_DIR}visibility.h