skia2/third_party/skcms/BUILD.gn
Mike Klein fb33355c36 add basic skia -> skcms dependency
This rolls skcms into skia and builds it in dev configurations.
We don't use it in any way yet, but if nothing else this gives
us roundabout Windows skcms build bots.

Bug: skia:7493

Change-Id: Idd945ccd5c7a543841d76ab600cc117f2ee074dc
Reviewed-on: https://skia-review.googlesource.com/99880
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2018-01-26 02:07:37 +00:00

30 lines
600 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 = [ "../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",
]
}