mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Modified travis script.
This commit is contained in:
10
.travis.yml
10
.travis.yml
@@ -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 ..
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user