Bug 1733586 [wpt PR 31044] - Update wpt metadata, a=testonly
[gecko.git] / media / libjxl / moz.build
blobb4361eab7dfab0b2f5ed73538df3605b24c7161b
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/.
7 LOCAL_INCLUDES += [
8     "./include/",
9     "/third_party/jpeg-xl/",
10     "/third_party/jpeg-xl/lib/include/",
13 SOURCES += [
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/descriptive_statistics.cc",
21     "/third_party/jpeg-xl/lib/jxl/base/padded_bytes.cc",
22     "/third_party/jpeg-xl/lib/jxl/base/status.cc",
23     "/third_party/jpeg-xl/lib/jxl/blending.cc",
24     "/third_party/jpeg-xl/lib/jxl/chroma_from_luma.cc",
25     "/third_party/jpeg-xl/lib/jxl/coeff_order.cc",
26     "/third_party/jpeg-xl/lib/jxl/color_encoding_internal.cc",
27     "/third_party/jpeg-xl/lib/jxl/color_management.cc",
28     "/third_party/jpeg-xl/lib/jxl/compressed_dc.cc",
29     "/third_party/jpeg-xl/lib/jxl/convolve.cc",
30     "/third_party/jpeg-xl/lib/jxl/dct_scales.cc",
31     "/third_party/jpeg-xl/lib/jxl/dec_ans.cc",
32     "/third_party/jpeg-xl/lib/jxl/dec_cache.cc",
33     "/third_party/jpeg-xl/lib/jxl/dec_context_map.cc",
34     "/third_party/jpeg-xl/lib/jxl/dec_external_image.cc",
35     "/third_party/jpeg-xl/lib/jxl/dec_frame.cc",
36     "/third_party/jpeg-xl/lib/jxl/dec_group.cc",
37     "/third_party/jpeg-xl/lib/jxl/dec_group_border.cc",
38     "/third_party/jpeg-xl/lib/jxl/dec_huffman.cc",
39     "/third_party/jpeg-xl/lib/jxl/dec_modular.cc",
40     "/third_party/jpeg-xl/lib/jxl/dec_noise.cc",
41     "/third_party/jpeg-xl/lib/jxl/dec_patch_dictionary.cc",
42     "/third_party/jpeg-xl/lib/jxl/dec_reconstruct.cc",
43     "/third_party/jpeg-xl/lib/jxl/dec_upsample.cc",
44     "/third_party/jpeg-xl/lib/jxl/dec_xyb.cc",
45     "/third_party/jpeg-xl/lib/jxl/decode.cc",
46     "/third_party/jpeg-xl/lib/jxl/decode_to_jpeg.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/fields.cc",
51     "/third_party/jpeg-xl/lib/jxl/filters.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/jpeg/dec_jpeg_data.cc",
62     "/third_party/jpeg-xl/lib/jxl/jpeg/dec_jpeg_data_writer.cc",
63     "/third_party/jpeg-xl/lib/jxl/jpeg/jpeg_data.cc",
64     "/third_party/jpeg-xl/lib/jxl/loop_filter.cc",
65     "/third_party/jpeg-xl/lib/jxl/luminance.cc",
66     "/third_party/jpeg-xl/lib/jxl/memory_manager_internal.cc",
67     "/third_party/jpeg-xl/lib/jxl/modular/encoding/dec_ma.cc",
68     "/third_party/jpeg-xl/lib/jxl/modular/encoding/encoding.cc",
69     "/third_party/jpeg-xl/lib/jxl/modular/modular_image.cc",
70     "/third_party/jpeg-xl/lib/jxl/modular/transform/rct.cc",
71     "/third_party/jpeg-xl/lib/jxl/modular/transform/squeeze.cc",
72     "/third_party/jpeg-xl/lib/jxl/modular/transform/transform.cc",
73     "/third_party/jpeg-xl/lib/jxl/opsin_params.cc",
74     "/third_party/jpeg-xl/lib/jxl/passes_state.cc",
75     "/third_party/jpeg-xl/lib/jxl/quant_weights.cc",
76     "/third_party/jpeg-xl/lib/jxl/quantizer.cc",
77     "/third_party/jpeg-xl/lib/jxl/splines.cc",
78     "/third_party/jpeg-xl/lib/jxl/toc.cc",
81 SOURCES += [
82     "/third_party/jpeg-xl/lib/threads/thread_parallel_runner.cc",
83     "/third_party/jpeg-xl/lib/threads/thread_parallel_runner_internal.cc",
86 DEFINES["JPEGXL_MAJOR_VERSION"] = "0"
87 DEFINES["JPEGXL_MINOR_VERSION"] = "0"
88 DEFINES["JPEGXL_PATCH_VERSION"] = "0"
90 EXPORTS.jxl += [
91     "./include/jxl/jxl_export.h",
92     "./include/jxl/jxl_threads_export.h",
93     "/third_party/jpeg-xl/lib/include/jxl/butteraugli.h",
94     "/third_party/jpeg-xl/lib/include/jxl/butteraugli_cxx.h",
95     "/third_party/jpeg-xl/lib/include/jxl/codestream_header.h",
96     "/third_party/jpeg-xl/lib/include/jxl/color_encoding.h",
97     "/third_party/jpeg-xl/lib/include/jxl/decode.h",
98     "/third_party/jpeg-xl/lib/include/jxl/decode_cxx.h",
99     "/third_party/jpeg-xl/lib/include/jxl/encode.h",
100     "/third_party/jpeg-xl/lib/include/jxl/encode_cxx.h",
101     "/third_party/jpeg-xl/lib/include/jxl/memory_manager.h",
102     "/third_party/jpeg-xl/lib/include/jxl/parallel_runner.h",
103     "/third_party/jpeg-xl/lib/include/jxl/thread_parallel_runner.h",
104     "/third_party/jpeg-xl/lib/include/jxl/thread_parallel_runner_cxx.h",
105     "/third_party/jpeg-xl/lib/include/jxl/types.h",
108 FINAL_LIBRARY = "gkmedias"
110 # We allow warnings for third-party code that can be updated from upstream.
111 AllowCompilerWarnings()
113 # Clang 5.0 has a compiler bug that prevents build in c++17
114 # See https://gitlab.com/wg1/jpeg-xl/-/issues/227
115 # This should be okay since we are using the C API.
116 if CONFIG["CC_TYPE"] == "clang":
117     CXXFLAGS += ["-std=c++11"]