Skip to content

Commit

Permalink
cleanup v dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ppiecuch committed Sep 19, 2023
1 parent a6dc599 commit 9256269
Show file tree
Hide file tree
Showing 83 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/gdextensions/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,9 @@ thirdparty_sources = [
"thirdparty/misc/miniz_zip.c",
]

print(create_v_template("vnativemodule", "v_simple_class.v"))

if env["tools"]:
if is_enabled("editor"):
thirdparty_sources += [
"thirdparty/mypaint/libmypaint.c",
"thirdparty/mypaint/json-c/libjson-c.c",
"thirdparty/gc-8.2.2/extra/gc.c",
]
thirdparty_sources += ["thirdparty/mypaint/libmypaint.c", "thirdparty/mypaint/json-c/libjson-c.c"]
env_module.Append(CPPPATH=["thirdparty/gc-8.2.2/include"])
modules += ["editor"]
if is_enabled("qrcodetexture"):
Expand Down Expand Up @@ -732,12 +726,18 @@ if is_enabled("tileengine"):
env_module.Append(CPPPATH=["#thirdparty/libpng/"])

active_modules = []
v_enabled = False
for m in modules:
if is_enabled(m):
files = Glob("submodules/%s/*.cpp" % m) + Glob("submodules/%s/*.c" % m)
sources += [f for f in files if str(f) not in ignore]
active_modules.append(m)

# print(create_v_template("vnativemodule", "v_simple_class.v"))
if v_enabled:
thirdparty_sources += ["thirdparty/vnative/gc-8.2.2/extra/gc.c"]
env_module.Append(CPPPATH=["thirdparty/vnative/", "thirdparty/vnative/gc-8.2.2"])

if env.msvc:
incbin_code = finalize_for_incbin(sources)
if incbin_code:
Expand Down

0 comments on commit 9256269

Please sign in to comment.