YREA-SLS/SLS_C/build_system/config.json

92 lines
2.2 KiB
JSON

{
"directories": {
"src": "src",
"test": "tests",
"obj": "obj",
"bin": "bin",
"include": "include"
},
"targets": {
"linux": {
"binary_name": "sls",
"test_binary_name": "sls_tests"
},
"windows": {
"binary_name": "sls.exe",
"test_binary_name": "sls_tests.exe"
},
"rp2040": {
"binary_name": "sls.elf",
"build_dir": "build_pico",
"toolchain_file": "pico_arm_gcc_toolchain.cmake",
"sdk_path_env": "PICO_SDK_PATH",
"sdk_path_default": "~/pico/pico-sdk",
"excluded_sources": [
"main.c",
"repl.c",
"file.c"
],
"required_sources": [
"pico_main.c"
]
}
},
"compiler_flags": {
"gcc": {
"common": [
"-std=c99",
"-Wall",
"-Wextra",
"-Werror",
"-Iinclude",
"-g"
],
"test": [
"-std=c99",
"-Wall",
"-Wextra",
"-Wno-unused-function",
"-Werror",
"-Iinclude",
"-g",
"-O0"
],
"link": [
"-lm"
]
},
"msvc": {
"common": [
"/std:c11",
"/Zi",
"/Iinclude"
],
"test": [
"/std:c11",
"/Zi",
"/Iinclude"
],
"link": []
},
"arm_gcc": {
"common": [
"-std=c99",
"-Wall",
"-Wextra",
"-mcpu=cortex-m0plus",
"-mthumb"
],
"link": []
}
},
"test_generation": {
"script_path": "../SLS_Tests/yaml_to_c_tests.py",
"yaml_path": "../SLS_Tests/cases.yaml",
"output_file": "tests/lexer_tests.c"
},
"python_command": {
"windows": "python",
"unix": "python3"
}
}