Skip to content

Commit

Permalink
More travis fixes. Disabled transformer build for Qt < 5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
vranki committed Mar 29, 2019
1 parent d5d4f6e commit 141e806
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ deploy:
api_key:
secure: mGPELl1Bc2nkK6JPsyorKkYC7uAwP4H5AfGev5vpIoOfC0Kp/ubRNVKE3771/tzPw4P2QpYDTvl9dL0hGJcoVEUeomRuBoNViueAzpZVJQSNo68lbse+SAMi2JHSs+p0uyDdIVY51Hu5NFQYnDWvxIgbv4RF8mztymdSS1CtDlU=
file:
- "extplane-plugin/extplane.zip"
- "extplane-transformer/extplane-transformer.zip"
- "extplane-plugin.zip"
- "extplane-transformer.zip"
skip_cleanup: true
on:
repo: vranki/ExtPlane
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from ubuntu:xenial
# Update to newer ubuntu release when MXE supports..
RUN apt update -qq
RUN apt -yq install gnupg ca-certificates apt-transport-https
RUN apt -yq install gnupg ca-certificates apt-transport-https software-properties-common
RUN echo "deb http://mirror.mxe.cc/repos/apt xenial main" | tee /etc/apt/sources.list.d/mxeapt.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C6BF758A33A3A276
RUN add-apt-repository -y ppa:beineri/opt-qt-5.11.0-xenial
RUN apt update -qq
RUN apt install -yq mxe-x86-64-w64-mingw32.static-qtbase mxe-x86-64-w64-mingw32.static-qtdeclarative
RUN apt install -yq qtbase5-dev qtdeclarative5-dev qt5-default build-essential
Expand Down
15 changes: 10 additions & 5 deletions ExtPlane.pro
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
TEMPLATE = subdirs
SUBDIRS = extplane-server \
clients/extplane-client-qt \
extplane-transformer
clients/extplane-client-qt
CONFIG += ordered

include(common.pri)

defined(XPLANE_SDK_PATH, var) {
message("Building X-Plane plugin with SDK in $$XPLANE_SDK_PATH")
SUBDIRS += extplane-plugin
message("Building X-Plane plugin with SDK in $$XPLANE_SDK_PATH")
SUBDIRS += extplane-plugin
} else {
warning("No X-Plane SDK found in ../XPlaneSDK or ~/SDK - not building X-Plane plugin")
warning("No X-Plane SDK found in ../XPlaneSDK or ~/SDK - not building X-Plane plugin")
}

versionAtLeast(QT_VERSION, 5.8.0) {
SUBDIRS += extplane-transformer
} else {
warning(Qt 5.8.0 needed to build extplane-transformer - skipping $$QT_VERSION)
}

OTHER_FILES += README.md clients/extplane-client-qt/README
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ external programs through an easy-to-use TCP protocol.
* Condor soaring simulator 1 and 2
* FlightGear - basic support via Transformer (see later)

NOTE: ExtPlane-transformer (support for other sims except X-Plane) is not available in
github releases, as building it requires Qt 5.8 and the ci container has older one..
This will eventually be fixed.

## Features ##

* Multiple concurrent connections
Expand Down
12 changes: 4 additions & 8 deletions scripts/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,12 @@ fi
# Build for linux first..
qmake -r
make
zip -r extplane-plugin.zip extplane-plugin/extplane/64/*.xpl
zip extplane-transformer.zip extplane-transformer/extplane-transformer-linux extplane-transformer.exe
make clean distclean

# Build for windows..
./scripts/cross-compile-win64-from-lin.sh

# Zip the results for release
pushd extplane-plugin
zip -r extplane.zip extplane
popd
pushd extplane-transformer
zip extplane-transformer.zip extplane-transformer-linux extplane-transformer.exe
popd
zip -r extplane-plugin.zip extplane-plugin/extplane/64/*.xpl
zip extplane-transformer.zip extplane-transformer/extplane-transformer.exe

0 comments on commit 141e806

Please sign in to comment.