40 lines
925 B
Plaintext
40 lines
925 B
Plaintext
|
|
[binaries]
|
||
|
|
c = 'xtensa-esp32s3-elf-gcc'
|
||
|
|
cpp = 'xtensa-esp32s3-elf-g++'
|
||
|
|
ar = 'xtensa-esp32s3-elf-ar'
|
||
|
|
strip = 'xtensa-esp32s3-elf-strip'
|
||
|
|
|
||
|
|
[build_machine]
|
||
|
|
system = 'linux'
|
||
|
|
cpu_family = 'x86_64'
|
||
|
|
cpu = 'x86_64'
|
||
|
|
endian = 'little'
|
||
|
|
|
||
|
|
[host_machine]
|
||
|
|
system = 'bare-metal' # Crucial: prevents Meson from assuming a POSIX environment
|
||
|
|
cpu_family = 'xtensa'
|
||
|
|
cpu = 'esp32s3'
|
||
|
|
endian = 'little'
|
||
|
|
|
||
|
|
[built-in options]
|
||
|
|
c_args = [
|
||
|
|
'-fdebug-prefix-map=@GLOBAL_SOURCE_ROOT@=C:/Users/Limeth/workspace/c/libxkbcommon-linux',
|
||
|
|
'-ffreestanding',
|
||
|
|
'-fno-builtin',
|
||
|
|
'-mlongcalls',
|
||
|
|
'-mfix-esp32-psram-cache-issue',
|
||
|
|
# Manually define the missing inttypes.h macros
|
||
|
|
'-DPRId64="lld"',
|
||
|
|
'-DPRIu64="llu"',
|
||
|
|
'-DPRIi64="lli"',
|
||
|
|
'-DPRId32="d"',
|
||
|
|
'-DPRIu32="u"',
|
||
|
|
'-DPRIx64="llx"'
|
||
|
|
]
|
||
|
|
c_link_args = [
|
||
|
|
'-nostdlib',
|
||
|
|
'-static'
|
||
|
|
]
|
||
|
|
# Ensure we only build static libraries for bare-metal
|
||
|
|
default_library = 'static'
|