OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 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 }, |
| 16 'targets': [ |
| 17 { |
| 18 'target_name': 'qcms', |
| 19 'product_name': 'qcms', |
| 20 'type': 'static_library', |
| 21 |
| 22 # Warning (sign-conversion) fixed upstream by large refactoring. Can be |
| 23 # removed on next roll. |
| 24 'msvs_disabled_warnings': [ 4018 ], |
| 25 |
| 26 'direct_dependent_settings': { |
| 27 'include_dirs': [ |
| 28 './src', |
| 29 ], |
| 30 }, |
| 31 |
| 32 'conditions': [ |
| 33 ['disable_qcms == 1', { |
| 34 'sources': [ |
| 35 'src/empty.c', |
| 36 ], |
| 37 }, { # disable_qcms == 0 |
| 38 'sources': [ |
| 39 'src/chain.c', |
| 40 'src/chain.h', |
| 41 'src/iccread.c', |
| 42 'src/matrix.c', |
| 43 'src/matrix.h', |
| 44 'src/qcms.h', |
| 45 'src/qcmsint.h', |
| 46 'src/qcmstypes.h', |
| 47 'src/qcms_util.c', |
| 48 'src/transform.c', |
| 49 'src/transform_util.c', |
| 50 'src/transform_util.h', |
| 51 ], |
| 52 'conditions': [ |
| 53 ['target_arch=="ia32" or target_arch=="x64"', { |
| 54 'defines': [ |
| 55 'SSE2_ENABLE', |
| 56 ], |
| 57 'sources': [ |
| 58 'src/transform-sse2.c', |
| 59 ], |
| 60 }], |
| 61 ], |
| 62 }], |
| 63 ['OS == "win"', { |
| 64 'msvs_disabled_warnings': [ |
| 65 4056, # overflow in floating-point constant arithmetic (INFINITY) |
| 66 4756, # overflow in constant arithmetic (INFINITY) |
| 67 ], |
| 68 }], |
| 69 ], |
| 70 }, |
| 71 ], |
| 72 'conditions': [ |
| 73 ['disable_qcms == 0', { |
| 74 'targets': [ |
| 75 { |
| 76 'target_name': 'qcms_tests', |
| 77 'product_name': 'qcms_tests', |
| 78 'type': 'executable', |
| 79 'dependencies': [ |
| 80 'qcms', |
| 81 ], |
| 82 'conditions': [ |
| 83 ['OS != "win"', { |
| 84 'libraries': [ |
| 85 '-lm', |
| 86 ], |
| 87 }], |
| 88 ['target_arch=="ia32" or target_arch=="x64"', { |
| 89 'defines': [ |
| 90 'SSE2_ENABLE', |
| 91 ], |
| 92 }], |
| 93 ], |
| 94 'sources': [ |
| 95 'src/tests/qcms_test_main.c', |
| 96 'src/tests/qcms_test_internal_srgb.c', |
| 97 'src/tests/qcms_test_munsell.c', |
| 98 'src/tests/qcms_test_ntsc_gamut.c', |
| 99 'src/tests/qcms_test_output_trc.c', |
| 100 'src/tests/qcms_test_tetra_clut_rgba.c', |
| 101 'src/tests/qcms_test_util.c', |
| 102 ], |
| 103 }, |
| 104 ], |
| 105 }], |
| 106 ], |
| 107 } |
| 108 |
| 109 # Local Variables: |
| 110 # tab-width:2 |
| 111 # indent-tabs-mode:nil |
| 112 # End: |
| 113 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |