| 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 == "ios"', { |
| 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 }, { # disable_qcms == 0 |
| 28 ['OS!="android" and OS!="ios"', { | |
| 29 'sources': [ | 38 'sources': [ |
| 30 'src/chain.c', | 39 'src/chain.c', |
| 31 'src/chain.h', | 40 'src/chain.h', |
| 32 'src/iccread.c', | 41 'src/iccread.c', |
| 33 'src/matrix.c', | 42 'src/matrix.c', |
| 34 'src/matrix.h', | 43 'src/matrix.h', |
| 35 'src/qcms.h', | 44 'src/qcms.h', |
| 36 'src/qcmsint.h', | 45 'src/qcmsint.h', |
| 37 'src/qcmstypes.h', | 46 'src/qcmstypes.h', |
| 38 'src/transform.c', | 47 'src/transform.c', |
| (...skipping 12 matching lines...) Expand all Loading... |
| 51 ], | 60 ], |
| 52 }], | 61 }], |
| 53 ['OS == "win"', { | 62 ['OS == "win"', { |
| 54 'msvs_disabled_warnings': [ | 63 'msvs_disabled_warnings': [ |
| 55 4056, # overflow in floating-point constant arithmetic (INFINITY) | 64 4056, # overflow in floating-point constant arithmetic (INFINITY) |
| 56 4756, # overflow in constant arithmetic (INFINITY) | 65 4756, # overflow in constant arithmetic (INFINITY) |
| 57 ], | 66 ], |
| 58 }], | 67 }], |
| 59 ], | 68 ], |
| 60 }, | 69 }, |
| 61 { | 70 ], |
| 62 'target_name': 'qcms_tests', | 71 'conditions': [ |
| 63 'product_name': 'qcms_tests', | 72 ['disable_qcms == 0', { |
| 64 'type': 'executable', | 73 'targets': [ |
| 65 'conditions': [ | 74 { |
| 66 ['target_arch=="ia32" or target_arch=="x64"', { | 75 'target_name': 'qcms_tests', |
| 76 'product_name': 'qcms_tests', |
| 77 'type': 'executable', |
| 67 'defines': [ | 78 'defines': [ |
| 68 'SSE2_ENABLE', | 79 'SSE2_ENABLE', |
| 69 ], | 80 ], |
| 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': [ | 81 'dependencies': [ |
| 76 'qcms', | 82 'qcms', |
| 77 ], | 83 ], |
| 78 'conditions': [ | 84 'conditions': [ |
| 79 ['OS != "win"', { | 85 ['OS != "win"', { |
| 80 'libraries': [ | 86 'libraries': [ |
| 81 '-lm', | 87 '-lm', |
| 82 ], | 88 ], |
| 83 }], | 89 }], |
| 90 ['target_arch=="ia32" or target_arch=="x64"', { |
| 91 'sources': [ |
| 92 'src/tests/qcms_test_tetra_clut_rgba.c', |
| 93 'src/tests/qcms_test_main.c', |
| 94 'src/tests/qcms_test_munsell.c', |
| 95 ], |
| 96 }], |
| 84 ], | 97 ], |
| 85 }], | 98 }, |
| 86 ], | 99 ], |
| 87 }, | 100 }], |
| 88 ], | 101 ], |
| 89 } | 102 } |
| 90 | 103 |
| 91 # Local Variables: | 104 # Local Variables: |
| 92 # tab-width:2 | 105 # tab-width:2 |
| 93 # indent-tabs-mode:nil | 106 # indent-tabs-mode:nil |
| 94 # End: | 107 # End: |
| 95 # vim: set expandtab tabstop=2 shiftwidth=2: | 108 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |