Debian Codegraph @

modules/astcenc/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_astcenc = env_modules.Clone()
8
9 # Thirdparty source files
10
11 thirdparty_obj = []
12
13 thirdparty_dir = "#thirdparty/astcenc/"
14 thirdparty_sources = [
15 "astcenc_averages_and_directions.cpp",
16 "astcenc_block_sizes.cpp",
17 "astcenc_color_quantize.cpp",
18 "astcenc_color_unquantize.cpp",
19 "astcenc_compress_symbolic.cpp",
20 "astcenc_compute_variance.cpp",
21 "astcenc_decompress_symbolic.cpp",
22 "astcenc_diagnostic_trace.cpp",
23 "astcenc_entry.cpp",
24 "astcenc_find_best_partitioning.cpp",
25 "astcenc_ideal_endpoints_and_weights.cpp",
26 "astcenc_image.cpp",
27 "astcenc_integer_sequence.cpp",
28 "astcenc_mathlib.cpp",
29 "astcenc_mathlib_softfloat.cpp",
30 "astcenc_partition_tables.cpp",
31 "astcenc_percentile_tables.cpp",
32 "astcenc_pick_best_endpoint_format.cpp",
33 "astcenc_quantization.cpp",
34 "astcenc_symbolic_physical.cpp",
35 "astcenc_weight_align.cpp",
36 "astcenc_weight_quant_xfer_tables.cpp",
37 ]
38 thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
39
40 env_astcenc.Prepend(CPPPATH=[thirdparty_dir])
41
42 env_thirdparty = env_astcenc.Clone()
43 env_thirdparty.disable_warnings()
44
45 # Build the encoder only for editor builds
46 astc_encoder = env.editor_build
47
48 if not astc_encoder:
49 env_thirdparty.Append(CPPDEFINES=[("ASTCENC_DECOMPRESS_ONLY")])
50
51 env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
52 env.modules_sources += thirdparty_obj
53
54 # Godot source files
55
56 module_obj = []
57
58 env_astcenc.add_source_files(module_obj, "*.cpp")
59 env.modules_sources += module_obj
60
61 # Needed to force rebuilding the module files when the thirdparty library is updated.
62 env.Depends(module_obj, thirdparty_obj)