Adjust version defines to avoid name collisions and improve usage ergonomics ()

* Rename `VERSION` define to `BUILD_VERSION` to avoid some possible name collisions

* Set a unique define per game version in addition to the `BUILD_VERSION` define
This commit is contained in:
Nathan 2024-12-14 12:14:21 -07:00 committed by GitHub
parent 54bf50ee31
commit e72bd7a99e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -157,7 +157,8 @@ config.asflags = [
"--strip-local-absolute",
"-I include",
f"-I build/{config.version}/include",
f"--defsym version={version_num}",
f"--defsym BUILD_VERSION={version_num}",
f"--defsym VERSION_{config.version}",
]
config.ldflags = [
"-fp hardware",
@ -198,7 +199,8 @@ cflags_base = [
"-multibyte", # For Wii compilers, replace with `-enc SJIS`
"-i include",
f"-i build/{config.version}/include",
f"-DVERSION={version_num}",
f"-DBUILD_VERSION={version_num}",
f"-DVERSION_{config.version}",
]
# Debug flags