mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
build: get rid of build/ground subdirectory, fix qt-creator builds
This changeset: - moves all ground targets one level up, under build directory. The build/ground was created as a workaround, now unnecessary; - fixes QtCreator builds, they are separated from command line builds; - moves GCS autogenerated files into openpilotgcs-synthetics directory. The resulting build subdirectory now looks like: build openpilotgcs <- Qt-Creator build directory openpilotgcs-synthetics <- version-info and opfw_resource openpilotgcs_debug openpilotgcs_release <- Makefile build directory uavobject-synthetics uavobjgenerator NOTE: you should update the shadow build path in QtCreator to build, not build/ground as before. +review OPReview
This commit is contained in:
parent
4be3cd4978
commit
3e815ca8d5
31
Makefile
31
Makefile
@ -161,13 +161,13 @@ endif
|
|||||||
# We almost need to consider autoconf/automake instead of this
|
# We almost need to consider autoconf/automake instead of this
|
||||||
ifeq ($(UNAME), Linux)
|
ifeq ($(UNAME), Linux)
|
||||||
QT_SPEC = linux-g++
|
QT_SPEC = linux-g++
|
||||||
UAVOBJGENERATOR = "$(BUILD_DIR)/ground/uavobjgenerator/uavobjgenerator"
|
UAVOBJGENERATOR = "$(BUILD_DIR)/uavobjgenerator/uavobjgenerator"
|
||||||
else ifeq ($(UNAME), Darwin)
|
else ifeq ($(UNAME), Darwin)
|
||||||
QT_SPEC = macx-g++
|
QT_SPEC = macx-g++
|
||||||
UAVOBJGENERATOR = "$(BUILD_DIR)/ground/uavobjgenerator/uavobjgenerator"
|
UAVOBJGENERATOR = "$(BUILD_DIR)/uavobjgenerator/uavobjgenerator"
|
||||||
else
|
else
|
||||||
QT_SPEC = win32-g++
|
QT_SPEC = win32-g++
|
||||||
UAVOBJGENERATOR = "$(BUILD_DIR)/ground/uavobjgenerator/$(UAVOGEN_BUILD_CONF)/uavobjgenerator.exe"
|
UAVOBJGENERATOR = "$(BUILD_DIR)/uavobjgenerator/$(UAVOGEN_BUILD_CONF)/uavobjgenerator.exe"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
@ -206,8 +206,8 @@ endif
|
|||||||
|
|
||||||
.PHONY: uavobjgenerator
|
.PHONY: uavobjgenerator
|
||||||
uavobjgenerator:
|
uavobjgenerator:
|
||||||
$(V1) $(MKDIR) -p $(BUILD_DIR)/ground/$@
|
$(V1) $(MKDIR) -p $(BUILD_DIR)/$@
|
||||||
$(V1) ( cd $(BUILD_DIR)/ground/$@ && \
|
$(V1) ( cd $(BUILD_DIR)/$@ && \
|
||||||
$(QMAKE) $(ROOT_DIR)/ground/uavobjgenerator/uavobjgenerator.pro -spec $(QT_SPEC) -r CONFIG+="$(UAVOGEN_BUILD_CONF) $(UAVOGEN_SILENT)" && \
|
$(QMAKE) $(ROOT_DIR)/ground/uavobjgenerator/uavobjgenerator.pro -spec $(QT_SPEC) -r CONFIG+="$(UAVOGEN_BUILD_CONF) $(UAVOGEN_SILENT)" && \
|
||||||
$(MAKE) --no-print-directory -w ; \
|
$(MAKE) --no-print-directory -w ; \
|
||||||
)
|
)
|
||||||
@ -251,6 +251,7 @@ export OPUAVTALK := $(ROOT_DIR)/flight/targets/UAVTalk
|
|||||||
export HWDEFS := $(ROOT_DIR)/flight/targets/board_hw_defs
|
export HWDEFS := $(ROOT_DIR)/flight/targets/board_hw_defs
|
||||||
export DOXYGENDIR := $(ROOT_DIR)/flight/Doc/Doxygen
|
export DOXYGENDIR := $(ROOT_DIR)/flight/Doc/Doxygen
|
||||||
export OPUAVSYNTHDIR := $(BUILD_DIR)/uavobject-synthetics/flight
|
export OPUAVSYNTHDIR := $(BUILD_DIR)/uavobject-synthetics/flight
|
||||||
|
export OPGCSSYNTHDIR := $(BUILD_DIR)/openpilotgcs-synthetics
|
||||||
|
|
||||||
# Define supported board lists
|
# Define supported board lists
|
||||||
ALL_BOARDS := coptercontrol pipxtreme revolution revomini osd simposix
|
ALL_BOARDS := coptercontrol pipxtreme revolution revomini osd simposix
|
||||||
@ -509,7 +510,6 @@ all_ground: openpilotgcs
|
|||||||
.PHONY: gcs gcs_clean gcs_all_clean
|
.PHONY: gcs gcs_clean gcs_all_clean
|
||||||
gcs: openpilotgcs
|
gcs: openpilotgcs
|
||||||
gcs_clean: openpilotgcs_clean
|
gcs_clean: openpilotgcs_clean
|
||||||
gcs_all_clean: openpilotgcs_all_clean
|
|
||||||
|
|
||||||
ifeq ($(V), 1)
|
ifeq ($(V), 1)
|
||||||
GCS_SILENT :=
|
GCS_SILENT :=
|
||||||
@ -519,8 +519,8 @@ endif
|
|||||||
|
|
||||||
.PHONY: openpilotgcs
|
.PHONY: openpilotgcs
|
||||||
openpilotgcs: uavobjects_gcs
|
openpilotgcs: uavobjects_gcs
|
||||||
$(V1) $(MKDIR) -p $(BUILD_DIR)/ground/$@/$(GCS_BUILD_CONF)
|
$(V1) $(MKDIR) -p $(BUILD_DIR)/$@_$(GCS_BUILD_CONF)
|
||||||
$(V1) ( cd $(BUILD_DIR)/ground/$@/$(GCS_BUILD_CONF) && \
|
$(V1) ( cd $(BUILD_DIR)/$@_$(GCS_BUILD_CONF) && \
|
||||||
$(QMAKE) $(ROOT_DIR)/ground/openpilotgcs/openpilotgcs.pro -spec $(QT_SPEC) -r CONFIG+="$(GCS_BUILD_CONF) $(GCS_SILENT)" $(GCS_QMAKE_OPTS) && \
|
$(QMAKE) $(ROOT_DIR)/ground/openpilotgcs/openpilotgcs.pro -spec $(QT_SPEC) -r CONFIG+="$(GCS_BUILD_CONF) $(GCS_SILENT)" $(GCS_QMAKE_OPTS) && \
|
||||||
$(MAKE) -w ; \
|
$(MAKE) -w ; \
|
||||||
)
|
)
|
||||||
@ -528,12 +528,7 @@ openpilotgcs: uavobjects_gcs
|
|||||||
.PHONY: openpilotgcs_clean
|
.PHONY: openpilotgcs_clean
|
||||||
openpilotgcs_clean:
|
openpilotgcs_clean:
|
||||||
$(V0) @$(ECHO) " CLEAN $@"
|
$(V0) @$(ECHO) " CLEAN $@"
|
||||||
$(V1) [ ! -d "$(BUILD_DIR)/ground/openpilotgcs/$(GCS_BUILD_CONF)" ] || $(RM) -r "$(BUILD_DIR)/ground/openpilotgcs/$(GCS_BUILD_CONF)"
|
$(V1) [ ! -d "$(BUILD_DIR)/openpilotgcs_$(GCS_BUILD_CONF)" ] || $(RM) -r "$(BUILD_DIR)/openpilotgcs_$(GCS_BUILD_CONF)"
|
||||||
|
|
||||||
.PHONY: openpilotgcs_all_clean
|
|
||||||
openpilotgcs_all_clean:
|
|
||||||
$(V0) @$(ECHO) " CLEAN $@"
|
|
||||||
$(V1) [ ! -d "$(BUILD_DIR)/ground/openpilotgcs" ] || $(RM) -r "$(BUILD_DIR)/ground/openpilotgcs"
|
|
||||||
|
|
||||||
################################
|
################################
|
||||||
#
|
#
|
||||||
@ -771,8 +766,8 @@ PACKAGE_ELF_TARGETS := $(filter fw_simposix, $(FW_TARGETS))
|
|||||||
# Rules to generate GCS resources used to embed firmware binaries into the GCS.
|
# Rules to generate GCS resources used to embed firmware binaries into the GCS.
|
||||||
# They are used later by the vehicle setup wizard to update board firmware.
|
# They are used later by the vehicle setup wizard to update board firmware.
|
||||||
# To open a firmware image use ":/firmware/fw_coptercontrol.opfw"
|
# To open a firmware image use ":/firmware/fw_coptercontrol.opfw"
|
||||||
OPFW_RESOURCE := $(BUILD_DIR)/ground/opfw_resource/opfw_resource.qrc
|
OPFW_RESOURCE := $(OPGCSSYNTHDIR)/opfw_resource.qrc
|
||||||
OPFW_RESOURCE_PREFIX := ../../../
|
OPFW_RESOURCE_PREFIX := ../../
|
||||||
OPFW_FILES := $(foreach fw_targ, $(PACKAGE_FW_TARGETS), $(call toprel, $(BUILD_DIR)/$(fw_targ)/$(fw_targ).opfw))
|
OPFW_FILES := $(foreach fw_targ, $(PACKAGE_FW_TARGETS), $(call toprel, $(BUILD_DIR)/$(fw_targ)/$(fw_targ).opfw))
|
||||||
OPFW_CONTENTS := \
|
OPFW_CONTENTS := \
|
||||||
<!DOCTYPE RCC><RCC version="1.0"> \
|
<!DOCTYPE RCC><RCC version="1.0"> \
|
||||||
@ -789,8 +784,8 @@ $(OPFW_RESOURCE): $(FW_TARGETS)
|
|||||||
$(V1) $(MKDIR) -p $(dir $@)
|
$(V1) $(MKDIR) -p $(dir $@)
|
||||||
$(V1) $(ECHO) $(QUOTE)$(OPFW_CONTENTS)$(QUOTE) > $@
|
$(V1) $(ECHO) $(QUOTE)$(OPFW_CONTENTS)$(QUOTE) > $@
|
||||||
|
|
||||||
# If opfw_resource is requested, GCS should depend on it
|
# If opfw_resource or all are requested, GCS should depend on the resource
|
||||||
ifneq ($(strip $(filter opfw_resource,$(MAKECMDGOALS))),)
|
ifneq ($(strip $(filter opfw_resource all,$(MAKECMDGOALS))),)
|
||||||
$(eval openpilotgcs: | opfw_resource)
|
$(eval openpilotgcs: | opfw_resource)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -1,48 +1,51 @@
|
|||||||
#
|
#
|
||||||
# Top level Qt-Creator project file
|
# Top level Qt-Creator project file for OpenPilot GCS
|
||||||
|
# Copyright (c) 2009-2013, The OpenPilot Team, http://www.openpilot.org
|
||||||
#
|
#
|
||||||
|
|
||||||
# This meta-project allows qt-creator users to open and configure a
|
# This meta-project allows qt-creator users to open and configure a
|
||||||
# single project and to build all required software to produce a GCS.
|
# single project and build all required software to produce the GCS.
|
||||||
# This includes regenerating all uavobject output.
|
# This includes regenerating all uavobject-synthetic files.
|
||||||
#
|
#
|
||||||
# NOTE: to use this meta-project, you MUST perform these steps once
|
# NOTE: to use this meta-project you MUST perform these steps once
|
||||||
# for each source tree checkout:
|
# for each source tree checkout:
|
||||||
# - Open <top>/ground/ground.pro in qt-creator
|
# - Open <top>/ground/ground.pro in qt-creator
|
||||||
# - Select the "Projects" tab
|
# - Select the "Projects" tab
|
||||||
# - Under Build Settings/General heading, click "Show Details"
|
# - Under Build Settings/General heading activate "Shadow build"
|
||||||
# - Activate "Shadow Build"
|
# - Set "Build directory" below to <top>/build
|
||||||
# - Set your Build Directory to <top>/build/ground
|
# Here <top> = the full path to the base of your git source tree which
|
||||||
#
|
|
||||||
# <top> = the full path to the base of your git source tree which
|
|
||||||
# should contain "flight", "ground", etc.
|
# should contain "flight", "ground", etc.
|
||||||
|
#
|
||||||
# There is a small problem with dependencies. qmake needs synthetic
|
# 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
|
||||||
# files when it generates GCS Makefiles. But we do not have
|
# files when it generates GCS Makefiles. But we do not have
|
||||||
# uavobjgenerator at that time (on the 1st build). So we use the
|
# uavobjgenerator built yet. So we use the following trick: at make
|
||||||
# following trick: at make stage in uavobjects we rerun qmake for
|
# stage in uavobject-synthetics we rerun qmake for openpilotgcs.pro
|
||||||
# openpilotgcs.pro and regenerate GCS Makefiles using just built
|
# and regenerate GCS Makefiles using just built synthetic files.
|
||||||
# synthetic files. It takes some extra time but solves the
|
# It takes some extra time but solves the dependency problem.
|
||||||
# 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.
|
||||||
|
|
||||||
# Please note that this meta-project intended only for qt-creator
|
message("Make sure you have shadow build path set as noted in ground.pro. Build will fail otherwise")
|
||||||
# users. Top level Makefile handles all dependencies itself and
|
|
||||||
# doesn't use ground.pro.
|
|
||||||
|
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
sub_openpilotgcs \
|
sub_openpilotgcs \
|
||||||
sub_uavobjects \
|
sub_uavobject-synthetics \
|
||||||
sub_uavobjgenerator
|
sub_uavobjgenerator
|
||||||
|
|
||||||
# uavobjgenerator
|
# uavobjgenerator
|
||||||
sub_uavobjgenerator.subdir = uavobjgenerator
|
sub_uavobjgenerator.subdir = uavobjgenerator
|
||||||
|
|
||||||
# uavobjects
|
# uavobject-synthetics
|
||||||
sub_uavobjects.subdir = uavobjects
|
sub_uavobject-synthetics.subdir = uavobject-synthetics
|
||||||
sub_uavobjects.depends = sub_uavobjgenerator
|
sub_uavobject-synthetics.depends = sub_uavobjgenerator
|
||||||
|
|
||||||
# openpilotgcs
|
# openpilotgcs
|
||||||
sub_openpilotgcs.subdir = openpilotgcs
|
sub_openpilotgcs.subdir = openpilotgcs
|
||||||
sub_openpilotgcs.depends = sub_uavobjects
|
sub_openpilotgcs.depends = sub_uavobject-synthetics
|
||||||
|
@ -21,7 +21,8 @@ equals(copydata, 1) {
|
|||||||
QtXml4.dll \
|
QtXml4.dll \
|
||||||
QtDeclarative4.dll \
|
QtDeclarative4.dll \
|
||||||
QtXmlPatterns4.dll \
|
QtXmlPatterns4.dll \
|
||||||
QtScript4.dll
|
QtScript4.dll \
|
||||||
|
QtWebKit4.dll
|
||||||
for(dll, QT_DLLS) {
|
for(dll, QT_DLLS) {
|
||||||
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_BINS]/$$dll\") $$targetPath(\"$$GCS_APP_PATH/$$dll\") $$addNewline()
|
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_BINS]/$$dll\") $$targetPath(\"$$GCS_APP_PATH/$$dll\") $$addNewline()
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
#
|
||||||
|
# Qmake project for the OpenPilot GCS.
|
||||||
|
# Copyright (c) 2009-2013, The OpenPilot Team, http://www.openpilot.org
|
||||||
|
#
|
||||||
|
|
||||||
#version check qt
|
#version check qt
|
||||||
contains(QT_VERSION, ^4\\.[0-5]\\..*) {
|
contains(QT_VERSION, ^4\\.[0-5]\\..*) {
|
||||||
message("Cannot build OpenPilot GCS with Qt version $${QT_VERSION}.")
|
message("Cannot build OpenPilot GCS with Qt version $${QT_VERSION}.")
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <extensionsystem/pluginspec.h>
|
#include <extensionsystem/pluginspec.h>
|
||||||
|
|
||||||
#include "../../../../build/ground/openpilotgcs/gcsversioninfo.h"
|
#include "../gcs_version_info.h"
|
||||||
|
|
||||||
class GCSSplashScreen : public QSplashScreen
|
class GCSSplashScreen : public QSplashScreen
|
||||||
{
|
{
|
||||||
|
@ -8,15 +8,17 @@
|
|||||||
# Since debug_and_release option is set, we need this
|
# Since debug_and_release option is set, we need this
|
||||||
!debug_and_release|build_pass {
|
!debug_and_release|build_pass {
|
||||||
ROOT_DIR = $$GCS_SOURCE_TREE/../..
|
ROOT_DIR = $$GCS_SOURCE_TREE/../..
|
||||||
VERSION_INFO_HEADER = $$GCS_BUILD_TREE/../gcsversioninfo.h
|
VERSION_INFO_DIR = $$GCS_BUILD_TREE/../openpilotgcs-synthetics
|
||||||
|
VERSION_INFO_HEADER = $$VERSION_INFO_DIR/gcs_version_info.h
|
||||||
VERSION_INFO_SCRIPT = $$ROOT_DIR/make/scripts/version-info.py
|
VERSION_INFO_SCRIPT = $$ROOT_DIR/make/scripts/version-info.py
|
||||||
VERSION_INFO_TEMPLATE = $$ROOT_DIR/make/templates/gcsversioninfotemplate.h
|
VERSION_INFO_TEMPLATE = $$ROOT_DIR/make/templates/gcs_version_info_template.h
|
||||||
VERSION_INFO_COMMAND = python \"$$VERSION_INFO_SCRIPT\"
|
VERSION_INFO_COMMAND = python \"$$VERSION_INFO_SCRIPT\"
|
||||||
UAVO_DEF_PATH = $$ROOT_DIR/shared/uavobjectdefinition
|
UAVO_DEF_PATH = $$ROOT_DIR/shared/uavobjectdefinition
|
||||||
|
|
||||||
# Create custom version_info target which generates a header
|
# Create custom version_info target which generates a header
|
||||||
version_info.target = $$VERSION_INFO_HEADER
|
version_info.target = $$VERSION_INFO_HEADER
|
||||||
version_info.commands = $$VERSION_INFO_COMMAND \
|
version_info.commands = -$(MKDIR) $$targetPath($$VERSION_INFO_DIR) $$addNewline()
|
||||||
|
version_info.commands += $$VERSION_INFO_COMMAND \
|
||||||
--path=\"$$GCS_SOURCE_TREE\" \
|
--path=\"$$GCS_SOURCE_TREE\" \
|
||||||
--template=\"$$VERSION_INFO_TEMPLATE\" \
|
--template=\"$$VERSION_INFO_TEMPLATE\" \
|
||||||
--uavodir=\"$$UAVO_DEF_PATH\" \
|
--uavodir=\"$$UAVO_DEF_PATH\" \
|
||||||
|
6
ground/openpilotgcs/src/gcs_version_info.h
Normal file
6
ground/openpilotgcs/src/gcs_version_info.h
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
//
|
||||||
|
// This file includes autogenerated version info header used by other plugins.
|
||||||
|
// The autogenerated file is build by app/gcsversioninfo.pri.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "../../../build/openpilotgcs-synthetics/gcs_version_info.h"
|
@ -28,8 +28,7 @@
|
|||||||
|
|
||||||
#include "authorsdialog.h"
|
#include "authorsdialog.h"
|
||||||
|
|
||||||
// autogenerated version info string
|
#include "../../gcs_version_info.h"
|
||||||
#include "../../../../../build/ground/openpilotgcs/gcsversioninfo.h"
|
|
||||||
#include "coreconstants.h"
|
#include "coreconstants.h"
|
||||||
#include "icore.h"
|
#include "icore.h"
|
||||||
|
|
||||||
|
@ -29,8 +29,7 @@
|
|||||||
#ifndef VERSIONDIALOG_H
|
#ifndef VERSIONDIALOG_H
|
||||||
#define VERSIONDIALOG_H
|
#define VERSIONDIALOG_H
|
||||||
|
|
||||||
// autogenerated version info string
|
#include "../../gcs_version_info.h"
|
||||||
#include "../../../../../build/ground/openpilotgcs/gcsversioninfo.h"
|
|
||||||
|
|
||||||
#include <QtGui/QDialog>
|
#include <QtGui/QDialog>
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ include(../../plugins/coreplugin/coreplugin.pri)
|
|||||||
include(../../libs/utils/utils.pri)
|
include(../../libs/utils/utils.pri)
|
||||||
|
|
||||||
# Provide the path to the auto-generated uavobject source files for the GCS.
|
# Provide the path to the auto-generated uavobject source files for the GCS.
|
||||||
UAVOBJECT_SYNTHETICS=$${GCS_BUILD_TREE}/../../../uavobject-synthetics/gcs
|
UAVOBJECT_SYNTHETICS=$${GCS_BUILD_TREE}/../uavobject-synthetics/gcs
|
||||||
#message(UAVOBJECT_SYNTHETICS is $$UAVOBJECT_SYNTHETICS)
|
#message(UAVOBJECT_SYNTHETICS is $$UAVOBJECT_SYNTHETICS)
|
||||||
|
|
||||||
# Add the include path to the auto-generated uavobject include files.
|
# Add the include path to the auto-generated uavobject include files.
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include <extensionsystem/iplugin.h>
|
#include <extensionsystem/iplugin.h>
|
||||||
#include "uavobjectutil/uavobjectutilmanager.h"
|
#include "uavobjectutil/uavobjectutilmanager.h"
|
||||||
#include "uavsettingsimportexport_global.h"
|
#include "uavsettingsimportexport_global.h"
|
||||||
#include "../../../../../build/ground/openpilotgcs/gcsversioninfo.h"
|
#include "../../gcs_version_info.h"
|
||||||
#include "uavsettingsimportexportfactory.h"
|
#include "uavsettingsimportexportfactory.h"
|
||||||
class UAVSETTINGSIMPORTEXPORT_EXPORT UAVSettingsImportExportPlugin : public ExtensionSystem::IPlugin
|
class UAVSETTINGSIMPORTEXPORT_EXPORT UAVSettingsImportExportPlugin : public ExtensionSystem::IPlugin
|
||||||
{
|
{
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#define UAVSETTINGSIMPORTEXPORTFACTORY_H
|
#define UAVSETTINGSIMPORTEXPORTFACTORY_H
|
||||||
#include "uavsettingsimportexport_global.h"
|
#include "uavsettingsimportexport_global.h"
|
||||||
#include "uavobjectutil/uavobjectutilmanager.h"
|
#include "uavobjectutil/uavobjectutilmanager.h"
|
||||||
#include "../../../../../build/ground/openpilotgcs/gcsversioninfo.h"
|
#include "../../gcs_version_info.h"
|
||||||
class UAVSETTINGSIMPORTEXPORT_EXPORT UAVSettingsImportExportFactory : public QObject
|
class UAVSETTINGSIMPORTEXPORT_EXPORT UAVSettingsImportExportFactory : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -46,6 +46,8 @@ FORMS += \
|
|||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
uploader.qrc
|
uploader.qrc
|
||||||
exists( ../../../../../build/ground/opfw_resource/opfw_resource.qrc ) {
|
exists( ../../../../../build/openpilotgcs-synthetics/opfw_resource.qrc ) {
|
||||||
RESOURCES += ../../../../build/ground/opfw_resource/opfw_resource.qrc
|
RESOURCES += ../../../../../build/openpilotgcs-synthetics/opfw_resource.qrc
|
||||||
|
} else {
|
||||||
|
message("opfw_resource.qrc is not available, automatic firmware upgrades are disabled")
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
#include "uploadergadgetwidget.h"
|
#include "uploadergadgetwidget.h"
|
||||||
#include "../../../../../build/ground/openpilotgcs/gcsversioninfo.h"
|
#include "../../gcs_version_info.h"
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "flightstatus.h"
|
#include "flightstatus.h"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#
|
#
|
||||||
# Qmake project for UAVObjects generation.
|
# Qmake project for UAVObjects generation.
|
||||||
#
|
# Copyright (c) 2009-2013, The OpenPilot Team, http://www.openpilot.org
|
||||||
# TODO: provide some dependencies (now it builds every time)
|
|
||||||
#
|
#
|
||||||
|
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
@ -39,30 +38,29 @@ win32 {
|
|||||||
# Windows sometimes remembers working directory changed from Makefile, sometimes not.
|
# Windows sometimes remembers working directory changed from Makefile, sometimes not.
|
||||||
# That's why pushd/popd is used here - to make sure that we know current directory.
|
# That's why pushd/popd is used here - to make sure that we know current directory.
|
||||||
|
|
||||||
uavobjects.commands += -$(MKDIR) $$targetPath(../../uavobject-synthetics) $$addNewline()
|
uavobjects.commands += -$(MKDIR) $$targetPath(../uavobject-synthetics) $$addNewline()
|
||||||
|
uavobjects.commands += pushd $$targetPath(../uavobject-synthetics) &&
|
||||||
uavobjects.commands += pushd $$targetPath(../../uavobject-synthetics) &&
|
uavobjects.commands += $$targetPath(../uavobjgenerator/$${BUILD_CONFIG}/uavobjgenerator)
|
||||||
uavobjects.commands += $$targetPath(../ground/uavobjgenerator/$${BUILD_CONFIG}/uavobjgenerator)
|
|
||||||
uavobjects.commands += -gcs -flight -python -matlab
|
|
||||||
uavobjects.commands += $$targetPath(../../shared/uavobjectdefinition)
|
uavobjects.commands += $$targetPath(../../shared/uavobjectdefinition)
|
||||||
uavobjects.commands += $$targetPath(../..) &&
|
uavobjects.commands += $$targetPath(../..) &&
|
||||||
uavobjects.commands += popd $$addNewline()
|
uavobjects.commands += popd $$addNewline()
|
||||||
|
|
||||||
uavobjects.commands += pushd $$targetPath(../../ground/openpilotgcs) &&
|
uavobjects.commands += -$(MKDIR) $$targetPath(../openpilotgcs) $$addNewline()
|
||||||
|
uavobjects.commands += pushd $$targetPath(../openpilotgcs) &&
|
||||||
uavobjects.commands += $(QMAKE) -spec $$SPEC CONFIG+=$${BUILD_CONFIG} -r
|
uavobjects.commands += $(QMAKE) -spec $$SPEC CONFIG+=$${BUILD_CONFIG} -r
|
||||||
uavobjects.commands += $$targetPath(../../../ground/openpilotgcs/)openpilotgcs.pro &&
|
uavobjects.commands += $$targetPath(../../ground/openpilotgcs/)openpilotgcs.pro &&
|
||||||
uavobjects.commands += popd $$addNewline()
|
uavobjects.commands += popd $$addNewline()
|
||||||
}
|
}
|
||||||
|
|
||||||
!win32 {
|
!win32 {
|
||||||
uavobjects.commands += $(MKDIR) -p ../../uavobject-synthetics $$addNewline()
|
uavobjects.commands += $(MKDIR) -p ../uavobject-synthetics $$addNewline()
|
||||||
|
uavobjects.commands += cd ../uavobject-synthetics &&
|
||||||
|
uavobjects.commands += ../uavobjgenerator/uavobjgenerator
|
||||||
|
uavobjects.commands += ../../shared/uavobjectdefinition ../.. &&
|
||||||
|
|
||||||
uavobjects.commands += cd ../../uavobject-synthetics &&
|
uavobjects.commands += $(MKDIR) -p ../openpilotgcs $$addNewline()
|
||||||
uavobjects.commands += ../ground/uavobjgenerator/uavobjgenerator
|
uavobjects.commands += cd ../openpilotgcs &&
|
||||||
uavobjects.commands += -gcs -flight -python -matlab ../../shared/uavobjectdefinition ../.. &&
|
uavobjects.commands += $(QMAKE) ../../ground/openpilotgcs/openpilotgcs.pro
|
||||||
|
|
||||||
uavobjects.commands += cd ../ground/openpilotgcs &&
|
|
||||||
uavobjects.commands += $(QMAKE) ../../../ground/openpilotgcs/openpilotgcs.pro
|
|
||||||
uavobjects.commands += -spec $$SPEC CONFIG+=$${BUILD_CONFIG} -r $$addNewline()
|
uavobjects.commands += -spec $$SPEC CONFIG+=$${BUILD_CONFIG} -r $$addNewline()
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,8 @@
|
|||||||
# -------------------------------------------------
|
#
|
||||||
# Project created by QtCreator 2010-03-21T20:44:17
|
# Qmake project for UAVObjGenerator.
|
||||||
# -------------------------------------------------
|
# Copyright (c) 2010-2013, The OpenPilot Team, http://www.openpilot.org
|
||||||
|
#
|
||||||
|
|
||||||
QT += xml
|
QT += xml
|
||||||
QT -= gui
|
QT -= gui
|
||||||
macx {
|
macx {
|
||||||
|
@ -14,7 +14,7 @@ NSIS_OPTS := /V3
|
|||||||
NSIS_DIR := $(ROOT_DIR)/package/winx86
|
NSIS_DIR := $(ROOT_DIR)/package/winx86
|
||||||
NSIS_SCRIPT := $(NSIS_DIR)/openpilotgcs.nsi
|
NSIS_SCRIPT := $(NSIS_DIR)/openpilotgcs.nsi
|
||||||
NSIS_TEMPLATE := $(NSIS_DIR)/openpilotgcs.tpl
|
NSIS_TEMPLATE := $(NSIS_DIR)/openpilotgcs.tpl
|
||||||
NSIS_HEADER := $(BUILD_DIR)/ground/openpilotgcs/openpilotgcs.nsh
|
NSIS_HEADER := $(OPGCSSYNTHDIR)/openpilotgcs.nsh
|
||||||
|
|
||||||
.PHONY: package
|
.PHONY: package
|
||||||
package:
|
package:
|
||||||
|
@ -33,11 +33,10 @@ install:
|
|||||||
dh_installdirs
|
dh_installdirs
|
||||||
dh_installudev --priority=45
|
dh_installudev --priority=45
|
||||||
# Add here commands to install the package into debian/<packagename>
|
# Add here commands to install the package into debian/<packagename>
|
||||||
cp -arp build/ground/openpilotgcs/release/bin debian/openpilot/usr/local/OpenPilot
|
cp -arp build/openpilotgcs_release/bin debian/openpilot/usr/local/OpenPilot
|
||||||
cp -arp build/ground/openpilotgcs/release/lib debian/openpilot/usr/local/OpenPilot
|
cp -arp build/openpilotgcs_release/lib debian/openpilot/usr/local/OpenPilot
|
||||||
cp -arp build/ground/openpilotgcs/release/share debian/openpilot/usr/local/OpenPilot
|
cp -arp build/openpilotgcs_release/share debian/openpilot/usr/local/OpenPilot
|
||||||
cp -arp build/ground/openpilotgcs/release/.obj debian/openpilot/usr/local/OpenPilot
|
cp -arp build/openpilotgcs_release/.obj debian/openpilot/usr/local/OpenPilot
|
||||||
cp -arp build/ground/openpilotgcs/gcsversioninfo.h debian/openpilot/usr/local/OpenPilot
|
|
||||||
cp -arp package/linux/openpilot.desktop debian/openpilot/usr/share/applications
|
cp -arp package/linux/openpilot.desktop debian/openpilot/usr/share/applications
|
||||||
cp -arp package/linux/openpilot.png debian/openpilot/usr/share/pixmaps
|
cp -arp package/linux/openpilot.png debian/openpilot/usr/share/pixmaps
|
||||||
cp -arp package/linux/openpilot_menu.png debian/openpilot/usr/share/pixmaps
|
cp -arp package/linux/openpilot_menu.png debian/openpilot/usr/share/pixmaps
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
APP="${1?}"
|
APP="${1?}"
|
||||||
PLUGINS="${APP}/Contents/Plugins"
|
PLUGINS="${APP}/Contents/Plugins"
|
||||||
OP_PLUGINS="${APP}/Contents/Plugins/OpenPilot"
|
OP_PLUGINS="${APP}/Contents/Plugins/OpenPilot"
|
||||||
QT_LIBS="QtDeclarative QtXmlPatterns QtGui QtTest QtCore QtSvg QtSql QtOpenGL QtNetwork QtXml QtDBus QtScript phonon"
|
QT_LIBS="QtDeclarative QtXmlPatterns QtGui QtTest QtCore QtSvg QtSql QtOpenGL QtNetwork QtXml QtDBus QtScript QtWebKit phonon"
|
||||||
QT_DIR=$(otool -L "${APP}/Contents/MacOS/OpenPilot GCS" | sed -n -e 's/\/QtCore\.framework.*//p' | sed -n -E 's:^.::p')
|
QT_DIR=$(otool -L "${APP}/Contents/MacOS/OpenPilot GCS" | sed -n -e 's/\/QtCore\.framework.*//p' | sed -n -E 's:^.::p')
|
||||||
QT_EXTRA="accessible/libqtaccessiblewidgets.dylib bearer/libqgenericbearer.dylib codecs/libqcncodecs.dylib codecs/libqjpcodecs.dylib codecs/libqkrcodecs.dylib codecs/libqtwcodecs.dylib graphicssystems/libqtracegraphicssystem.dylib imageformats/libqgif.dylib imageformats/libqico.dylib imageformats/libqjpeg.dylib imageformats/libqmng.dylib imageformats/libqtiff.dylib imageformats/libqsvg.dylib qmltooling/libqmldbg_inspector.dylib qmltooling/libqmldbg_tcp.dylib graphicssystems/libqglgraphicssystem.dylib sqldrivers/libqsqlodbc.dylib sqldrivers/libqsqlpsql.dylib sqldrivers/libqsqlite.dylib imageformats/libqtga.dylib iconengines/libqsvgicon.dylib"
|
QT_EXTRA="accessible/libqtaccessiblewidgets.dylib bearer/libqgenericbearer.dylib codecs/libqcncodecs.dylib codecs/libqjpcodecs.dylib codecs/libqkrcodecs.dylib codecs/libqtwcodecs.dylib graphicssystems/libqtracegraphicssystem.dylib imageformats/libqgif.dylib imageformats/libqico.dylib imageformats/libqjpeg.dylib imageformats/libqmng.dylib imageformats/libqtiff.dylib imageformats/libqsvg.dylib qmltooling/libqmldbg_inspector.dylib qmltooling/libqmldbg_tcp.dylib graphicssystems/libqglgraphicssystem.dylib sqldrivers/libqsqlodbc.dylib sqldrivers/libqsqlpsql.dylib sqldrivers/libqsqlite.dylib imageformats/libqtga.dylib iconengines/libqsvgicon.dylib"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
: ${ROOT_DIR?} ${BUILD_DIR?} ${PACKAGE_LBL?} ${PACKAGE_DIR?} ${FW_DIR?} ${PACKAGE_NAME?} ${PACKAGE_SEP?}
|
: ${ROOT_DIR?} ${BUILD_DIR?} ${PACKAGE_LBL?} ${PACKAGE_DIR?} ${FW_DIR?} ${PACKAGE_NAME?} ${PACKAGE_SEP?}
|
||||||
|
|
||||||
# more variables
|
# more variables
|
||||||
APP_PATH="${BUILD_DIR}/ground/openpilotgcs/release/bin/OpenPilot GCS.app"
|
APP_PATH="${BUILD_DIR}/openpilotgcs_release/bin/OpenPilot GCS.app"
|
||||||
TEMP_FILE="${PACKAGE_DIR}/OpenPilot-temp.dmg"
|
TEMP_FILE="${PACKAGE_DIR}/OpenPilot-temp.dmg"
|
||||||
OUT_FILE="${PACKAGE_DIR}/../${PACKAGE_NAME}${PACKAGE_SEP}${PACKAGE_LBL}${PACKAGE_SEP}osx.dmg"
|
OUT_FILE="${PACKAGE_DIR}/../${PACKAGE_NAME}${PACKAGE_SEP}${PACKAGE_LBL}${PACKAGE_SEP}osx.dmg"
|
||||||
VOL_NAME="OpenPilot"
|
VOL_NAME="OpenPilot"
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
; Tree root locations (relative to this script location)
|
; Tree root locations (relative to this script location)
|
||||||
!define PROJECT_ROOT "..\.."
|
!define PROJECT_ROOT "..\.."
|
||||||
!define NSIS_DATA_TREE "."
|
!define NSIS_DATA_TREE "."
|
||||||
!define GCS_BUILD_TREE "..\..\build\ground\openpilotgcs\release"
|
!define GCS_BUILD_TREE "..\..\build\openpilotgcs_release"
|
||||||
!define UAVO_SYNTH_TREE "..\..\build\uavobject-synthetics"
|
!define UAVO_SYNTH_TREE "..\..\build\uavobject-synthetics"
|
||||||
!define AEROSIMRC_TREE "${GCS_BUILD_TREE}\misc\AeroSIM-RC"
|
!define AEROSIMRC_TREE "${GCS_BUILD_TREE}\misc\AeroSIM-RC"
|
||||||
|
|
||||||
@ -61,7 +61,7 @@
|
|||||||
; !define PRODUCT_VERSION "0.0.0.0"
|
; !define PRODUCT_VERSION "0.0.0.0"
|
||||||
; !define FILE_VERSION "${TAG_OR_BRANCH}:${HASH8} ${DATETIME}"
|
; !define FILE_VERSION "${TAG_OR_BRANCH}:${HASH8} ${DATETIME}"
|
||||||
; !define BUILD_DESCRIPTION "${TAG_OR_BRANCH}:${HASH8} built from ${ORIGIN}, committed ${DATETIME} as ${HASH}"
|
; !define BUILD_DESCRIPTION "${TAG_OR_BRANCH}:${HASH8} built from ${ORIGIN}, committed ${DATETIME} as ${HASH}"
|
||||||
!include "${GCS_BUILD_TREE}\..\openpilotgcs.nsh"
|
!include "${GCS_BUILD_TREE}\..\openpilotgcs-synthetics\openpilotgcs.nsh"
|
||||||
|
|
||||||
Name "${PRODUCT_NAME}"
|
Name "${PRODUCT_NAME}"
|
||||||
OutFile "${PACKAGE_DIR}\..\${OUT_FILE}"
|
OutFile "${PACKAGE_DIR}\..\${OUT_FILE}"
|
||||||
|
Loading…
Reference in New Issue
Block a user