Skip to content

Commit

Permalink
Merge pull request #1 from OpenCPN/master
Browse files Browse the repository at this point in the history
Ok to merge
  • Loading branch information
nauticat committed Jan 1, 2019
2 parents 53dafd1 + bd73e9b commit 4ec089a
Show file tree
Hide file tree
Showing 2,963 changed files with 453,511 additions and 175,593 deletions.
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ crowdin.yaml
buildwin/NSIS_Unicode/Include/Langstrings_*.nsh
buildwin/crashrpt/CrashRpt1402.dll
buildwin/crashrpt/CrashSender1402.exe
buildwin/crashrpt/dbghelp.dll
buildwin/expat*/
buildwin/gtk*/
buildwin/libcurl.dll
buildwin/ocpn_gltest1.exe
buildwin/vc/
buildwin/wxWidgets/
buildwin/zlib1.dll
buildwin/include/
buildwin/*.dll
buildwin/*.lib
buildwin/*.exe
buildwin/*.crt
src/opencpn.rc
.DS_Store
31 changes: 28 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
language: cpp

matrix:
include:
- dist: precise
compiler: gcc
- dist: trusty
compiler: gcc
- os: osx
compiler: clang

before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then grep -q precise /etc/lsb-release && sudo add-apt-repository -y ppa:wxformbuilder/wxwidgets || true; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade; fi
# Homebrew upgrade disabled to save time

install:
- sudo apt-get install libwxgtk3.0-dev libwxgtk3.0-0
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get --allow-unauthenticated install libwxgtk3.0-dev libwxgtk3.0-0 libgps-dev libglu1-mesa-dev libgtk2.0-dev libbz2-dev libtinyxml-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libarchive-dev liblzma-dev libexif-dev libsqlite3-dev gettext; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install wxmac --devel; fi
# We do not use wxmac, everything comes in the prebuilt tarball downloaded bellow
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install cairo libexif libarchive; wget http://opencpn.navnux.org/build_deps/cairo_macos107.tar.xz; tar xJf cairo_macos107.tar.xz -C /tmp; wget http://opencpn.navnux.org/build_deps/wx_opencpn_macos107.tar.xz; tar xJf wx_opencpn_macos107.tar.xz -C /tmp; wget http://opencpn.navnux.org/build_deps/libarchive_macos107.tar.xz; tar xJf libarchive_macos107.tar.xz -C /tmp; export PATH="/usr/local/opt/gettext/bin:$PATH"; echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile; fi
# We install cairo and libarchive from Homebrew to pull in the dependencies, but use the custom Lion compatible build later.

script:
- mkdir build && cd build
- cmake ../
- make
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cmake -DCMAKE_BUILD_TYPE=Debug ..; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cmake -DOCPN_USE_LIBCPP=ON -DwxWidgets_CONFIG_EXECUTABLE=/tmp/wx_opencpn_macos107/bin/wx-config -DwxWidgets_CONFIG_OPTIONS="--prefix=/tmp/wx_opencpn_macos107" -DLibArchive_INCLUDE_DIR=/tmp/libarchive_macos107/include -DLibArchive_LIBRARY=/tmp/libarchive_macos107/lib/libarchive.dylib -DCAIRO_INCLUDE_DIR=/tmp/cairo_macos107/include -DCAIRO_LIBRARY=/tmp/cairo_macos107/lib/libcairo.dylib -DCMAKE_INSTALL_PREFIX=/tmp/opencpn ..; fi
- make -s
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir -p /tmp/opencpn/bin/OpenCPN.app/Contents/MacOS/; chmod 644 /usr/local/lib/lib*.dylib; cp /tmp/libarchive_macos107/lib/libarchive.16.dylib /tmp/opencpn/bin/OpenCPN.app/Contents/MacOS/; cp /tmp/cairo_macos107/lib/libcairo.2.dylib /tmp/opencpn/bin/OpenCPN.app/Contents/MacOS/; make install; make create-dmg; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make package; fi

notifications:
email: false
Expand Down
Loading

0 comments on commit 4ec089a

Please sign in to comment.