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

Unified Diff: third_party/qcms/qcms.gyp

Issue 2014023003: Add exact version of qcms used by Chrome for testing and comparison (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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
« no previous file with comments | « third_party/qcms/README.chromium ('k') | third_party/qcms/src/COPYING » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/qcms/qcms.gyp
diff --git a/third_party/qcms/qcms.gyp b/third_party/qcms/qcms.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..fd78e5e8d86a0c25e9d25f7e49b18995559cc428
--- /dev/null
+++ b/third_party/qcms/qcms.gyp
@@ -0,0 +1,113 @@
+# Copyright (c) 2012 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.
+
+{
+ 'variables': {
+ 'conditions': [
+ # Do not build QCMS on Android or iOS. (See http://crbug.com/577155)
+ ['OS == "android" or OS == "ios"', {
+ 'disable_qcms%': 1,
+ }, {
+ 'disable_qcms%': 0,
+ }],
+ ],
+ },
+ 'targets': [
+ {
+ 'target_name': 'qcms',
+ 'product_name': 'qcms',
+ 'type': 'static_library',
+
+ # Warning (sign-conversion) fixed upstream by large refactoring. Can be
+ # removed on next roll.
+ 'msvs_disabled_warnings': [ 4018 ],
+
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ './src',
+ ],
+ },
+
+ 'conditions': [
+ ['disable_qcms == 1', {
+ 'sources': [
+ 'src/empty.c',
+ ],
+ }, { # disable_qcms == 0
+ '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/qcms_util.c',
+ 'src/transform.c',
+ 'src/transform_util.c',
+ 'src/transform_util.h',
+ ],
+ 'conditions': [
+ ['target_arch=="ia32" or target_arch=="x64"', {
+ 'defines': [
+ 'SSE2_ENABLE',
+ ],
+ 'sources': [
+ 'src/transform-sse2.c',
+ ],
+ }],
+ ],
+ }],
+ ['OS == "win"', {
+ 'msvs_disabled_warnings': [
+ 4056, # overflow in floating-point constant arithmetic (INFINITY)
+ 4756, # overflow in constant arithmetic (INFINITY)
+ ],
+ }],
+ ],
+ },
+ ],
+ 'conditions': [
+ ['disable_qcms == 0', {
+ 'targets': [
+ {
+ 'target_name': 'qcms_tests',
+ 'product_name': 'qcms_tests',
+ 'type': 'executable',
+ 'dependencies': [
+ 'qcms',
+ ],
+ 'conditions': [
+ ['OS != "win"', {
+ 'libraries': [
+ '-lm',
+ ],
+ }],
+ ['target_arch=="ia32" or target_arch=="x64"', {
+ 'defines': [
+ 'SSE2_ENABLE',
+ ],
+ }],
+ ],
+ 'sources': [
+ 'src/tests/qcms_test_main.c',
+ 'src/tests/qcms_test_internal_srgb.c',
+ 'src/tests/qcms_test_munsell.c',
+ 'src/tests/qcms_test_ntsc_gamut.c',
+ 'src/tests/qcms_test_output_trc.c',
+ 'src/tests/qcms_test_tetra_clut_rgba.c',
+ 'src/tests/qcms_test_util.c',
+ ],
+ },
+ ],
+ }],
+ ],
+}
+
+# Local Variables:
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2:
« no previous file with comments | « third_party/qcms/README.chromium ('k') | third_party/qcms/src/COPYING » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698