Debian Codegraph @

modules/tinyexr/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_tinyexr = env_modules.Clone()
8
9 # Thirdparty source files
10
11 thirdparty_obj = []
12
13 # Not unbundled for now as they are not commonly available as shared library
14 thirdparty_dir = "#thirdparty/tinyexr/"
15 thirdparty_sources = [
16 "tinyexr.cc",
17 ]
18 thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
19
20 env_tinyexr.Prepend(CPPPATH=[thirdparty_dir])
21
22 # Enable threaded loading with C++11.
23 env_tinyexr.Append(CPPDEFINES=["TINYEXR_USE_THREAD"])
24 # miniz is an external dependency, we could add it but we can instead rely
25 # on our existing bundled zlib.
26 env_tinyexr.Append(CPPDEFINES=[("TINYEXR_USE_MINIZ", 0)])
27
28 env_thirdparty = env_tinyexr.Clone()
29 env_thirdparty.disable_warnings()
30 env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
31 env.modules_sources += thirdparty_obj
32
33 # Godot source files
34
35 module_obj = []
36
37 env_tinyexr.add_source_files(module_obj, "*.cpp")
38 env.modules_sources += module_obj
39
40 # Needed to force rebuilding the module files when the thirdparty library is updated.
41 env.Depends(module_obj, thirdparty_obj)