skia2/third_party/skcms/BUILD.gn
Mike Klein ded7a5586a hard-roll skcms into Skia
Adding roll.sh to make it easy.

Change-Id: I7887c5f9a41c5b68a5dec89ebc8ac86a1707fef6
Reviewed-on: https://skia-review.googlesource.com/120120
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2018-04-10 15:03:31 +00:00

30 lines
564 B
Plaintext

# 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",
]
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 = [
"skcms.c",
]
}