forked from Warzone2100/warzone2100
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
1,996 changed files
with
348,764 additions
and
664,864 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
SET(CMAKE_SYSTEM_NAME "Windows") | ||
SET(CMAKE_SYSTEM_PROCESSOR "ARM64") | ||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") | ||
set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "") | ||
endif() | ||
|
||
set(_WZ_MINGW_TRIPLET_PREFIX "aarch64") | ||
|
||
find_program(CMAKE_C_COMPILER "${_WZ_MINGW_TRIPLET_PREFIX}-w64-mingw32-gcc") | ||
find_program(CMAKE_CXX_COMPILER "${_WZ_MINGW_TRIPLET_PREFIX}-w64-mingw32-g++") | ||
find_program(CMAKE_RC_COMPILER "${_WZ_MINGW_TRIPLET_PREFIX}-w64-mingw32-windres") | ||
if(NOT CMAKE_RC_COMPILER) | ||
find_program(CMAKE_RC_COMPILER "windres") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
SET(CMAKE_SYSTEM_NAME "Windows") | ||
SET(CMAKE_SYSTEM_PROCESSOR "X86") | ||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") | ||
set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "") | ||
endif() | ||
|
||
set(_WZ_MINGW_TRIPLET_PREFIX "i686") | ||
|
||
find_program(CMAKE_C_COMPILER "${_WZ_MINGW_TRIPLET_PREFIX}-w64-mingw32-gcc") | ||
find_program(CMAKE_CXX_COMPILER "${_WZ_MINGW_TRIPLET_PREFIX}-w64-mingw32-g++") | ||
find_program(CMAKE_RC_COMPILER "${_WZ_MINGW_TRIPLET_PREFIX}-w64-mingw32-windres") | ||
if(NOT CMAKE_RC_COMPILER) | ||
find_program(CMAKE_RC_COMPILER "windres") | ||
endif() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Toolchain for compiling for Emscripten | ||
|
||
# Note: | ||
# This is a bit of a hack. | ||
# We actually want to use the Emscripten.cmake toolchain provided by Emscripten... | ||
# However we also want to override and enable pthreads for everything | ||
|
||
if(NOT DEFINED ENV{EMSCRIPTEN_ROOT}) | ||
find_path(EMSCRIPTEN_ROOT "emcc") | ||
else() | ||
set(EMSCRIPTEN_ROOT "$ENV{EMSCRIPTEN_ROOT}") | ||
endif() | ||
|
||
if(NOT EMSCRIPTEN_ROOT) | ||
if(NOT DEFINED ENV{EMSDK}) | ||
message(FATAL_ERROR "The emcc compiler not found in PATH") | ||
endif() | ||
set(EMSCRIPTEN_ROOT "$ENV{EMSDK}/upstream/emscripten") | ||
endif() | ||
|
||
if(NOT EXISTS "${EMSCRIPTEN_ROOT}/cmake/Modules/Platform/Emscripten.cmake") | ||
message(FATAL_ERROR "Emscripten.cmake toolchain file not found") | ||
endif() | ||
|
||
include("${EMSCRIPTEN_ROOT}/cmake/Modules/Platform/Emscripten.cmake") | ||
|
||
# Always enable PThreads | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s USE_PTHREADS=1 -s USE_SDL=0") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s USE_PTHREADS=1 -s USE_SDL=0") | ||
|
||
# Enable optimizations for release builds | ||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2") | ||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
SET(CMAKE_SYSTEM_NAME "Windows") | ||
SET(CMAKE_SYSTEM_PROCESSOR "AMD64") | ||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") | ||
set(CMAKE_CROSSCOMPILING OFF CACHE BOOL "") | ||
endif() | ||
|
||
set(_WZ_MINGW_TRIPLET_PREFIX "x86_64") | ||
|
||
find_program(CMAKE_C_COMPILER "${_WZ_MINGW_TRIPLET_PREFIX}-w64-mingw32-gcc") | ||
find_program(CMAKE_CXX_COMPILER "${_WZ_MINGW_TRIPLET_PREFIX}-w64-mingw32-g++") | ||
find_program(CMAKE_RC_COMPILER "${_WZ_MINGW_TRIPLET_PREFIX}-w64-mingw32-windres") | ||
if(NOT CMAKE_RC_COMPILER) | ||
find_program(CMAKE_RC_COMPILER "windres") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Toolchain for cross-compiling | ||
|
||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR "@WZ_CROSS_COMPILE_TARGET_ARCH@") | ||
|
||
# Specify the cross compiler | ||
set(CMAKE_C_COMPILER "@WZ_CROSS_COMPILE_TARGET_ARCH@-unknown-linux-gnu-gcc") | ||
set(CMAKE_CXX_COMPILER "@WZ_CROSS_COMPILE_TARGET_ARCH@-unknown-linux-gnu-g++") | ||
|
||
# Target search paths | ||
set(CMAKE_FIND_ROOT_PATH "/app;/usr/lib/@WZ_CROSS_COMPILE_TARGET_ARCH@-linux-gnu;/usr/include/@WZ_CROSS_COMPILE_TARGET_ARCH@-linux-gnu" CACHE STRING "Find root path" FORCE) | ||
|
||
# Search for programs in the build host directories | ||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
|
||
# Search for libraries and headers in the target directories | ||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) | ||
|
||
# Point pkgconfig at target arch .pc files first, falling back to regular system .pc files | ||
if(EXISTS "/usr/lib/@WZ_CROSS_COMPILE_TARGET_ARCH@-linux-gnu/pkgconfig") | ||
set(ENV{PKG_CONFIG_LIBDIR} "/usr/lib/@WZ_CROSS_COMPILE_TARGET_ARCH@-linux-gnu/pkgconfig") | ||
endif() |
Oops, something went wrong.