playdate cross file
This commit is contained in:
4
Makefile
4
Makefile
@@ -34,6 +34,10 @@ crosswin: FORCE
|
||||
meson setup -Dbuildtype=debugoptimized --cross-file mingw32.cross build_win
|
||||
meson compile -C build_win
|
||||
|
||||
playdate: FORCE
|
||||
meson setup -Dbuildtype=debugoptimized --cross-file playdate.cross build_playdate
|
||||
meson compile -C build_playdate
|
||||
|
||||
FORCE:
|
||||
|
||||
IMAGE_LINUX := prosperon/linux-builder:latest
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
[binaries]
|
||||
c = 'emcc'
|
||||
cpp = 'em++'
|
||||
ar = 'emar'
|
||||
strip = 'emstrip'
|
||||
pkgconfig = 'pkg-config'
|
||||
exe_wrapper = 'node'
|
||||
c = 'emcc'
|
||||
cpp = 'em++'
|
||||
ar = 'emar'
|
||||
strip = 'emstrip'
|
||||
ranlib = 'emranlib'
|
||||
|
||||
[host_machine]
|
||||
system = 'emscripten'
|
||||
system = 'emscripten'
|
||||
cpu_family = 'wasm32'
|
||||
cpu = 'wasm32'
|
||||
endian = 'little'
|
||||
cpu = 'wasm32'
|
||||
endian = 'little'
|
||||
|
||||
[built-in options]
|
||||
pkg_config_path = '/emsdk/upstream/emscripten/cache/sysroot/lib/pkgconfig'
|
||||
cmake_prefix_path = '/emsdk/upstream/emscripten/cache/sysroot'
|
||||
c_args = ['-sUSE_PTHREADS=0']
|
||||
cpp_args = ['-sUSE_PTHREADS=0']
|
||||
c_link_args = ['-sALLOW_MEMORY_GROWTH=1', '-sEXPORTED_RUNTIME_METHODS=ccall,cwrap']
|
||||
cpp_link_args = ['-sALLOW_MEMORY_GROWTH=1', '-sEXPORTED_RUNTIME_METHODS=ccall,cwrap']
|
||||
|
||||
[properties]
|
||||
needs_exe_wrapper = true
|
||||
# <-- Replace with your real path to Emscripten.cmake:
|
||||
cmake_toolchain_file = '/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake'
|
||||
needs_exe_wrapper = true
|
||||
sys_root = '/emsdk/upstream/emscripten/cache/sysroot'
|
||||
|
||||
20
playdate.cross
Normal file
20
playdate.cross
Normal file
@@ -0,0 +1,20 @@
|
||||
[binaries]
|
||||
c = 'arm-none-eabi-gcc'
|
||||
cpp = 'arm-none-eabi-g++'
|
||||
ar = 'arm-none-eabi-ar'
|
||||
strip = 'arm-none-eabi-strip'
|
||||
objcopy = 'arm-none-eabi-objcopy'
|
||||
ld = 'arm-none-eabi-ld'
|
||||
|
||||
[host_machine]
|
||||
system = 'none'
|
||||
cpu_family = 'arm'
|
||||
cpu = 'cortex-m7'
|
||||
endian = 'little'
|
||||
|
||||
[properties]
|
||||
needs_exe_wrapper = true
|
||||
|
||||
[built-in options]
|
||||
c_args = ['-mcpu=cortex-m7', '-mthumb', '-mfloat-abi=hard', '-mfpu=fpv5-sp-d16', '-fno-exceptions']
|
||||
c_link_args = ['-mcpu=cortex-m7', '-mthumb', '-mfloat-abi=hard', '-mfpu=fpv5-sp-d16', '-nostartfiles']
|
||||
Reference in New Issue
Block a user