aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/skcms/BUILD.gn29
1 files changed, 29 insertions, 0 deletions
diff --git a/third_party/skcms/BUILD.gn b/third_party/skcms/BUILD.gn
new file mode 100644
index 0000000000..70e2295363
--- /dev/null
+++ b/third_party/skcms/BUILD.gn
@@ -0,0 +1,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",
+ ]
+}