Clean up build scripts a bit
This commit is contained in:
@@ -2,9 +2,6 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
import project_config
|
||||
|
||||
constant_prefix = project_config.get_defines_friendly_name()
|
||||
|
||||
env = SConscript("godot-cpp/SConstruct")
|
||||
|
||||
@@ -21,12 +18,11 @@ env.Append(CPPPATH=["src/"])
|
||||
|
||||
# Context-specific define for GDExtension
|
||||
env.Append(CPPDEFINES=["GD_EXTENSION_BUILD"])
|
||||
env.Append(CPPDEFINES=[f"{constant_prefix}_GDEXTENSION"])
|
||||
sources = Glob("src/*.cpp")
|
||||
|
||||
if env["platform"] == "macos":
|
||||
library = env.SharedLibrary(
|
||||
"demo/bin/{}.{}.{}.framework/libgdexample.{}.{}".format(
|
||||
"demo/bin/{}.{}.{}.framework/{}.{}.{}".format(
|
||||
project_config.lib_name(),
|
||||
env["platform"],
|
||||
env["target"],
|
||||
|
||||
Reference in New Issue
Block a user