• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("../third_party.gni")
6
7third_party("libjxl") {
8  deps = [
9    "//third_party/brotli",
10    "//third_party/highway",
11  ]
12
13  public_include_dirs = [
14    ".",
15    "../externals/libjxl/lib/include",
16  ]
17
18  include_dirs = [ "../externals/libjxl" ]
19
20  defines = [
21    # Does not really matter.
22    "JPEGXL_MAJOR_VERSION=1",
23    "JPEGXL_MINOR_VERSION=0",
24    "JPEGXL_PATCH_VERSION=0",
25
26    "JPEGXL_ENABLE_SKCMS=1",
27    "JPEGXL_ENABLE_TRANSCODE_JPEG=0",
28  ]
29
30  if (is_official_build) {
31    defines += [ "JXL_DEBUG_ON_ABORT=0" ]
32  }
33
34  sources = [
35    "../externals/libjxl/lib/jxl/ac_strategy.cc",
36    "../externals/libjxl/lib/jxl/alpha.cc",
37    "../externals/libjxl/lib/jxl/ans_common.cc",
38    "../externals/libjxl/lib/jxl/aux_out.cc",
39    "../externals/libjxl/lib/jxl/base/cache_aligned.cc",
40    "../externals/libjxl/lib/jxl/base/data_parallel.cc",
41    "../externals/libjxl/lib/jxl/base/descriptive_statistics.cc",
42    "../externals/libjxl/lib/jxl/base/padded_bytes.cc",
43    "../externals/libjxl/lib/jxl/base/status.cc",
44    "../externals/libjxl/lib/jxl/blending.cc",
45    "../externals/libjxl/lib/jxl/chroma_from_luma.cc",
46    "../externals/libjxl/lib/jxl/coeff_order.cc",
47    "../externals/libjxl/lib/jxl/color_encoding_internal.cc",
48    "../externals/libjxl/lib/jxl/color_management.cc",
49    "../externals/libjxl/lib/jxl/compressed_dc.cc",
50    "../externals/libjxl/lib/jxl/convolve.cc",
51    "../externals/libjxl/lib/jxl/dct_scales.cc",
52    "../externals/libjxl/lib/jxl/dec_ans.cc",
53    "../externals/libjxl/lib/jxl/dec_cache.cc",
54    "../externals/libjxl/lib/jxl/dec_context_map.cc",
55    "../externals/libjxl/lib/jxl/dec_external_image.cc",
56    "../externals/libjxl/lib/jxl/dec_frame.cc",
57    "../externals/libjxl/lib/jxl/dec_group.cc",
58    "../externals/libjxl/lib/jxl/dec_group_border.cc",
59    "../externals/libjxl/lib/jxl/dec_huffman.cc",
60    "../externals/libjxl/lib/jxl/dec_modular.cc",
61    "../externals/libjxl/lib/jxl/dec_noise.cc",
62    "../externals/libjxl/lib/jxl/dec_patch_dictionary.cc",
63    "../externals/libjxl/lib/jxl/dec_reconstruct.cc",
64    "../externals/libjxl/lib/jxl/dec_upsample.cc",
65    "../externals/libjxl/lib/jxl/dec_xyb.cc",
66    "../externals/libjxl/lib/jxl/decode.cc",
67    "../externals/libjxl/lib/jxl/decode_to_jpeg.cc",
68    "../externals/libjxl/lib/jxl/enc_bit_writer.cc",
69    "../externals/libjxl/lib/jxl/entropy_coder.cc",
70    "../externals/libjxl/lib/jxl/epf.cc",
71    "../externals/libjxl/lib/jxl/fields.cc",
72    "../externals/libjxl/lib/jxl/filters.cc",
73    "../externals/libjxl/lib/jxl/frame_header.cc",
74    "../externals/libjxl/lib/jxl/gauss_blur.cc",
75    "../externals/libjxl/lib/jxl/headers.cc",
76    "../externals/libjxl/lib/jxl/huffman_table.cc",
77    "../externals/libjxl/lib/jxl/icc_codec.cc",
78    "../externals/libjxl/lib/jxl/icc_codec_common.cc",
79    "../externals/libjxl/lib/jxl/image.cc",
80    "../externals/libjxl/lib/jxl/image_bundle.cc",
81    "../externals/libjxl/lib/jxl/image_metadata.cc",
82    "../externals/libjxl/lib/jxl/jpeg/dec_jpeg_data.cc",
83    "../externals/libjxl/lib/jxl/jpeg/dec_jpeg_data_writer.cc",
84    "../externals/libjxl/lib/jxl/jpeg/jpeg_data.cc",
85    "../externals/libjxl/lib/jxl/loop_filter.cc",
86    "../externals/libjxl/lib/jxl/luminance.cc",
87    "../externals/libjxl/lib/jxl/memory_manager_internal.cc",
88    "../externals/libjxl/lib/jxl/modular/encoding/dec_ma.cc",
89    "../externals/libjxl/lib/jxl/modular/encoding/encoding.cc",
90    "../externals/libjxl/lib/jxl/modular/modular_image.cc",
91    "../externals/libjxl/lib/jxl/modular/transform/squeeze.cc",
92    "../externals/libjxl/lib/jxl/modular/transform/transform.cc",
93    "../externals/libjxl/lib/jxl/opsin_params.cc",
94    "../externals/libjxl/lib/jxl/passes_state.cc",
95    "../externals/libjxl/lib/jxl/quant_weights.cc",
96    "../externals/libjxl/lib/jxl/quantizer.cc",
97    "../externals/libjxl/lib/jxl/splines.cc",
98    "../externals/libjxl/lib/jxl/toc.cc",
99  ]
100}
101