Index: third_party/qcms/qcms.gyp |
diff --git a/third_party/qcms/qcms.gyp b/third_party/qcms/qcms.gyp |
index 4b54db5c3e2db22075e26776dc183760e6eeb121..23b5767cafb21d34a0907a0356e360350d5f9f6c 100644 |
--- a/third_party/qcms/qcms.gyp |
+++ b/third_party/qcms/qcms.gyp |
@@ -3,6 +3,16 @@ |
# found in the LICENSE file. |
{ |
+ 'variables': { |
+ 'conditions': [ |
+ # Do not build QCMS on Android or iOS. (See http://crbug.com/577155) |
+ ['OS == "android" or OS == "android"', { |
+ 'disable_qcms%': 1, |
+ }, { |
+ 'disable_qcms%': 0, |
+ }], |
+ ], |
+ }, |
'targets': [ |
{ |
'target_name': 'qcms', |
@@ -20,7 +30,7 @@ |
}, |
'conditions': [ |
- ['OS=="android" or OS=="ios"', { |
+ ['disable_qcms == 1', { |
'sources': [ |
'src/empty.c', |
], |
@@ -58,20 +68,17 @@ |
}], |
], |
}, |
- { |
- 'target_name': 'qcms_tests', |
- 'product_name': 'qcms_tests', |
- 'type': 'executable', |
- 'conditions': [ |
- ['target_arch=="ia32" or target_arch=="x64"', { |
+ ], |
+ 'conditions': [ |
+ ['disable_qcms == 0', { |
+ 'targets': [ |
+ { |
+ 'target_name': 'qcms_tests', |
+ 'product_name': 'qcms_tests', |
+ 'type': 'executable', |
'defines': [ |
'SSE2_ENABLE', |
], |
- 'sources': [ |
- 'src/tests/qcms_test_tetra_clut_rgba.c', |
- 'src/tests/qcms_test_main.c', |
- 'src/tests/qcms_test_munsell.c', |
- ], |
'dependencies': [ |
'qcms', |
], |
@@ -81,10 +88,17 @@ |
'-lm', |
], |
}], |
+ ['target_arch=="ia32" or target_arch=="x64"', { |
+ 'sources': [ |
+ 'src/tests/qcms_test_tetra_clut_rgba.c', |
+ 'src/tests/qcms_test_main.c', |
+ 'src/tests/qcms_test_munsell.c', |
+ ], |
+ }], |
], |
- }], |
+ }, |
], |
- }, |
+ }], |
], |
} |