diff options
| -rwxr-xr-x | .travis/linux-mingw/build.sh | 5 | ||||
| -rw-r--r-- | CMakeLists.txt | 28 |
2 files changed, 18 insertions, 15 deletions
diff --git a/.travis/linux-mingw/build.sh b/.travis/linux-mingw/build.sh index c32a909d3..b12d70b12 100755 --- a/.travis/linux-mingw/build.sh +++ b/.travis/linux-mingw/build.sh | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | #!/bin/bash -ex | 1 | #!/bin/bash -ex |
| 2 | 2 | mkdir "$HOME/.ccache" || true | |
| 3 | mkdir -p "$HOME/.ccache" | 3 | docker run --env-file .travis/common/travis-ci.env -v $(pwd):/yuzu -v "$HOME/.ccache":/root/.ccache yuzuemu/build-environments:linux-mingw /bin/bash -ex /yuzu/.travis/linux-mingw/docker.sh |
| 4 | docker run -e ENABLE_COMPATIBILITY_REPORTING --env-file .travis/common/travis-ci.env -v $(pwd):/yuzu -v "$HOME/.ccache":/root/.ccache yuzuemu/build-environments:linux-mingw /bin/bash /yuzu/.travis/linux-mingw/docker.sh | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a207f9e3..bfa104034 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -7,18 +7,6 @@ include(CMakeDependentOption) | |||
| 7 | 7 | ||
| 8 | project(yuzu) | 8 | project(yuzu) |
| 9 | 9 | ||
| 10 | # Get Git submodule dependencies | ||
| 11 | find_package(Git QUIET) | ||
| 12 | if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git") | ||
| 13 | execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive | ||
| 14 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
| 15 | RESULT_VARIABLE GIT_SUBMOD_RESULT) | ||
| 16 | if(NOT GIT_SUBMOD_RESULT EQUAL "0") | ||
| 17 | message(FATAL_ERROR "git submodule update --init --recursive failed with ${GIT_SUBMOD_RESULT}, " | ||
| 18 | "please checkout submodules manually with \"git submodule update --init --recursive\"") | ||
| 19 | endif() | ||
| 20 | endif() | ||
| 21 | |||
| 22 | # Set bundled sdl2/qt as dependent options. | 10 | # Set bundled sdl2/qt as dependent options. |
| 23 | # OFF by default, but if ENABLE_SDL2 and MSVC are true then ON | 11 | # OFF by default, but if ENABLE_SDL2 and MSVC are true then ON |
| 24 | option(ENABLE_SDL2 "Enable the SDL2 frontend" ON) | 12 | option(ENABLE_SDL2 "Enable the SDL2 frontend" ON) |
| @@ -45,6 +33,22 @@ if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/hooks/pre-commit) | |||
| 45 | DESTINATION ${PROJECT_SOURCE_DIR}/.git/hooks) | 33 | DESTINATION ${PROJECT_SOURCE_DIR}/.git/hooks) |
| 46 | endif() | 34 | endif() |
| 47 | 35 | ||
| 36 | # Sanity check : Check that all submodules are present | ||
| 37 | # ======================================================================= | ||
| 38 | |||
| 39 | function(check_submodules_present) | ||
| 40 | file(READ "${PROJECT_SOURCE_DIR}/.gitmodules" gitmodules) | ||
| 41 | string(REGEX MATCHALL "path *= *[^ \t\r\n]*" gitmodules ${gitmodules}) | ||
| 42 | foreach(module ${gitmodules}) | ||
| 43 | string(REGEX REPLACE "path *= *" "" module ${module}) | ||
| 44 | if (NOT EXISTS "${PROJECT_SOURCE_DIR}/${module}/.git") | ||
| 45 | message(FATAL_ERROR "Git submodule ${module} not found. " | ||
| 46 | "Please run: git submodule update --init --recursive") | ||
| 47 | endif() | ||
| 48 | endforeach() | ||
| 49 | endfunction() | ||
| 50 | check_submodules_present() | ||
| 51 | |||
| 48 | configure_file(${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.qrc | 52 | configure_file(${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.qrc |
| 49 | ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.qrc | 53 | ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.qrc |
| 50 | COPYONLY) | 54 | COPYONLY) |