Skip to content

Commit

Permalink
more hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Faless committed Aug 31, 2024
1 parent 2b25e3d commit 7268ef1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/mbedtls/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ env_mbed_tls = env_modules.Clone()
thirdparty_obj = []

if env["builtin_mbedtls"]:
if env.msvc:
# TODO this should be enabled in platform/windows/detect.py (configure_msvc)
env['ARCOM'] = "${TEMPFILE('$AR $ARFLAGS /OUT:$TARGET $SOURCES','$ARCOMSTR')}"
env_mbed_tls = env_modules.Clone()

thirdparty_sources = [
"aes.c",
"aesce.c",
Expand Down Expand Up @@ -125,9 +130,6 @@ if env["builtin_mbedtls"]:
env_mbed_tls.Append(CPPDEFINES=[("MBEDTLS_CONFIG_FILE", config_path)])

env_thirdparty = env_mbed_tls.Clone()
if env.msvc:
# TODO this should be enabled project wise maybe?
env_thirdparty['ARCOM'] = "${TEMPFILE('$AR $ARFLAGS /OUT:$TARGET $SOURCES','$ARCOMSTR')}"
env_thirdparty.disable_warnings()
env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
env_thirdparty.Depends(thirdparty_obj, "#thirdparty/mbedtls/include/godot_module_mbedtls_config.h")
Expand Down

0 comments on commit 7268ef1

Please sign in to comment.