diff options
author | smix8 <52464204+smix8@users.noreply.github.com> | 2023-08-17 18:32:30 +0200 |
---|---|---|
committer | smix8 <52464204+smix8@users.noreply.github.com> | 2023-09-25 19:48:14 +0200 |
commit | 0ee7e3102b6072d2f5a9d157c8afdb99e13624e6 (patch) | |
tree | 80e45613d1cdc8a850d6ceb1f9bce7f63d0db94e /core | |
parent | 82f6e9be5ea06bfef1adb315f15a409939b4a100 (diff) | |
download | redot-engine-0ee7e3102b6072d2f5a9d157c8afdb99e13624e6.tar.gz |
Add 2D navigation mesh baking
Adds 2D navigation mesh baking.
Diffstat (limited to 'core')
-rw-r--r-- | core/SCsub | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/core/SCsub b/core/SCsub index ab78eeedc7..3b1a7ca79a 100644 --- a/core/SCsub +++ b/core/SCsub @@ -89,6 +89,24 @@ if env["brotli"] and env["builtin_brotli"]: env_thirdparty.add_source_files(thirdparty_obj, thirdparty_brotli_sources) +# Clipper2 Thirdparty source files used for polygon and polyline boolean operations. +if env["builtin_clipper2"]: + thirdparty_clipper_dir = "#thirdparty/clipper2/" + thirdparty_clipper_sources = [ + "src/clipper.engine.cpp", + "src/clipper.offset.cpp", + "src/clipper.rectclip.cpp", + ] + thirdparty_clipper_sources = [thirdparty_clipper_dir + file for file in thirdparty_clipper_sources] + + env_thirdparty.Prepend(CPPPATH=[thirdparty_clipper_dir + "include"]) + env.Prepend(CPPPATH=[thirdparty_clipper_dir + "include"]) + + env_thirdparty.Append(CPPDEFINES=["CLIPPER2_ENABLED"]) + env.Append(CPPDEFINES=["CLIPPER2_ENABLED"]) + + env_thirdparty.add_source_files(thirdparty_obj, thirdparty_clipper_sources) + # Zlib library, can be unbundled if env["builtin_zlib"]: thirdparty_zlib_dir = "#thirdparty/zlib/" |