Skip to content

Commit

Permalink
travis: Build Linux/Qt with CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
Orphis committed Oct 17, 2016
1 parent cb4d073 commit 38ccdd2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
4 changes: 1 addition & 3 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ travis_install() {
sudo apt-get install -qq qt5-qmake qtmultimedia5-dev qtsystems5-dev qtbase5-dev qtdeclarative5-dev qttools5-dev-tools libqt5webkit5-dev libsqlite3-dev qt5-default
fi

if [ "$CMAKE" = "TRUE" ]; then
download_extract "https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz" cmake-3.6.2-Linux-x86_64.tar.gz
fi
download_extract "https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz" cmake-3.6.2-Linux-x86_64.tar.gz
fi

# Android NDK + GCC 4.8
Expand Down
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ matrix:
- os: linux
compiler: "gcc linux"
env: PPSSPP_BUILD_TYPE=Linux
CMAKE=TRUE
- os: linux
compiler: "gcc android-arm64-v8a"
env: PPSSPP_BUILD_TYPE=Android
Expand All @@ -61,7 +60,6 @@ matrix:
- os: linux
compiler: "clang linux"
env: PPSSPP_BUILD_TYPE=Linux
CMAKE=TRUE
- os: linux
compiler: "gcc qt"
env: PPSSPP_BUILD_TYPE=Linux
Expand Down
15 changes: 4 additions & 11 deletions b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ while test $# -gt 0
do
case "$1" in
--qt) echo "Qt enabled"
CMAKE=0
QT=1
CMAKE_ARGS="-DUSING_QT_UI=ON ${CMAKE_ARGS}"
;;
--ios) CMAKE_ARGS="-DCMAKE_TOOLCHAIN_FILE=cmake/Toolchains/ios.cmake ${CMAKE_ARGS}"
TARGET_OS=iOS
Expand Down Expand Up @@ -52,11 +53,7 @@ if [ ! -z "$TARGET_OS" ]; then
BUILD_DIR="$(tr [A-Z] [a-z] <<< build-"$TARGET_OS")"
else
echo "Building for native host."
if [ "$CMAKE" == "0" ]; then
BUILD_DIR="build-qt"
else
BUILD_DIR="build"
fi
BUILD_DIR="build"
fi

# Strict errors. Any non-zero return exits this script
Expand All @@ -65,11 +62,7 @@ set -e
mkdir -p ${BUILD_DIR}
pushd ${BUILD_DIR}

if [ "$CMAKE" == "1" ]; then
cmake $HEADLESS $CMAKE_ARGS .. | (grep -v "^-- " || true)
else
qmake $QMAKE_ARGS ../Qt/PPSSPPQt.pro
fi
cmake $CMAKE_ARGS .. | (grep -v "^-- " || true)

make -j4 $MAKE_OPT
popd

0 comments on commit 38ccdd2

Please sign in to comment.