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",
|
||||
"-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
|
||||
|
|
Loading…
Reference in New Issue