1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-12-26 06:36:19 +00:00

Update c_cpp_properties.json for VSCode (#2033)

This commit is contained in:
Dragorn421 2024-08-12 01:34:05 +02:00 committed by GitHub
parent 8df87038a0
commit dd48d34270
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 164 additions and 14 deletions

View file

@ -1,5 +1,90 @@
{ {
"configurations": [ "configurations": [
{
"name": "oot-ntsc-1.2",
"compilerArgs": [
"-m32"
],
"includePath": [
"include",
"include/libc",
"src",
"build/ntsc-1.2",
".",
"extracted/ntsc-1.2"
],
"defines": [
"_LANGUAGE_C",
"OOT_VERSION=OOT_NTSC_1_2",
"OOT_REGION=REGION_JP",
"PLATFORM_N64=1",
"PLATFORM_GC=0",
"OOT_NTSC=1",
"OOT_MQ=0",
"OOT_DEBUG=0",
"NDEBUG",
"F3DEX_GBI_2"
],
"cStandard": "gnu89"
},
{
"name": "oot-gc-jp",
"compilerArgs": [
"-m32"
],
"includePath": [
"include",
"include/libc",
"src",
"build/gc-jp",
".",
"extracted/gc-jp"
],
"defines": [
"_LANGUAGE_C",
"OOT_VERSION=OOT_GC_JP",
"OOT_REGION=REGION_JP",
"PLATFORM_N64=0",
"PLATFORM_GC=1",
"OOT_NTSC=1",
"OOT_MQ=0",
"OOT_DEBUG=0",
"NDEBUG",
"F3DEX_GBI_2",
"F3DEX_GBI_PL",
"GBI_DOWHILE"
],
"cStandard": "gnu89"
},
{
"name": "oot-gc-jp-mq",
"compilerArgs": [
"-m32"
],
"includePath": [
"include",
"include/libc",
"src",
"build/gc-jp-mq",
".",
"extracted/gc-jp-mq"
],
"defines": [
"_LANGUAGE_C",
"OOT_VERSION=OOT_GC_JP_MQ",
"OOT_REGION=REGION_JP",
"PLATFORM_N64=0",
"PLATFORM_GC=1",
"OOT_NTSC=1",
"OOT_MQ=1",
"OOT_DEBUG=0",
"NDEBUG",
"F3DEX_GBI_2",
"F3DEX_GBI_PL",
"GBI_DOWHILE"
],
"cStandard": "gnu89"
},
{ {
"name": "oot-gc-us", "name": "oot-gc-us",
"compilerArgs": [ "compilerArgs": [
@ -17,6 +102,8 @@
"_LANGUAGE_C", "_LANGUAGE_C",
"OOT_VERSION=OOT_GC_US", "OOT_VERSION=OOT_GC_US",
"OOT_REGION=REGION_US", "OOT_REGION=REGION_US",
"PLATFORM_N64=0",
"PLATFORM_GC=1",
"OOT_NTSC=1", "OOT_NTSC=1",
"OOT_MQ=0", "OOT_MQ=0",
"OOT_DEBUG=0", "OOT_DEBUG=0",
@ -27,6 +114,64 @@
], ],
"cStandard": "gnu89" "cStandard": "gnu89"
}, },
{
"name": "oot-gc-us-mq",
"compilerArgs": [
"-m32"
],
"includePath": [
"include",
"include/libc",
"src",
"build/gc-us-mq",
".",
"extracted/gc-us-mq"
],
"defines": [
"_LANGUAGE_C",
"OOT_VERSION=OOT_GC_US_MQ",
"OOT_REGION=REGION_US",
"PLATFORM_N64=0",
"PLATFORM_GC=1",
"OOT_NTSC=1",
"OOT_MQ=1",
"OOT_DEBUG=0",
"NDEBUG",
"F3DEX_GBI_2",
"F3DEX_GBI_PL",
"GBI_DOWHILE"
],
"cStandard": "gnu89"
},
{
"name": "oot-gc-eu-mq-dbg",
"compilerArgs": [
"-m32"
],
"includePath": [
"include",
"include/libc",
"src",
"build/gc-eu-mq-dbg",
".",
"extracted/gc-eu-mq-dbg"
],
"defines": [
"_LANGUAGE_C",
"OOT_VERSION=OOT_GC_EU_MQ_DBG",
"OOT_REGION=REGION_EU",
"PLATFORM_N64=0",
"PLATFORM_GC=1",
"OOT_PAL=1",
"OOT_MQ=1",
"OOT_DEBUG=1",
"F3DEX_GBI_2",
"F3DEX_GBI_PL",
"GBI_DOWHILE",
"GBI_DEBUG"
],
"cStandard": "gnu89"
},
{ {
"name": "oot-gc-eu", "name": "oot-gc-eu",
"compilerArgs": [ "compilerArgs": [
@ -44,6 +189,8 @@
"_LANGUAGE_C", "_LANGUAGE_C",
"OOT_VERSION=OOT_GC_EU", "OOT_VERSION=OOT_GC_EU",
"OOT_REGION=REGION_EU", "OOT_REGION=REGION_EU",
"PLATFORM_N64=0",
"PLATFORM_GC=1",
"OOT_PAL=1", "OOT_PAL=1",
"OOT_MQ=0", "OOT_MQ=0",
"OOT_DEBUG=0", "OOT_DEBUG=0",
@ -71,6 +218,8 @@
"_LANGUAGE_C", "_LANGUAGE_C",
"OOT_VERSION=OOT_GC_EU_MQ", "OOT_VERSION=OOT_GC_EU_MQ",
"OOT_REGION=REGION_EU", "OOT_REGION=REGION_EU",
"PLATFORM_N64=0",
"PLATFORM_GC=1",
"OOT_PAL=1", "OOT_PAL=1",
"OOT_MQ=1", "OOT_MQ=1",
"OOT_DEBUG=0", "OOT_DEBUG=0",
@ -82,7 +231,7 @@
"cStandard": "gnu89" "cStandard": "gnu89"
}, },
{ {
"name": "oot-gc-eu-mq-dbg", "name": "oot-gc-jp-ce",
"compilerArgs": [ "compilerArgs": [
"-m32" "-m32"
], ],
@ -90,24 +239,26 @@
"include", "include",
"include/libc", "include/libc",
"src", "src",
"build/gc-eu-mq-dbg", "build/gc-jp-ce",
".", ".",
"extracted/gc-eu-mq-dbg" "extracted/gc-jp-ce"
], ],
"defines": [ "defines": [
"_LANGUAGE_C", "_LANGUAGE_C",
"OOT_VERSION=OOT_GC_EU_MQ_DBG", "OOT_VERSION=OOT_GC_JP_CE",
"OOT_REGION=REGION_EU", "OOT_REGION=REGION_JP",
"OOT_PAL=1", "PLATFORM_N64=0",
"OOT_MQ=1", "PLATFORM_GC=1",
"OOT_DEBUG=1", "OOT_NTSC=1",
"OOT_MQ=0",
"OOT_DEBUG=0",
"NDEBUG",
"F3DEX_GBI_2", "F3DEX_GBI_2",
"F3DEX_GBI_PL", "F3DEX_GBI_PL",
"GBI_DOWHILE", "GBI_DOWHILE"
"GBI_DEBUG"
], ],
"cStandard": "gnu89" "cStandard": "gnu89"
} },
], ],
"version": 4 "version": 4
} }

View file

@ -46,11 +46,9 @@ A more complete `c_cpp_properties.json` with configurations for all supported ve
"configurations": [ "configurations": [
{ {
"name": "oot-gc-eu-mq-dbg", "name": "oot-gc-eu-mq-dbg",
"compilerPath": "${default}", // Needs to not be "" for -m32 to work
"compilerArgs": [ "compilerArgs": [
"-m32" // Removes integer truncation warnings with gbi macros "-m32" // Removes integer truncation warnings with gbi macros
], ],
"intelliSenseMode": "${default}", // Shouldn't matter
"includePath": [ // Matches makefile's includes "includePath": [ // Matches makefile's includes
"include", "include",
"include/libc", "include/libc",
@ -64,6 +62,8 @@ A more complete `c_cpp_properties.json` with configurations for all supported ve
// Version-specific // Version-specific
"OOT_VERSION=OOT_GC_EU_MQ_DBG", "OOT_VERSION=OOT_GC_EU_MQ_DBG",
"OOT_REGION=REGION_EU", "OOT_REGION=REGION_EU",
"PLATFORM_N64=0",
"PLATFORM_GC=1",
"OOT_PAL=1", "OOT_PAL=1",
"OOT_MQ=1", "OOT_MQ=1",
"OOT_DEBUG=1", "OOT_DEBUG=1",
@ -73,7 +73,6 @@ A more complete `c_cpp_properties.json` with configurations for all supported ve
"GBI_DEBUG" "GBI_DEBUG"
], ],
"cStandard": "gnu89", // C89 + some GNU extensions from C99 like C++ comments "cStandard": "gnu89", // C89 + some GNU extensions from C99 like C++ comments
"cppStandard": "${default}" // Only ZAPD uses C++, so doesn't really matter
} }
], ],
"version": 4 "version": 4