aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/skcms/BUILD.gn
blob: 44439c41e6720819d2bf64da0358eb12f3ff90fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 2018 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

config("skcms_public") {
  include_dirs = [ "." ]
}

source_set("skcms") {
  public_configs = [ ":skcms_public" ]

  cflags = []
  if (!is_win || is_clang) {
    cflags += [
      "-w",
      "-std=c11",
    ]
  }

  defines = []
  public = [
    "skcms.h",
  ]
  sources = [
    "src/GaussNewton.c",
    "src/GaussNewton.h",
    "src/ICCProfile.c",
    "src/LinearAlgebra.c",
    "src/LinearAlgebra.h",
    "src/Macros.h",
    "src/PolyTF.c",
    "src/PortableMath.c",
    "src/PortableMath.h",
    "src/RandomBytes.h",
    "src/TransferFunction.c",
    "src/TransferFunction.h",
    "src/Transform.c",
    "src/Transform.h",
    "src/Transform_inl.h",
  ]
}