Skip to content

Commit

Permalink
fix to allow windows build as a DLL
Browse files Browse the repository at this point in the history
I have no idea if this is sufficient to make a DLL that actually works, but it does at least build
  • Loading branch information
samdeane committed Jan 29, 2025
1 parent d761e6b commit 3c26b31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/windows/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ sources += res_obj

if env["library_type"] == "static_library":
prog = env.add_library("#bin/godot", common_win + res_obj, PROGSUFFIX=env["PROGSUFFIX"])
sources += common_win_wrap
elif env["library_type"] == "shared_library":
prog = env.add_shared_library("#bin/godot", common_win + res_obj, PROGSUFFIX=env["PROGSUFFIX"])
sources += common_win_wrap
else:
prog = env.add_program("#bin/godot", common_win + res_obj, PROGSUFFIX=env["PROGSUFFIX"])

Expand All @@ -81,7 +83,7 @@ else:
arrange_program_clean(prog_wrap)
env_wrap.Depends(prog_wrap, prog)

sources += common_win_wrap + res_wrap_obj
sources += common_win_wrap + res_wrap_obj

# Microsoft Visual Studio Project Generation
if env["vsproj"]:
Expand Down

0 comments on commit 3c26b31

Please sign in to comment.