misc,ci: Machine files (#321)

This commit is contained in:
Alice D 2021-09-14 15:39:24 -04:00 committed by GitHub
parent 7987c7ce34
commit 85e3cf0bd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 232 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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'

View 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

View 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

View 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'

View 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'

View 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'