Home | History | Annotate | Download | only in qcms
      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   'targets': [
      7     {
      8       'target_name': 'qcms',
      9       'product_name': 'qcms',
     10       'type': 'static_library',
     11       'sources': [
     12         'src/chain.c',
     13         'src/chain.h',
     14         'src/iccread.c',
     15         'src/matrix.c',
     16         'src/matrix.h',
     17         'src/qcms.h',
     18         'src/qcmsint.h',
     19         'src/qcmstypes.h',
     20         'src/transform.c',
     21         'src/transform_util.c',
     22         'src/transform_util.h',
     23       ],
     24       'direct_dependent_settings': {
     25         'include_dirs': [
     26           './src',
     27         ],
     28       },
     29       # Warning (sign-conversion) fixed upstream by large refactoring. Can be
     30       # removed on next roll.
     31       'msvs_disabled_warnings': [ 4018 ],
     32 
     33       'conditions': [
     34         ['target_arch=="ia32" or target_arch=="x64"', {
     35           'defines': [
     36             'SSE2_ENABLE',
     37           ],
     38           'sources': [
     39             'src/transform-sse1.c',
     40             'src/transform-sse2.c',
     41           ],
     42         }],
     43         # QCMS assumes this target isn't compiled since MSVC x64 doesn't support
     44         # the MMX intrinsics present in the SSE1 code.
     45         ['OS=="win" and target_arch=="x64"', {
     46           'sources!': [
     47             'src/transform-sse1.c',
     48           ],
     49         }],
     50         ['OS == "win" and (MSVS_VERSION == "2013" or MSVS_VERSION == "2013e")', {
     51           'msvs_disabled_warnings': [
     52             4056,  # overflow in floating-point constant arithmetic (INFINITY)
     53             4756,  # overflow in constant arithmetic (INFINITY)
     54           ],
     55         }],
     56       ],
     57     },
     58   ],
     59 }
     60 
     61 # Local Variables:
     62 # tab-width:2
     63 # indent-tabs-mode:nil
     64 # End:
     65 # vim: set expandtab tabstop=2 shiftwidth=2:
     66