252 lines
9.2 KiB
Plaintext
252 lines
9.2 KiB
Plaintext
return {
|
|
playdate: {
|
|
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-gcc',
|
|
system: 'playdate',
|
|
cpu_family: 'arm',
|
|
cpu: 'cortex-m7',
|
|
endian: 'little',
|
|
c_args: ['-DTARGET_PLAYDATE=1', '-DTARGET_EXTENSION=1', '-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', '-T/Users/john/Developer/PlaydateSDK/C_API/buildsupport/link_map.ld']
|
|
},
|
|
playdate_simulator: {
|
|
c: 'clang',
|
|
cpp: 'clang++',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'playdate',
|
|
cpu_family: 'x86_64',
|
|
cpu: 'x86_64',
|
|
endian: 'little',
|
|
c_args: ['-U__APPLE__ -DTARGET_SIMULATOR=1', '-DTARGET_EXTENSION=1', '-fPIC'],
|
|
c_link_args: ['-shared']
|
|
},
|
|
windows: {
|
|
c: 'x86_64-w64-mingw32-gcc',
|
|
cpp: 'x86_64-w64-mingw32-g++',
|
|
ar: 'x86_64-w64-mingw32-ar',
|
|
windres: 'x86_64-w64-mingw32-windres',
|
|
strip: 'x86_64-w64-mingw32-strip',
|
|
system: 'windows',
|
|
cpu_family: 'x86_64',
|
|
cpu: 'x86_64',
|
|
endian: 'little',
|
|
c_args: [],
|
|
c_link_args: []
|
|
},
|
|
windows_i686: {
|
|
c: 'i686-w64-mingw32-gcc',
|
|
cpp: 'i686-w64-mingw32-g++',
|
|
ar: 'i686-w64-mingw32-ar',
|
|
windres: 'i686-w64-mingw32-windres',
|
|
strip: 'i686-w64-mingw32-strip',
|
|
system: 'windows',
|
|
cpu_family: 'x86',
|
|
cpu: 'i686',
|
|
endian: 'little',
|
|
c_args: [],
|
|
c_link_args: []
|
|
},
|
|
linux: {
|
|
c: 'zig cc -target x86_64-linux-musl',
|
|
cpp: 'zig c++ -target x86_64-linux-musl',
|
|
ar: 'zig ar',
|
|
strip: 'strip',
|
|
system: 'linux',
|
|
cpu_family: 'x86_64',
|
|
cpu: 'x86_64',
|
|
endian: 'little',
|
|
c_args: [],
|
|
c_link_args: []
|
|
},
|
|
linux_arm64: {
|
|
c: 'zig cc -target aarch64-linux-musl',
|
|
cpp: 'zig c++ -target aarch64-linux-musl',
|
|
ar: 'zig ar',
|
|
strip: 'strip',
|
|
system: 'linux',
|
|
cpu_family: 'aarch64',
|
|
cpu: 'aarch64',
|
|
endian: 'little',
|
|
c_args: [],
|
|
c_link_args: []
|
|
},
|
|
macos_arm64: {
|
|
c: 'clang -target arm64-apple-macos11',
|
|
cpp: 'clang++ -target arm64-apple-macos11',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'darwin',
|
|
cpu_family: 'aarch64',
|
|
cpu: 'aarch64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk']
|
|
},
|
|
macos_x86_64: {
|
|
c: 'clang -target x86_64-apple-macos10.12',
|
|
cpp: 'clang++ -target x86_64-apple-macos10.12',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'darwin',
|
|
cpu_family: 'x86_64',
|
|
cpu: 'x86_64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk']
|
|
},
|
|
ios_arm64: {
|
|
c: 'clang -target arm64-apple-ios12.0',
|
|
cpp: 'clang++ -target arm64-apple-ios12.0',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'ios',
|
|
cpu_family: 'aarch64',
|
|
cpu: 'aarch64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk', '-fembed-bitcode'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk', '-fembed-bitcode']
|
|
},
|
|
ios_simulator_arm64: {
|
|
c: 'clang -target arm64-apple-ios12.0-simulator',
|
|
cpp: 'clang++ -target arm64-apple-ios12.0-simulator',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'ios',
|
|
cpu_family: 'aarch64',
|
|
cpu: 'aarch64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk']
|
|
},
|
|
ios_simulator_x86_64: {
|
|
c: 'clang -target x86_64-apple-ios12.0-simulator',
|
|
cpp: 'clang++ -target x86_64-apple-ios12.0-simulator',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'ios',
|
|
cpu_family: 'x86_64',
|
|
cpu: 'x86_64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk']
|
|
},
|
|
tvos_arm64: {
|
|
c: 'clang -target arm64-apple-tvos12.0',
|
|
cpp: 'clang++ -target arm64-apple-tvos12.0',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'tvos',
|
|
cpu_family: 'aarch64',
|
|
cpu: 'aarch64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk', '-fembed-bitcode'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk', '-fembed-bitcode']
|
|
},
|
|
tvos_simulator_arm64: {
|
|
c: 'clang -target arm64-apple-tvos12.0-simulator',
|
|
cpp: 'clang++ -target arm64-apple-tvos12.0-simulator',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'tvos',
|
|
cpu_family: 'aarch64',
|
|
cpu: 'aarch64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk']
|
|
},
|
|
tvos_simulator_x86_64: {
|
|
c: 'clang -target x86_64-apple-tvos12.0-simulator',
|
|
cpp: 'clang++ -target x86_64-apple-tvos12.0-simulator',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'tvos',
|
|
cpu_family: 'x86_64',
|
|
cpu: 'x86_64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk']
|
|
},
|
|
watchos_arm64: {
|
|
c: 'clang -target arm64_32-apple-watchos5.0',
|
|
cpp: 'clang++ -target arm64_32-apple-watchos5.0',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'watchos',
|
|
cpu_family: 'aarch64',
|
|
cpu: 'arm64_32',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk', '-fembed-bitcode'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk', '-fembed-bitcode']
|
|
},
|
|
watchos_simulator_arm64: {
|
|
c: 'clang -target arm64-apple-watchos5.0-simulator',
|
|
cpp: 'clang++ -target arm64-apple-watchos5.0-simulator',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'watchos',
|
|
cpu_family: 'aarch64',
|
|
cpu: 'aarch64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk']
|
|
},
|
|
watchos_simulator_x86_64: {
|
|
c: 'clang -target x86_64-apple-watchos5.0-simulator',
|
|
cpp: 'clang++ -target x86_64-apple-watchos5.0-simulator',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'watchos',
|
|
cpu_family: 'x86_64',
|
|
cpu: 'x86_64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk']
|
|
},
|
|
visionos_arm64: {
|
|
c: 'clang -target arm64-apple-xros1.0',
|
|
cpp: 'clang++ -target arm64-apple-xros1.0',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'visionos',
|
|
cpu_family: 'aarch64',
|
|
cpu: 'aarch64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/XROS.platform/Developer/SDKs/XROS.sdk']
|
|
},
|
|
visionos_simulator_arm64: {
|
|
c: 'clang -target arm64-apple-xros1.0-simulator',
|
|
cpp: 'clang++ -target arm64-apple-xros1.0-simulator',
|
|
ar: 'ar',
|
|
strip: 'strip',
|
|
system: 'visionos',
|
|
cpu_family: 'aarch64',
|
|
cpu: 'aarch64',
|
|
endian: 'little',
|
|
c_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/XRSimulator.platform/Developer/SDKs/XRSimulator.sdk'],
|
|
c_link_args: ['-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/XRSimulator.platform/Developer/SDKs/XRSimulator.sdk']
|
|
},
|
|
emscripten: {
|
|
c: 'emcc',
|
|
cpp: 'em++',
|
|
ar: 'emar',
|
|
strip: 'emstrip',
|
|
system: 'emscripten',
|
|
cpu_family: 'wasm32',
|
|
cpu: 'wasm32',
|
|
endian: 'little',
|
|
c_args: [],
|
|
c_link_args: []
|
|
},
|
|
raspberrypi: {
|
|
|
|
},
|
|
android: {
|
|
|
|
}
|
|
} |