summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2016-06-17 14:09:54 -0400
committerGravatar GitHub2016-06-17 14:09:54 -0400
commit0473b59256ded407274c5d009cfa6b6b71a0c5f3 (patch)
treeef209ace0b158cb1d82e5c1cfbbde0b7e27a2b36
parentMerge pull request #1898 from archshift/interpreter-split-take2 (diff)
parentCMakeLists: Drop support for Qt 4 (diff)
downloadyuzu-0473b59256ded407274c5d009cfa6b6b71a0c5f3.tar.gz
yuzu-0473b59256ded407274c5d009cfa6b6b71a0c5f3.tar.xz
yuzu-0473b59256ded407274c5d009cfa6b6b71a0c5f3.zip
Merge pull request #1917 from lioncash/ci
CI: Use Qt 5 and GCC 6 on Ubuntu CI builds
Diffstat (limited to '')
-rwxr-xr-x.travis-build.sh6
-rwxr-xr-x.travis-deps.sh4
-rw-r--r--.travis.yml20
-rw-r--r--CMakeLists.txt13
4 files changed, 19 insertions, 24 deletions
diff --git a/.travis-build.sh b/.travis-build.sh
index 511df04ac..8440b4f5c 100755
--- a/.travis-build.sh
+++ b/.travis-build.sh
@@ -11,12 +11,12 @@ fi
11 11
12#if OS is linux or is not set 12#if OS is linux or is not set
13if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then 13if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
14 export CC=gcc-5 14 export CC=gcc-6
15 export CXX=g++-5 15 export CXX=g++-6
16 export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH 16 export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH
17 17
18 mkdir build && cd build 18 mkdir build && cd build
19 cmake -DCITRA_FORCE_QT4=ON .. 19 cmake ..
20 make -j4 20 make -j4
21 21
22 ctest -VV -C Release 22 ctest -VV -C Release
diff --git a/.travis-deps.sh b/.travis-deps.sh
index 4a79feb70..10b69f5c4 100755
--- a/.travis-deps.sh
+++ b/.travis-deps.sh
@@ -5,8 +5,8 @@ set -x
5 5
6#if OS is linux or is not set 6#if OS is linux or is not set
7if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then 7if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
8 export CC=gcc-5 8 export CC=gcc-6
9 export CXX=g++-5 9 export CXX=g++-6
10 mkdir -p $HOME/.local 10 mkdir -p $HOME/.local
11 11
12 curl -L http://www.cmake.org/files/v3.1/cmake-3.1.0-Linux-i386.tar.gz \ 12 curl -L http://www.cmake.org/files/v3.1/cmake-3.1.0-Linux-i386.tar.gz \
diff --git a/.travis.yml b/.travis.yml
index 8d86baece..8be395770 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,22 +1,26 @@
1os:
2 - linux
3 - osx
4
5language: cpp 1language: cpp
6 2
3matrix:
4 include:
5 - os: linux
6 sudo: true
7 dist: trusty
8 - os: osx
9 sudo: false
10
7env: 11env:
8 global: 12 global:
9 - secure: "AXHFIafTmbGDsHD3mUVj5a4I397DQjti/WoqAJGUp2PglxTcc04BwxZ9Z+xLuf5N2Hs5r9ojAJLT8OGxJCLBDXzneQTNSqXbFuYSLbqrEAiIRlA9eRIotWCg+wYcO+5e8MKX+cHVKwiIWasUB21AtCdq6msh6Y3pUshZp212VPg=" 13 - secure: "AXHFIafTmbGDsHD3mUVj5a4I397DQjti/WoqAJGUp2PglxTcc04BwxZ9Z+xLuf5N2Hs5r9ojAJLT8OGxJCLBDXzneQTNSqXbFuYSLbqrEAiIRlA9eRIotWCg+wYcO+5e8MKX+cHVKwiIWasUB21AtCdq6msh6Y3pUshZp212VPg="
10 14
11sudo: false
12
13addons: 15addons:
14 apt: 16 apt:
15 sources: 17 sources:
16 - ubuntu-toolchain-r-test 18 - ubuntu-toolchain-r-test
17 packages: 19 packages:
18 - gcc-5 20 - gcc-6
19 - g++-5 21 - g++-6
22 - qt5-default
23 - libqt5opengl5-dev
20 - xorg-dev 24 - xorg-dev
21 - lib32stdc++6 # For CMake 25 - lib32stdc++6 # For CMake
22 - lftp # To upload builds 26 - lftp # To upload builds
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f7b0af115..9a436b981 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,7 +40,6 @@ option(CITRA_USE_BUNDLED_SDL2 "Download bundled SDL2 binaries" OFF)
40 40
41option(ENABLE_QT "Enable the Qt frontend" ON) 41option(ENABLE_QT "Enable the Qt frontend" ON)
42option(CITRA_USE_BUNDLED_QT "Download bundled Qt binaries" OFF) 42option(CITRA_USE_BUNDLED_QT "Download bundled Qt binaries" OFF)
43option(CITRA_FORCE_QT4 "Use Qt4 even if Qt5 is available." OFF)
44 43
45if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git/hooks/pre-commit) 44if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git/hooks/pre-commit)
46 message(STATUS "Copying pre-commit hook") 45 message(STATUS "Copying pre-commit hook")
@@ -201,16 +200,8 @@ if (ENABLE_QT)
201 set(QT_PREFIX_HINT) 200 set(QT_PREFIX_HINT)
202 endif() 201 endif()
203 202
204 if (NOT CITRA_FORCE_QT4) 203 find_package(Qt5 REQUIRED COMPONENTS Widgets OpenGL ${QT_PREFIX_HINT})
205 find_package(Qt5 COMPONENTS Widgets OpenGL ${QT_PREFIX_HINT}) 204 set(CITRA_QT_LIBS Qt5::Widgets Qt5::OpenGL)
206 set(CITRA_QT_LIBS Qt5::Widgets Qt5::OpenGL)
207 endif()
208
209 if (CITRA_FORCE_QT4 OR NOT Qt5_FOUND)
210 # Try to fallback to Qt4
211 find_package(Qt4 REQUIRED COMPONENTS QtGui QtOpenGL ${QT_PREFIX_HINT})
212 set(CITRA_QT_LIBS Qt4::QtGui Qt4::QtOpenGL)
213 endif()
214endif() 205endif()
215 206
216# This function should be passed a list of all files in a target. It will automatically generate 207# This function should be passed a list of all files in a target. It will automatically generate