You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Linux/BSD: Add LINUXBSD_ENABLED define for non X11-related checks
This commit is contained in:
@@ -338,12 +338,17 @@ def configure(env: "Environment"):
|
||||
|
||||
env.Prepend(CPPPATH=["#platform/linuxbsd"])
|
||||
|
||||
env.Append(
|
||||
CPPDEFINES=[
|
||||
"LINUXBSD_ENABLED",
|
||||
"UNIX_ENABLED",
|
||||
("_FILE_OFFSET_BITS", 64),
|
||||
]
|
||||
)
|
||||
|
||||
if env["x11"]:
|
||||
env.Append(CPPDEFINES=["X11_ENABLED"])
|
||||
|
||||
env.Append(CPPDEFINES=["UNIX_ENABLED"])
|
||||
env.Append(CPPDEFINES=[("_FILE_OFFSET_BITS", 64)])
|
||||
|
||||
if env["vulkan"]:
|
||||
env.Append(CPPDEFINES=["VULKAN_ENABLED"])
|
||||
if not env["use_volk"]:
|
||||
|
||||
Reference in New Issue
Block a user