misc,ci: Machine files (#321)
This commit is contained in:
parent
7987c7ce34
commit
85e3cf0bd8
8 changed files with 232 additions and 6 deletions
|
@ -67,7 +67,7 @@ jobs:
|
|||
|
||||
meson setup build/
|
||||
--cross-file misc/ci/emscripten-ephemeral-ci.ini
|
||||
--cross-file misc/ci/emscripten-build-ci.ini
|
||||
--cross-file misc/ci/emscripten-build.ini
|
||||
--prefix=$(pwd)/build-test
|
||||
|
||||
meson configure
|
||||
|
|
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -256,7 +256,7 @@ jobs:
|
|||
|
||||
meson setup build/
|
||||
--cross-file misc/ci/emscripten-ephemeral-ci.ini
|
||||
--cross-file misc/ci/emscripten-build-ci.ini
|
||||
--cross-file misc/ci/emscripten-build.ini
|
||||
--prefix=$(pwd)/build-test
|
||||
|
||||
meson configure
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
[constants]
|
||||
cflags = []
|
||||
ldflags = ['-v']
|
||||
# 'toolchain' must be supplied somehow
|
||||
# either replace this with the /absolute/path/to/emsdk
|
||||
# ... or supply a second machine file with this variable defined
|
||||
#toolchain = ''
|
||||
|
||||
[binaries]
|
||||
ar = toolchain / 'emar'
|
25
misc/ci/linux-x86_64-build-release.ini
Normal file
25
misc/ci/linux-x86_64-build-release.ini
Normal file
|
@ -0,0 +1,25 @@
|
|||
[constants]
|
||||
march = 'core2'
|
||||
mtune = 'skylake'
|
||||
cflags = ['-march='+march, '-mtune='+mtune]
|
||||
ldflags = []
|
||||
|
||||
[project options]
|
||||
deprecation_warnings = 'no-error'
|
||||
|
||||
[built-in options]
|
||||
c_args = cflags
|
||||
c_link_args = ldflags
|
||||
cpp_args = cflags
|
||||
cpp_link_args = ldflags
|
||||
wrap_mode = 'forcefallback'
|
||||
werror = true
|
||||
|
||||
[basis_universal:built-in options]
|
||||
werror = false
|
||||
|
||||
[sdl2:built-in options]
|
||||
werror = false
|
||||
|
||||
[libzstd:built-in options]
|
||||
werror = false
|
50
misc/ci/macos-aarch64-build-release.ini
Normal file
50
misc/ci/macos-aarch64-build-release.ini
Normal file
|
@ -0,0 +1,50 @@
|
|||
[constants]
|
||||
# apple silicon only supports macOS >=11.x, so just use that
|
||||
macos_min = '11.1'
|
||||
cflags = ['-mmacosx-version-min='+macos_min, '-arch', 'arm64', '-mcpu=apple-a14']
|
||||
ldflags = cflags
|
||||
|
||||
[host_machine]
|
||||
cpu_family = 'aarch64'
|
||||
cpu = 'apple-a14'
|
||||
system = 'darwin'
|
||||
endian = 'little'
|
||||
|
||||
[binaries]
|
||||
c = 'clang'
|
||||
cpp = 'clang++'
|
||||
objc = 'clang'
|
||||
strip = 'strip'
|
||||
pkgconfig = 'pkg-config'
|
||||
|
||||
[properties]
|
||||
needs_exe_wrapper = true
|
||||
|
||||
[project options]
|
||||
deprecation_warnings = 'no-error'
|
||||
|
||||
[built-in options]
|
||||
c_args = cflags
|
||||
c_link_args = ldflags
|
||||
cpp_args = cflags
|
||||
cpp_link_args = ldflags
|
||||
# necessary for -mmacosx-version-min to take effect on objc headers when building for macOS
|
||||
objc_args = cflags
|
||||
objc_link_args = ldflags
|
||||
wrap_mode = 'forcefallback'
|
||||
werror = true
|
||||
|
||||
[basis_universal:built-in options]
|
||||
werror = false
|
||||
|
||||
[libzstd:built-in options]
|
||||
werror = false
|
||||
|
||||
[sdl2:built-in options]
|
||||
werror = false
|
||||
|
||||
[sdl2:project options]
|
||||
# neither are necessary for macOS, but SDL2 will compile against them if present on the system (homebrew)
|
||||
use_audio_pulseaudio = 'disabled'
|
||||
use_video_x11 = 'disabled'
|
||||
werror = false
|
34
misc/ci/macos-x86_64-build-release.ini
Normal file
34
misc/ci/macos-x86_64-build-release.ini
Normal file
|
@ -0,0 +1,34 @@
|
|||
[constants]
|
||||
march = 'core2'
|
||||
mtune = 'skylake'
|
||||
macos_min = '10.9'
|
||||
cflags = ['-mmacosx-version-min='+macos_min, '-march='+march, '-mtune='+mtune]
|
||||
ldflags = ['-mmacosx-version-min='+macos_min]
|
||||
|
||||
[project options]
|
||||
deprecation_warnings = 'no-error'
|
||||
|
||||
[built-in options]
|
||||
c_args = cflags
|
||||
c_link_args = ldflags
|
||||
cpp_args = cflags
|
||||
cpp_link_args = ldflags
|
||||
# necessary for -mmacosx-version-min to take effect on objc headers when building for macOS
|
||||
objc_args = cflags
|
||||
objc_link_args = ldflags
|
||||
wrap_mode = 'forcefallback'
|
||||
werror = true
|
||||
|
||||
[basis_universal:built-in options]
|
||||
werror = false
|
||||
|
||||
[libzstd:built-in options]
|
||||
werror = false
|
||||
|
||||
[sdl2:built-in options]
|
||||
werror = false
|
||||
|
||||
[sdl2:project options]
|
||||
# neither are necessary for macOS, but SDL2 will compile against them if present on the system (homebrew)
|
||||
use_audio_pulseaudio = 'disabled'
|
||||
use_video_x11 = 'disabled'
|
61
misc/ci/windows-llvm_mingw-x86-build-release.ini
Normal file
61
misc/ci/windows-llvm_mingw-x86-build-release.ini
Normal file
|
@ -0,0 +1,61 @@
|
|||
[constants]
|
||||
toolchain = '/opt/llvm-mingw'
|
||||
arch = 'i686-w64-mingw32'
|
||||
cpufamily = 'x86'
|
||||
march = 'pentium4'
|
||||
mtune = 'k8'
|
||||
bin = toolchain/'bin'
|
||||
exeprefix = bin/arch+'-'
|
||||
cc = exeprefix+'clang'
|
||||
cxx = exeprefix+'clang++'
|
||||
cflags = ['-march='+march, '-mtune='+mtune]
|
||||
ldflags = ['-static']
|
||||
|
||||
[properties]
|
||||
needs_exe_wrapper = true
|
||||
sys_root = toolchain/arch
|
||||
pkg_config_libdir = toolchain/arch/'lib'
|
||||
|
||||
[binaries]
|
||||
c = cc
|
||||
cpp = cxx
|
||||
c_ld = 'lld'
|
||||
cpp_ld = 'lld'
|
||||
strip = exeprefix+'strip'
|
||||
ar = exeprefix+'ar'
|
||||
ranlib = exeprefix+'ranlib'
|
||||
nm = exeprefix+'nm'
|
||||
size = exeprefix+'size'
|
||||
dlltool = exeprefix+'dlltool'
|
||||
objcopy = exeprefix+'objcopy'
|
||||
objdump = exeprefix+'objdump'
|
||||
widl = exeprefix+'widl'
|
||||
windres = exeprefix+'windres'
|
||||
ld = exeprefix+'ld'
|
||||
|
||||
[project options]
|
||||
deprecation_warnings = 'no-error'
|
||||
install_angle = true
|
||||
r_gles30 = true
|
||||
shader_transpiler = true
|
||||
|
||||
[built-in options]
|
||||
c_args = cflags
|
||||
c_link_args = ldflags
|
||||
cpp_args = cflags
|
||||
cpp_link_args = ldflags
|
||||
wrap_mode = 'forcefallback'
|
||||
werror = false
|
||||
|
||||
[cmake]
|
||||
CMAKE_C_COMPILER = cc
|
||||
CMAKE_CXX_COMPILER = cxx
|
||||
CMAKE_C_FLAGS = cflags
|
||||
CMAKE_CXX_FLAGS = cflags
|
||||
|
||||
[host_machine]
|
||||
system = 'windows'
|
||||
cpu_family = cpufamily
|
||||
cpu = march
|
||||
endian = 'little'
|
||||
|
60
misc/ci/windows-llvm_mingw-x86_64-build-release.ini
Normal file
60
misc/ci/windows-llvm_mingw-x86_64-build-release.ini
Normal file
|
@ -0,0 +1,60 @@
|
|||
[constants]
|
||||
toolchain = '/opt/llvm-mingw'
|
||||
arch = 'x86_64-w64-mingw32'
|
||||
cpufamily = 'x86_64'
|
||||
march = 'x86-64-v2'
|
||||
mtune = 'znver2'
|
||||
bin = toolchain/'bin'
|
||||
exeprefix = bin/arch+'-'
|
||||
cc = exeprefix+'clang'
|
||||
cxx = exeprefix+'clang++'
|
||||
cflags = ['-march='+march, '-mtune='+mtune]
|
||||
ldflags = ['-static']
|
||||
|
||||
[properties]
|
||||
needs_exe_wrapper = true
|
||||
sys_root = toolchain/arch
|
||||
pkg_config_libdir = toolchain/arch/'lib'
|
||||
|
||||
[binaries]
|
||||
c = cc
|
||||
cpp = cxx
|
||||
c_ld = 'lld'
|
||||
cpp_ld = 'lld'
|
||||
strip = exeprefix+'strip'
|
||||
ar = exeprefix+'ar'
|
||||
ranlib = exeprefix+'ranlib'
|
||||
nm = exeprefix+'nm'
|
||||
size = exeprefix+'size'
|
||||
dlltool = exeprefix+'dlltool'
|
||||
objcopy = exeprefix+'objcopy'
|
||||
objdump = exeprefix+'objdump'
|
||||
widl = exeprefix+'widl'
|
||||
windres = exeprefix+'windres'
|
||||
ld = exeprefix+'ld'
|
||||
|
||||
[project options]
|
||||
deprecation_warnings = 'no-error'
|
||||
install_angle = true
|
||||
r_gles30 = true
|
||||
shader_transpiler = true
|
||||
|
||||
[built-in options]
|
||||
c_args = cflags
|
||||
c_link_args = ldflags
|
||||
cpp_args = cflags
|
||||
cpp_link_args = ldflags
|
||||
wrap_mode = 'forcefallback'
|
||||
werror = false
|
||||
|
||||
[cmake]
|
||||
CMAKE_C_COMPILER = cc
|
||||
CMAKE_CXX_COMPILER = cxx
|
||||
CMAKE_C_FLAGS = cflags
|
||||
CMAKE_CXX_FLAGS = cflags
|
||||
|
||||
[host_machine]
|
||||
system = 'windows'
|
||||
cpu_family = cpufamily
|
||||
cpu = march
|
||||
endian = 'little'
|
Loading…
Reference in a new issue