Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/qcms/BUILD.gn

Issue 276263003: Convert some third_party deps to GN (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: formatting Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/qcms/BUILD.gn
diff --git a/third_party/qcms/BUILD.gn b/third_party/qcms/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..a1581ebd2228e46906b6c84d69f2c301d61a2925
--- /dev/null
+++ b/third_party/qcms/BUILD.gn
@@ -0,0 +1,44 @@
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+config("qcms_config") {
+ include_dirs = [ "src" ]
+}
+
+source_set("qcms") {
+ sources = [
+ "src/chain.c",
+ "src/chain.h",
+ "src/iccread.c",
+ "src/matrix.c",
+ "src/matrix.h",
+ "src/qcms.h",
+ "src/qcmsint.h",
+ "src/qcmstypes.h",
+ "src/transform.c",
+ "src/transform_util.c",
+ "src/transform_util.h",
+ ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+ direct_dependent_configs = [ ":qcms_config" ]
+
+ if (cpu_arch == "x86" || cpu_arch == "x64") {
+ defines = [ "SSE2_ENABLE" ]
+ sources += [ "src/transform-sse2.c" ]
+ if (!(is_win && cpu_arch == "x64")) {
+ # QCMS assumes this target isn't compiled since MSVC x64 doesn't support
+ # the MMX intrinsics present in the SSE1 code.
+ sources += [ "src/transform-sse1.c" ]
+ }
+ }
+
+ if (is_win) {
+ cflags = [
+ "/wd4056", # Overflow in floating-point constant arithmetic (INFINITY).
+ "/wd4756", # Overflow in constant arithmetic (INFINITY).
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698