1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 "/third_party/jpeg-xl/",
10 "/third_party/jpeg-xl/lib/include/",
14 "/third_party/jpeg-xl/lib/jxl/ac_strategy.cc",
15 "/third_party/jpeg-xl/lib/jxl/alpha.cc",
16 "/third_party/jpeg-xl/lib/jxl/ans_common.cc",
17 "/third_party/jpeg-xl/lib/jxl/aux_out.cc",
18 "/third_party/jpeg-xl/lib/jxl/base/cache_aligned.cc",
19 "/third_party/jpeg-xl/lib/jxl/base/data_parallel.cc",
20 "/third_party/jpeg-xl/lib/jxl/base/padded_bytes.cc",
21 "/third_party/jpeg-xl/lib/jxl/base/random.cc",
22 "/third_party/jpeg-xl/lib/jxl/blending.cc",
23 "/third_party/jpeg-xl/lib/jxl/chroma_from_luma.cc",
24 "/third_party/jpeg-xl/lib/jxl/coeff_order.cc",
25 "/third_party/jpeg-xl/lib/jxl/color_encoding_internal.cc",
26 "/third_party/jpeg-xl/lib/jxl/color_management.cc",
27 "/third_party/jpeg-xl/lib/jxl/compressed_dc.cc",
28 "/third_party/jpeg-xl/lib/jxl/convolve_separable5.cc",
29 "/third_party/jpeg-xl/lib/jxl/convolve_separable7.cc",
30 "/third_party/jpeg-xl/lib/jxl/convolve_slow.cc",
31 "/third_party/jpeg-xl/lib/jxl/convolve_symmetric3.cc",
32 "/third_party/jpeg-xl/lib/jxl/convolve_symmetric5.cc",
33 "/third_party/jpeg-xl/lib/jxl/dct_scales.cc",
34 "/third_party/jpeg-xl/lib/jxl/dec_ans.cc",
35 "/third_party/jpeg-xl/lib/jxl/dec_cache.cc",
36 "/third_party/jpeg-xl/lib/jxl/dec_context_map.cc",
37 "/third_party/jpeg-xl/lib/jxl/dec_external_image.cc",
38 "/third_party/jpeg-xl/lib/jxl/dec_frame.cc",
39 "/third_party/jpeg-xl/lib/jxl/dec_group.cc",
40 "/third_party/jpeg-xl/lib/jxl/dec_group_border.cc",
41 "/third_party/jpeg-xl/lib/jxl/dec_huffman.cc",
42 "/third_party/jpeg-xl/lib/jxl/dec_modular.cc",
43 "/third_party/jpeg-xl/lib/jxl/dec_noise.cc",
44 "/third_party/jpeg-xl/lib/jxl/dec_patch_dictionary.cc",
45 "/third_party/jpeg-xl/lib/jxl/dec_xyb.cc",
46 "/third_party/jpeg-xl/lib/jxl/decode.cc",
47 "/third_party/jpeg-xl/lib/jxl/enc_bit_writer.cc",
48 "/third_party/jpeg-xl/lib/jxl/entropy_coder.cc",
49 "/third_party/jpeg-xl/lib/jxl/epf.cc",
50 "/third_party/jpeg-xl/lib/jxl/fast_dct.cc",
51 "/third_party/jpeg-xl/lib/jxl/fields.cc",
52 "/third_party/jpeg-xl/lib/jxl/frame_header.cc",
53 "/third_party/jpeg-xl/lib/jxl/gauss_blur.cc",
54 "/third_party/jpeg-xl/lib/jxl/headers.cc",
55 "/third_party/jpeg-xl/lib/jxl/huffman_table.cc",
56 "/third_party/jpeg-xl/lib/jxl/icc_codec.cc",
57 "/third_party/jpeg-xl/lib/jxl/icc_codec_common.cc",
58 "/third_party/jpeg-xl/lib/jxl/image.cc",
59 "/third_party/jpeg-xl/lib/jxl/image_bundle.cc",
60 "/third_party/jpeg-xl/lib/jxl/image_metadata.cc",
61 "/third_party/jpeg-xl/lib/jxl/loop_filter.cc",
62 "/third_party/jpeg-xl/lib/jxl/luminance.cc",
63 "/third_party/jpeg-xl/lib/jxl/memory_manager_internal.cc",
64 "/third_party/jpeg-xl/lib/jxl/modular/encoding/dec_ma.cc",
65 "/third_party/jpeg-xl/lib/jxl/modular/encoding/encoding.cc",
66 "/third_party/jpeg-xl/lib/jxl/modular/modular_image.cc",
67 "/third_party/jpeg-xl/lib/jxl/modular/transform/rct.cc",
68 "/third_party/jpeg-xl/lib/jxl/modular/transform/squeeze.cc",
69 "/third_party/jpeg-xl/lib/jxl/modular/transform/transform.cc",
70 "/third_party/jpeg-xl/lib/jxl/opsin_params.cc",
71 "/third_party/jpeg-xl/lib/jxl/passes_state.cc",
72 "/third_party/jpeg-xl/lib/jxl/quant_weights.cc",
73 "/third_party/jpeg-xl/lib/jxl/quantizer.cc",
74 "/third_party/jpeg-xl/lib/jxl/render_pipeline/low_memory_render_pipeline.cc",
75 "/third_party/jpeg-xl/lib/jxl/render_pipeline/render_pipeline.cc",
76 "/third_party/jpeg-xl/lib/jxl/render_pipeline/simple_render_pipeline.cc",
77 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_blending.cc",
78 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_chroma_upsampling.cc",
79 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_epf.cc",
80 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_from_linear.cc",
81 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_gaborish.cc",
82 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_noise.cc",
83 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_patches.cc",
84 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_splines.cc",
85 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_spot.cc",
86 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_to_linear.cc",
87 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_tone_mapping.cc",
88 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_upsampling.cc",
89 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_write.cc",
90 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_xyb.cc",
91 "/third_party/jpeg-xl/lib/jxl/render_pipeline/stage_ycbcr.cc",
92 "/third_party/jpeg-xl/lib/jxl/splines.cc",
93 "/third_party/jpeg-xl/lib/jxl/toc.cc",
97 "/third_party/jpeg-xl/lib/threads/thread_parallel_runner.cc",
98 "/third_party/jpeg-xl/lib/threads/thread_parallel_runner_internal.cc",
102 "./include/jxl/jxl_export.h",
103 "./include/jxl/jxl_threads_export.h",
104 "./include/jxl/version.h",
105 "/third_party/jpeg-xl/lib/include/jxl/butteraugli.h",
106 "/third_party/jpeg-xl/lib/include/jxl/butteraugli_cxx.h",
107 "/third_party/jpeg-xl/lib/include/jxl/cms_interface.h",
108 "/third_party/jpeg-xl/lib/include/jxl/codestream_header.h",
109 "/third_party/jpeg-xl/lib/include/jxl/color_encoding.h",
110 "/third_party/jpeg-xl/lib/include/jxl/decode.h",
111 "/third_party/jpeg-xl/lib/include/jxl/decode_cxx.h",
112 "/third_party/jpeg-xl/lib/include/jxl/encode.h",
113 "/third_party/jpeg-xl/lib/include/jxl/encode_cxx.h",
114 "/third_party/jpeg-xl/lib/include/jxl/memory_manager.h",
115 "/third_party/jpeg-xl/lib/include/jxl/parallel_runner.h",
116 "/third_party/jpeg-xl/lib/include/jxl/thread_parallel_runner.h",
117 "/third_party/jpeg-xl/lib/include/jxl/thread_parallel_runner_cxx.h",
118 "/third_party/jpeg-xl/lib/include/jxl/types.h",
121 DEFINES["JPEGXL_ENABLE_BOXES"] = "0"
122 DEFINES["JPEGXL_ENABLE_TRANSCODE_JPEG"] = "0"
124 FINAL_LIBRARY = "gkmedias"
126 # We allow warnings for third-party code that can be updated from upstream.
127 AllowCompilerWarnings()
129 # Clang 5.0 has a compiler bug that prevents build in c++17
130 # See https://gitlab.com/wg1/jpeg-xl/-/issues/227
131 # This should be okay since we are using the C API.
132 if CONFIG["CC_TYPE"] == "clang":
133 CXXFLAGS += ["-std=c++11"]