mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +08:00
fda444bb01
Uses MeshGL64 for more floating point precision. Co-Authored-By: 31 <31eee384@gmail.com> Co-Authored-By: Claudio Z <120678869+cloudofoz@users.noreply.github.com>
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
#!/usr/bin/env python
|
|
from misc.utility.scons_hints import *
|
|
|
|
Import("env")
|
|
Import("env_modules")
|
|
|
|
env_csg = env_modules.Clone()
|
|
|
|
env_csg.Append(CPPDEFINES=("MANIFOLD_PAR", "-1"))
|
|
|
|
# Thirdparty source files
|
|
|
|
thirdparty_obj = []
|
|
|
|
thirdparty_dir = "#thirdparty/manifold/"
|
|
thirdparty_sources = [
|
|
"src/boolean_result.cpp",
|
|
"src/boolean3.cpp",
|
|
"src/constructors.cpp",
|
|
"src/csg_tree.cpp",
|
|
"src/edge_op.cpp",
|
|
"src/face_op.cpp",
|
|
"src/impl.cpp",
|
|
"src/manifold.cpp",
|
|
"src/polygon.cpp",
|
|
"src/properties.cpp",
|
|
"src/quickhull.cpp",
|
|
"src/smoothing.cpp",
|
|
"src/sort.cpp",
|
|
"src/subdivision.cpp",
|
|
]
|
|
|
|
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
|
env_csg.Prepend(
|
|
CPPPATH=[
|
|
thirdparty_dir + "include",
|
|
]
|
|
)
|
|
env_thirdparty = env_csg.Clone()
|
|
env_thirdparty.disable_warnings()
|
|
env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
|
|
env.modules_sources += thirdparty_obj
|
|
|
|
# Godot's own source files
|
|
env_csg.add_source_files(env.modules_sources, "*.cpp")
|
|
if env.editor_build:
|
|
env_csg.add_source_files(env.modules_sources, "editor/*.cpp")
|