Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | |
| 7 'conditions': [ | |
| 8 # Do not build QCMS on Android or iOS. (See http://crbug.com/577155) | |
| 9 ['OS == "android" or OS == "android"', { | |
| 10 'disable_qcms%': 1, | |
| 11 }, { | |
| 12 'disable_qcms%': 0, | |
| 13 }], | |
| 14 ], | |
| 15 }, | |
| 6 'targets': [ | 16 'targets': [ |
| 7 { | 17 { |
| 8 'target_name': 'qcms', | 18 'target_name': 'qcms', |
| 9 'product_name': 'qcms', | 19 'product_name': 'qcms', |
| 10 'type': 'static_library', | 20 'type': 'static_library', |
| 11 | 21 |
| 12 # Warning (sign-conversion) fixed upstream by large refactoring. Can be | 22 # Warning (sign-conversion) fixed upstream by large refactoring. Can be |
| 13 # removed on next roll. | 23 # removed on next roll. |
| 14 'msvs_disabled_warnings': [ 4018 ], | 24 'msvs_disabled_warnings': [ 4018 ], |
| 15 | 25 |
| 16 'direct_dependent_settings': { | 26 'direct_dependent_settings': { |
| 17 'include_dirs': [ | 27 'include_dirs': [ |
| 18 './src', | 28 './src', |
| 19 ], | 29 ], |
| 20 }, | 30 }, |
| 21 | 31 |
| 22 'conditions': [ | 32 'conditions': [ |
| 23 ['OS=="android" or OS=="ios"', { | 33 ['disable_qcms == 1', { |
| 24 'sources': [ | 34 'sources': [ |
| 25 'src/empty.c', | 35 'src/empty.c', |
| 26 ], | 36 ], |
| 27 }], | 37 }], |
| 28 ['OS!="android" and OS!="ios"', { | 38 ['OS!="android" and OS!="ios"', { |
|
radu.velea
2016/01/20 11:46:36
I think maybe an else condition would work here as
| |
| 29 'sources': [ | 39 'sources': [ |
| 30 'src/chain.c', | 40 'src/chain.c', |
| 31 'src/chain.h', | 41 'src/chain.h', |
| 32 'src/iccread.c', | 42 'src/iccread.c', |
| 33 'src/matrix.c', | 43 'src/matrix.c', |
| 34 'src/matrix.h', | 44 'src/matrix.h', |
| 35 'src/qcms.h', | 45 'src/qcms.h', |
| 36 'src/qcmsint.h', | 46 'src/qcmsint.h', |
| 37 'src/qcmstypes.h', | 47 'src/qcmstypes.h', |
| 38 'src/transform.c', | 48 'src/transform.c', |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 51 ], | 61 ], |
| 52 }], | 62 }], |
| 53 ['OS == "win"', { | 63 ['OS == "win"', { |
| 54 'msvs_disabled_warnings': [ | 64 'msvs_disabled_warnings': [ |
| 55 4056, # overflow in floating-point constant arithmetic (INFINITY) | 65 4056, # overflow in floating-point constant arithmetic (INFINITY) |
| 56 4756, # overflow in constant arithmetic (INFINITY) | 66 4756, # overflow in constant arithmetic (INFINITY) |
| 57 ], | 67 ], |
| 58 }], | 68 }], |
| 59 ], | 69 ], |
| 60 }, | 70 }, |
| 61 { | 71 ], |
| 62 'target_name': 'qcms_tests', | 72 'conditions': [ |
| 63 'product_name': 'qcms_tests', | 73 ['disable_qcms == 0', { |
| 64 'type': 'executable', | 74 'targets': [ |
| 65 'conditions': [ | 75 { |
| 66 ['target_arch=="ia32" or target_arch=="x64"', { | 76 'target_name': 'qcms_tests', |
| 77 'product_name': 'qcms_tests', | |
| 78 'type': 'executable', | |
| 67 'defines': [ | 79 'defines': [ |
| 68 'SSE2_ENABLE', | 80 'SSE2_ENABLE', |
| 69 ], | 81 ], |
| 70 'sources': [ | |
| 71 'src/tests/qcms_test_tetra_clut_rgba.c', | |
| 72 'src/tests/qcms_test_main.c', | |
| 73 'src/tests/qcms_test_munsell.c', | |
| 74 ], | |
| 75 'dependencies': [ | 82 'dependencies': [ |
| 76 'qcms', | 83 'qcms', |
| 77 ], | 84 ], |
| 78 'conditions': [ | 85 'conditions': [ |
| 79 ['OS != "win"', { | 86 ['OS != "win"', { |
| 80 'libraries': [ | 87 'libraries': [ |
| 81 '-lm', | 88 '-lm', |
| 82 ], | 89 ], |
| 83 }], | 90 }], |
| 91 ['target_arch=="ia32" or target_arch=="x64"', { | |
| 92 'sources': [ | |
| 93 'src/tests/qcms_test_tetra_clut_rgba.c', | |
| 94 'src/tests/qcms_test_main.c', | |
| 95 'src/tests/qcms_test_munsell.c', | |
| 96 ], | |
| 97 }], | |
| 84 ], | 98 ], |
| 85 }], | 99 }, |
| 86 ], | 100 ], |
| 87 }, | 101 }], |
| 88 ], | 102 ], |
| 89 } | 103 } |
| 90 | 104 |
| 91 # Local Variables: | 105 # Local Variables: |
| 92 # tab-width:2 | 106 # tab-width:2 |
| 93 # indent-tabs-mode:nil | 107 # indent-tabs-mode:nil |
| 94 # End: | 108 # End: |
| 95 # vim: set expandtab tabstop=2 shiftwidth=2: | 109 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |