Debian Codegraph @

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