2011-01-22 18:41:53 +01:00
|
|
|
#
|
2013-03-30 16:33:38 +01:00
|
|
|
# Top level Qt-Creator project file for OpenPilot GCS
|
|
|
|
# Copyright (c) 2009-2013, The OpenPilot Team, http://www.openpilot.org
|
2011-01-22 18:41:53 +01:00
|
|
|
#
|
2011-04-24 19:23:20 +02:00
|
|
|
# This meta-project allows qt-creator users to open and configure a
|
2013-03-30 16:33:38 +01:00
|
|
|
# single project and build all required software to produce the GCS.
|
|
|
|
# This includes regenerating all uavobject-synthetic files.
|
2011-01-22 23:54:48 +01:00
|
|
|
#
|
2013-03-30 16:33:38 +01:00
|
|
|
# NOTE: to use this meta-project you MUST perform these steps once
|
2011-04-24 19:23:20 +02:00
|
|
|
# for each source tree checkout:
|
2011-01-22 23:54:48 +01:00
|
|
|
# - Open <top>/ground/ground.pro in qt-creator
|
|
|
|
# - Select the "Projects" tab
|
2013-03-30 16:33:38 +01:00
|
|
|
# - Under Build Settings/General heading activate "Shadow build"
|
|
|
|
# - Set "Build directory" below to <top>/build
|
|
|
|
# Here <top> = the full path to the base of your git source tree which
|
2011-04-24 19:23:20 +02:00
|
|
|
# should contain "flight", "ground", etc.
|
2013-03-30 16:33:38 +01:00
|
|
|
#
|
|
|
|
# NOTE: only debug qt-creator builds are supported on Windows.
|
|
|
|
# Release builds may fail because it seems that qt-creator does not
|
|
|
|
# define QTMINGW variable used to copy MinGW DLLs in release builds.
|
|
|
|
#
|
|
|
|
# There is a minor problem with dependencies. qmake needs synthetic
|
2011-01-23 22:42:01 +01:00
|
|
|
# files when it generates GCS Makefiles. But we do not have
|
2013-03-30 16:33:38 +01:00
|
|
|
# uavobjgenerator built yet. So we use the following trick: at make
|
|
|
|
# stage in uavobject-synthetics we rerun qmake for openpilotgcs.pro
|
|
|
|
# and regenerate GCS Makefiles using just built synthetic files.
|
|
|
|
# It takes some extra time but solves the dependency problem.
|
|
|
|
#
|
|
|
|
# Please note that this meta-project is only intended to be used by
|
|
|
|
# qt-creator users. Top level Makefile handles all dependencies itself
|
|
|
|
# and does not use ground.pro.
|
2011-01-23 22:42:01 +01:00
|
|
|
|
2013-10-26 13:37:13 +02:00
|
|
|
cache()
|
|
|
|
|
2013-03-30 16:33:38 +01:00
|
|
|
message("Make sure you have shadow build path set as noted in ground.pro. Build will fail otherwise")
|
2011-01-22 23:54:48 +01:00
|
|
|
|
2011-01-22 18:41:53 +01:00
|
|
|
TEMPLATE = subdirs
|
|
|
|
|
|
|
|
SUBDIRS = \
|
|
|
|
sub_openpilotgcs \
|
2013-03-30 16:33:38 +01:00
|
|
|
sub_uavobject-synthetics \
|
2011-01-22 18:41:53 +01:00
|
|
|
sub_uavobjgenerator
|
|
|
|
|
|
|
|
# uavobjgenerator
|
|
|
|
sub_uavobjgenerator.subdir = uavobjgenerator
|
|
|
|
|
2013-03-30 16:33:38 +01:00
|
|
|
# uavobject-synthetics
|
|
|
|
sub_uavobject-synthetics.subdir = uavobject-synthetics
|
|
|
|
sub_uavobject-synthetics.depends = sub_uavobjgenerator
|
2011-01-22 18:41:53 +01:00
|
|
|
|
|
|
|
# openpilotgcs
|
|
|
|
sub_openpilotgcs.subdir = openpilotgcs
|
2013-03-30 16:33:38 +01:00
|
|
|
sub_openpilotgcs.depends = sub_uavobject-synthetics
|