Debian Codegraph @

modules/xatlas_unwrap/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_xatlas_unwrap = env_modules.Clone()
8
9 # Thirdparty source files
10
11 thirdparty_obj = []
12
13 if env["builtin_xatlas"]:
14 thirdparty_dir = "#thirdparty/xatlas/"
15 thirdparty_sources = [
16 "xatlas.cpp",
17 ]
18 thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
19
20 env_xatlas_unwrap.Prepend(CPPPATH=[thirdparty_dir])
21
22 env_thirdparty = env_xatlas_unwrap.Clone()
23 env_thirdparty.disable_warnings()
24 env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
25 env.modules_sources += thirdparty_obj
26
27
28 # Godot source files
29
30 module_obj = []
31
32 env_xatlas_unwrap.add_source_files(module_obj, "*.cpp")
33 env.modules_sources += module_obj
34
35 # Needed to force rebuilding the module files when the thirdparty library is updated.
36 env.Depends(module_obj, thirdparty_obj)