Debian Codegraph @

modules/fbx/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_fbx = env_modules.Clone()
8
9 # Thirdparty source files
10
11 thirdparty_obj = []
12
13 thirdparty_dir = "#thirdparty/ufbx/"
14 thirdparty_sources = [thirdparty_dir + "ufbx.c"]
15
16 env_fbx.Prepend(CPPPATH=[thirdparty_dir])
17
18 env_thirdparty = env_fbx.Clone()
19 env_thirdparty.disable_warnings()
20
21 env_thirdparty.Append(
22 CPPDEFINES=[
23 "UFBX_NO_SUBDIVISION",
24 "UFBX_NO_TESSELLATION",
25 "UFBX_NO_GEOMETRY_CACHE",
26 "UFBX_NO_SCENE_EVALUATION",
27 "UFBX_NO_INDEX_GENERATION",
28 "UFBX_NO_SKINNING_EVALUATION",
29 "UFBX_NO_FORMAT_OBJ",
30 ]
31 )
32
33 env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
34 env.modules_sources += thirdparty_obj
35
36 # Godot source files
37
38 module_obj = []
39
40 env_fbx.add_source_files(module_obj, "*.cpp")
41 env_fbx.add_source_files(module_obj, "structures/*.cpp")
42
43 SConscript("extensions/SCsub")
44
45 if env.editor_build:
46 env_fbx.add_source_files(module_obj, "editor/*.cpp")
47
48 env.modules_sources += module_obj
49
50 # Needed to force rebuilding the module files when the thirdparty library is updated.
51 env.Depends(module_obj, thirdparty_obj)