1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1461 fix copyqt logic:removed use of environment variable in openpilotgcs.pri

and force copy Qt libs when making package
This commit is contained in:
James Duley 2014-08-23 14:18:12 +12:00
parent 174b9bb611
commit 3890c7858f
2 changed files with 11 additions and 4 deletions

View File

@ -740,6 +740,9 @@ ifneq ($(strip $(filter package clean_package,$(MAKECMDGOALS))),)
export PACKAGE_NAME := OpenPilot
export PACKAGE_SEP := -
# Copy the Qt libraries regardless whether the building machine needs them to run GCS
export FORCE_COPY_QT := true
# We can only package release builds
ifneq ($(GCS_BUILD_CONF),release)
$(error Packaging is currently supported for release builds only)

View File

@ -96,13 +96,17 @@ macx {
GCS_QT_LIBRARY_PATH = $$GCS_BUILD_TREE/$$GCS_LIBRARY_BASENAME/qt5
GCS_QT_PLUGINS_PATH = $$GCS_BUILD_TREE/$$GCS_LIBRARY_BASENAME/qt5/plugins
GCS_QT_QML_PATH = $$GCS_BUILD_TREE/$$GCS_LIBRARY_BASENAME/qt5/qml
lib_dir_is_in_tools = $$[QT_INSTALL_LIBS]
lib_dir_is_in_tools ~= s,$$(TOOLS_DIR)*,TRUE
equals(lib_dir_is_in_tools, "TRUE") {
OP_TOOLS_DIR = $$clean_path($$GCS_SOURCE_TREE/../../tools)
INSTALL_LIBS_UP4 = $$clean_path($$[QT_INSTALL_LIBS]/../../../..)
equals(INSTALL_LIBS_UP4, $$OP_TOOLS_DIR) {
copyqt = 1
} else {
copyqt = 0
copyqt = 0
}
FORCE_COPY_QT = $$(FORCE_COPY_QT)
!isEmpty(FORCE_COPY_QT):copyqt = 1
}
GCS_LIBRARY_PATH = $$GCS_BUILD_TREE/$$GCS_LIBRARY_BASENAME/openpilotgcs
GCS_PLUGIN_PATH = $$GCS_LIBRARY_PATH/plugins