Skip to content

Commit

Permalink
updated windows path in sconstruct for the github action
Browse files Browse the repository at this point in the history
  • Loading branch information
zodywoolsey committed Aug 22, 2024
1 parent 3a0378d commit fa39a3e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ env = SConscript("godot-cpp/SConstruct")
# - LINKFLAGS are for linking flags

if env["platform"] == "windows":
env.Append(LIBPATH=["src/opus/build-win/Release"])
# env.Append(LIBPATH=["src/opus/build-win/Release"])
env.Append(LIBPATH=["src/opus/build-win/"])
else:
env.Append(LIBPATH=["src/opus/build/"])

Expand All @@ -23,22 +24,22 @@ env.Append(LIBS=["opus"])
# env.Append(CXXDEFINES=["EMCC_FORCE_STDLIBS=1"])
# env.Append(CPPDEFINES=["EMCC_FORCE_STDLIBS=1"])
# env.Append(CXXFLAGS=['-fstack-protector'])
#env.Append(CXXFLAGS=['-fPIC'])
# env.Append(CXXFLAGS=['-fPIC'])

# tweak this if you want to use different folders, or more folders, to store your source code in.
env.Append(CPPPATH=["src/"])
sources = Glob("src/*.cpp")

if env["platform"] == "macos":
library = env.SharedLibrary(
"gdextensiontest/addons/gdopus/libgdopusencoder.{}.{}.framework/libgdopusencoder.{}.{}".format(
"gdextensiontest/bin/libgdopusencoder.{}.{}.framework/libgdopusencoder.{}.{}".format(
env["platform"], env["target"], env["platform"], env["target"]
),
source=sources,
)
else:
library = env.SharedLibrary(
"gdextensiontest/addons/gdopus/libgdopusencoder{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
"gdextensiontest/bin/libgdopusencoder{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
source=sources,
)

Expand Down

0 comments on commit fa39a3e

Please sign in to comment.