mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use pkg-config for recast flags
Now that recastnavigation upstream ships a pkg-config file, Godot can rely on it for getting the build-time configuration.
This commit is contained in:
parent
ab6c6eece8
commit
1e8ead50dc
1 changed files with 1 additions and 3 deletions
|
|
@ -307,9 +307,7 @@ def configure(env: "SConsEnvironment"):
|
||||||
env.ParseConfig("pkg-config libpcre2-32 --cflags --libs")
|
env.ParseConfig("pkg-config libpcre2-32 --cflags --libs")
|
||||||
|
|
||||||
if not env["builtin_recastnavigation"]:
|
if not env["builtin_recastnavigation"]:
|
||||||
# No pkgconfig file so far, hardcode default paths.
|
env.ParseConfig("pkg-config recastnavigation --cflags --libs")
|
||||||
env.Prepend(CPPPATH=["/usr/include/recastnavigation"])
|
|
||||||
env.Append(LIBS=["Recast"])
|
|
||||||
|
|
||||||
if not env["builtin_embree"] and env["arch"] in ["x86_64", "arm64"]:
|
if not env["builtin_embree"] and env["arch"] in ["x86_64", "arm64"]:
|
||||||
# No pkgconfig file so far, hardcode expected lib name.
|
# No pkgconfig file so far, hardcode expected lib name.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue