Skip to content

Commit

Permalink
Remove leftover Scons definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawmario committed Nov 23, 2024
1 parent aca718f commit f47ea83
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions extension/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ env = SConscript("godot-cpp/SConstruct")
# 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"))
sources += (Glob("src/audio/*.cpp"))

# for audio support on Windows
if env["platform"] == "windows":
env.Append(LIBS=["ole32"])

# libsm64 settings (run make on the libsm64 folder before attempting compilation)
env.Append(CPPPATH=["./"])
Expand All @@ -53,7 +48,8 @@ env.Append(LIBPATH=["libsm64/dist/"])
env.Append(LIBS=["libsm64"])

# remove -static flag from LINKFLAGS if present
env["LINKFLAGS"] = [x for x in env["LINKFLAGS"] if x != "-static"]
if env["platform"] == "windows":
env["LINKFLAGS"] = [x for x in env["LINKFLAGS"] if x != "-static"]

if env["platform"] == "macos":
library = env.SharedLibrary(
Expand All @@ -68,4 +64,4 @@ else:
source=sources,
)

Default(library)
Default(library)

0 comments on commit f47ea83

Please sign in to comment.