1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-07 18:46:06 +01:00
LibrePilot/ground/uavobjects/uavobjects.pro
2011-01-23 04:00:51 +00:00

36 lines
1009 B
Prolog

TEMPLATE = subdirs
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
win32:SPEC = win32-g++
macx-g++:SPEC = macx-g++
linux-g++:SPEC = linux-g++
uavobjects.target = FORCE
uavobjects.commands += -$${MKDIR} $$targetPath(../../uavobject-synthetics) $$addNewline()
uavobjects.commands += cd $$targetPath(../../uavobject-synthetics) &&
uavobjects.commands += $$targetPath(../ground/uavobjgenerator/$${BUILD_SUBDIR}uavobjgenerator)
uavobjects.commands += -gcs ../../shared/uavobjectdefinition ../.. $$addNewline()
uavobjects.commands += cd $$targetPath(../openpilotgcs) &&
uavobjects.commands += $(QMAKE) ../../../ground/openpilotgcs/openpilotgcs.pro -spec $$SPEC -r $$addNewline()
QMAKE_EXTRA_TARGETS += uavobjects