diff options
| author | Hein-Pieter van Braam | 2017-12-12 17:30:43 +0100 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2017-12-12 17:30:43 +0100 |
| commit | 5387613c7b954a4eb2743599031fe39635031893 (patch) | |
| tree | 68aa9f31e37c2e58e731ff373b4e81ba1afc60ed /modules | |
| parent | 55962ce28fec5f06016ed3f66f52e6e84b817dbe (diff) | |
| download | godot-5387613c7b954a4eb2743599031fe39635031893.tar.gz godot-5387613c7b954a4eb2743599031fe39635031893.tar.zst godot-5387613c7b954a4eb2743599031fe39635031893.zip | |
Fix mingw build for thekla_atlas
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/thekla_unwrap/SCsub | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/thekla_unwrap/SCsub b/modules/thekla_unwrap/SCsub index 1d4b08684..a56fc0ad4 100644 --- a/modules/thekla_unwrap/SCsub +++ b/modules/thekla_unwrap/SCsub @@ -59,11 +59,15 @@ if env['builtin_thekla_atlas']: env_thekla_unwrap.Append(CXXFLAGS="-std=gnu++11") if env["platform"] == 'x11': - env_thekla_unwrap.Append(CCFLAGS=["-DNV_OS_LINUX"]) + env_thekla_unwrap.Append(CCFLAGS=["-DNV_OS_LINUX", "-DPOSH_COMPILER_GCC"]) elif env["platform"] == 'osx': - env_thekla_unwrap.Append(CCFLAGS=["-DNV_OS_DARWIN"]) + env_thekla_unwrap.Append(CCFLAGS=["-DNV_OS_DARWIN", "-DPOSH_COMPILER_GCC"]) elif env["platform"] == 'windows': - env_thekla_unwrap.Append(CCFLAGS=["-DNV_OS_WIN32"]) + if env.msvc: + env_thekla_unwrap.Append(CCFLAGS=["-DNV_OS_WIN32", "-DNV_CC_MSVC", "-DPOSH_COMPILER_MSVC" ]) + else: + env_thekla_unwrap.Append(CCFLAGS=["-DNV_OS_MINGW", "-DNV_CC_GNUC", "-DPOSH_COMPILER_GCC"]) + env.Append(LIBS=["dbghelp"]) # Godot source files env_thekla_unwrap.add_source_files(env.modules_sources, "*.cpp") |
