Debian Codegraph @

modules/meshoptimizer/SCsub

raw symbols SCIP
1 #!/usr/bin/env python
2 from misc.utility.scons_hints import *
3
4 Import("env")
5 Import("env_modules")
6
7 env_meshoptimizer = env_modules.Clone()
8
9 # Thirdparty source files
10
11 thirdparty_obj = []
12
13 thirdparty_dir = "#thirdparty/meshoptimizer/"
14 thirdparty_sources = [
15 "allocator.cpp",
16 "clusterizer.cpp",
17 "indexanalyzer.cpp",
18 "indexcodec.cpp",
19 "indexgenerator.cpp",
20 "overdrawoptimizer.cpp",
21 "partition.cpp",
22 "quantization.cpp",
23 "rasterizer.cpp",
24 "simplifier.cpp",
25 "spatialorder.cpp",
26 "stripifier.cpp",
27 "vcacheoptimizer.cpp",
28 "vertexcodec.cpp",
29 "vertexfilter.cpp",
30 "vfetchoptimizer.cpp",
31 ]
32 thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
33
34 env_thirdparty = env_meshoptimizer.Clone()
35 env_thirdparty.disable_warnings()
36 env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
37 env.modules_sources += thirdparty_obj
38
39 # Godot source files
40
41 module_obj = []
42
43 env_meshoptimizer.add_source_files(module_obj, "*.cpp")
44 env.modules_sources += module_obj
45
46 # Needed to force rebuilding the module files when the thirdparty library is updated.
47 env.Depends(module_obj, thirdparty_obj)