Adjust version defines to avoid name collisions and improve usage ergonomics (#45)
* 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:
parent
54bf50ee31
commit
e72bd7a99e
|
@ -157,7 +157,8 @@ config.asflags = [
|
||||||
"--strip-local-absolute",
|
"--strip-local-absolute",
|
||||||
"-I include",
|
"-I include",
|
||||||
f"-I build/{config.version}/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 = [
|
config.ldflags = [
|
||||||
"-fp hardware",
|
"-fp hardware",
|
||||||
|
@ -198,7 +199,8 @@ cflags_base = [
|
||||||
"-multibyte", # For Wii compilers, replace with `-enc SJIS`
|
"-multibyte", # For Wii compilers, replace with `-enc SJIS`
|
||||||
"-i include",
|
"-i include",
|
||||||
f"-i build/{config.version}/include",
|
f"-i build/{config.version}/include",
|
||||||
f"-DVERSION={version_num}",
|
f"-DBUILD_VERSION={version_num}",
|
||||||
|
f"-DVERSION_{config.version}",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Debug flags
|
# Debug flags
|
||||||
|
|
Loading…
Reference in New Issue