Modified travis script.

This commit is contained in:
Florian Rival
2014-08-10 22:33:23 +02:00
parent f6216da3ed
commit cef5285f85
2 changed files with 14 additions and 1 deletions

View File

@@ -3,6 +3,16 @@ compiler:
- gcc
install:
#Download dependencies
- cd ExtLibs
- sudo apt-get install p7zip
- wget http://www.compilgames.net/code/GameDevelopSDK/SFML.7z
- 7za x SFML.7z
- wget http://www.compilgames.net/code/GameDevelopSDK/boost_1_55_0.7z
- 7za x boost_1_55_0.7z
- mv boost_1_55_0 boost
- cd ..
#Compile the tests only
- mkdir .build-tests
- cd .build-tests
- cmake -DBUILD_GDCPP=FALSE -DBUILD_GDJS=FALSE -DBUILD_IDE=FALSE -DBUILD_EXTENSIONS=FALSE -DBUILD_TESTS=TRUE -DNO_GUI=TRUE ..

View File

@@ -24,6 +24,9 @@ gd_set_option(BUILD_IDE TRUE BOOL "TRUE to build the IDE")
gd_set_option(BUILD_EXTENSIONS TRUE BOOL "TRUE to build the extensions")
gd_set_option(BUILD_TESTS FALSE BOOL "TRUE to build the tests")
gd_set_option(NO_GUI FALSE BOOL "TRUE to build without any GUI (no wxWidgets GUI, no SFML)")
IF (EMSCRIPTEN)
set(NO_GUI TRUE) #Force disable gui when compiling with emscripten.
ENDIF()
#Sanity checks
IF ("${CMAKE_BUILD_TYPE}" STREQUAL "")
@@ -42,7 +45,7 @@ ELSEIF(WIN32)
IF(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ExtLibs/SFML/build-mingw-release/lib")
message("It seems that SFML was not built! Make sure that SFML libraries are built into ExtLibs/SFML/build-mingw-release/lib")
ENDIF()
ELSEIF(NOT EMSCRIPTEN)
ELSEIF(NOT NO_GUI)
IF(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ExtLibs/SFML/build-linux/lib")
message( SEND_ERROR "It seems that SFML was not built! Make sure that SFML libraries are built into ExtLibs/SFML/build-linux/lib")
ENDIF()