1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00
LibrePilot/ground/uavobjects/uavobjects.pro
zedamota 6b38f84afe It seems that after the Big Mess its getting difficult to make things work for everyone
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2553 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-23 19:46:34 +00:00

37 lines
1.1 KiB
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 -flight -python -matlab $$targetPath(../../shared/uavobjectdefinition) $$targetPath(../..) $$addNewline()
uavobjects.commands += cd $$targetPath(../../ground/openpilotgcs) &&
uavobjects.commands += $(QMAKE) $$targetPath(../../../ground/openpilotgcs/)openpilotgcs.pro -spec $$SPEC -r $$addNewline()
QMAKE_EXTRA_TARGETS += uavobjects