2011-01-22 18:41:51 +01:00
|
|
|
TEMPLATE = subdirs
|
|
|
|
|
2011-01-22 23:26:01 +01:00
|
|
|
defineReplace(targetPath) {
|
|
|
|
return($$replace(1, /, $$QMAKE_DIR_SEP))
|
|
|
|
}
|
|
|
|
|
|
|
|
defineReplace(addNewline) {
|
|
|
|
return($$escape_expand(\\n\\t))
|
|
|
|
}
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
BUILD_SUBDIR = release/
|
|
|
|
} else {
|
|
|
|
BUILD_SUBDIR = debug/
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
BUILD_SUBDIR =
|
|
|
|
}
|
|
|
|
|
|
|
|
win32:MKDIR=$(MKDIR)
|
|
|
|
!win32:MKDIR=$(MKDIR) -p
|
|
|
|
|
2011-01-23 05:00:51 +01:00
|
|
|
win32:SPEC = win32-g++
|
|
|
|
macx-g++:SPEC = macx-g++
|
|
|
|
linux-g++:SPEC = linux-g++
|
|
|
|
|
2011-01-22 18:41:51 +01:00
|
|
|
uavobjects.target = FORCE
|
2011-01-22 23:26:01 +01:00
|
|
|
uavobjects.commands += -$${MKDIR} $$targetPath(../../uavobject-synthetics) $$addNewline()
|
2011-01-23 19:13:36 +01:00
|
|
|
uavobjects.commands += cd $$targetPath(../../uavobject-synthetics) &&
|
2011-01-22 23:26:01 +01:00
|
|
|
uavobjects.commands += $$targetPath(../ground/uavobjgenerator/$${BUILD_SUBDIR}uavobjgenerator)
|
2011-01-23 19:13:36 +01:00
|
|
|
uavobjects.commands += -gcs $$targetPath(../../shared/uavobjectdefinition) $$targetPath(../..) $$addNewline()
|
|
|
|
uavobjects.commands += $$targetPath(../ground/uavobjgenerator/$${BUILD_SUBDIR}uavobjgenerator)
|
|
|
|
uavobjects.commands += -flight $$targetPath(../../shared/uavobjectdefinition) $$targetPath(../..) $$addNewline()
|
|
|
|
uavobjects.commands += $$targetPath(../ground/uavobjgenerator/$${BUILD_SUBDIR}uavobjgenerator)
|
|
|
|
uavobjects.commands += -python $$targetPath(../../shared/uavobjectdefinition) $$targetPath(../..) $$addNewline()
|
|
|
|
uavobjects.commands += $$targetPath(../ground/uavobjgenerator/$${BUILD_SUBDIR}uavobjgenerator)
|
|
|
|
uavobjects.commands += -matlab $$targetPath(../../shared/uavobjectdefinition) $$targetPath(../..) $$addNewline()
|
|
|
|
uavobjects.commands += cd $$targetPath(../ground/openpilotgcs) &&
|
|
|
|
uavobjects.commands += $(QMAKE) $$targetPath(../../../ground/openpilotgcs/)openpilotgcs.pro -spec $$SPEC -r $$addNewline()
|
2011-01-22 18:41:51 +01:00
|
|
|
QMAKE_EXTRA_TARGETS += uavobjects
|