aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/skcms/BUILD.gn
blob: 70e2295363a562e2620672f6c97d028fbd8fe87a (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
# 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 = [ "../externals/skcms" ]
}

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

  cflags = []
  if (!is_win || is_clang) {
    cflags += [
      "-w",
      "-std=c11",
    ]
    if (!is_clang) {
      # This seems to be the default in newer GCCs, but of course we test with older GCCs.
      cflags += [ "-flax-vector-conversions" ]
    }
  }

  defines = []
  sources = [
    "../externals/skcms/skcms.c",
  ]
}