summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-06-17 20:09:54 +0200
committerGitHub <noreply@github.com>2016-06-17 20:09:54 +0200
commit0473b59256ded407274c5d009cfa6b6b71a0c5f3 (patch)
treeef209ace0b158cb1d82e5c1cfbbde0b7e27a2b36
parentMerge pull request #1898 from archshift/interpreter-split-take2 (diff)
parentCMakeLists: Drop support for Qt 4 (diff)
downloadyuzu-0473b59256ded407274c5d009cfa6b6b71a0c5f3.tar
yuzu-0473b59256ded407274c5d009cfa6b6b71a0c5f3.tar.gz
yuzu-0473b59256ded407274c5d009cfa6b6b71a0c5f3.tar.bz2
yuzu-0473b59256ded407274c5d009cfa6b6b71a0c5f3.tar.lz
yuzu-0473b59256ded407274c5d009cfa6b6b71a0c5f3.tar.xz
yuzu-0473b59256ded407274c5d009cfa6b6b71a0c5f3.tar.zst
yuzu-0473b59256ded407274c5d009cfa6b6b71a0c5f3.zip
-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
#if OS is linux or is not set
if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
- export CC=gcc-5
- export CXX=g++-5
+ export CC=gcc-6
+ export CXX=g++-6
export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH
mkdir build && cd build
- cmake -DCITRA_FORCE_QT4=ON ..
+ cmake ..
make -j4
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
#if OS is linux or is not set
if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
- export CC=gcc-5
- export CXX=g++-5
+ export CC=gcc-6
+ export CXX=g++-6
mkdir -p $HOME/.local
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 @@
-os:
- - linux
- - osx
-
language: cpp
+matrix:
+ include:
+ - os: linux
+ sudo: true
+ dist: trusty
+ - os: osx
+ sudo: false
+
env:
global:
- secure: "AXHFIafTmbGDsHD3mUVj5a4I397DQjti/WoqAJGUp2PglxTcc04BwxZ9Z+xLuf5N2Hs5r9ojAJLT8OGxJCLBDXzneQTNSqXbFuYSLbqrEAiIRlA9eRIotWCg+wYcO+5e8MKX+cHVKwiIWasUB21AtCdq6msh6Y3pUshZp212VPg="
-sudo: false
-
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- - gcc-5
- - g++-5
+ - gcc-6
+ - g++-6
+ - qt5-default
+ - libqt5opengl5-dev
- xorg-dev
- lib32stdc++6 # For CMake
- 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)
option(ENABLE_QT "Enable the Qt frontend" ON)
option(CITRA_USE_BUNDLED_QT "Download bundled Qt binaries" OFF)
-option(CITRA_FORCE_QT4 "Use Qt4 even if Qt5 is available." OFF)
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git/hooks/pre-commit)
message(STATUS "Copying pre-commit hook")
@@ -201,16 +200,8 @@ if (ENABLE_QT)
set(QT_PREFIX_HINT)
endif()
- if (NOT CITRA_FORCE_QT4)
- find_package(Qt5 COMPONENTS Widgets OpenGL ${QT_PREFIX_HINT})
- set(CITRA_QT_LIBS Qt5::Widgets Qt5::OpenGL)
- endif()
-
- if (CITRA_FORCE_QT4 OR NOT Qt5_FOUND)
- # Try to fallback to Qt4
- find_package(Qt4 REQUIRED COMPONENTS QtGui QtOpenGL ${QT_PREFIX_HINT})
- set(CITRA_QT_LIBS Qt4::QtGui Qt4::QtOpenGL)
- endif()
+ find_package(Qt5 REQUIRED COMPONENTS Widgets OpenGL ${QT_PREFIX_HINT})
+ set(CITRA_QT_LIBS Qt5::Widgets Qt5::OpenGL)
endif()
# This function should be passed a list of all files in a target. It will automatically generate