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       'variables': {
     34         'conditions': [
     35           # For x86, turn off SSE2 for non-CrOS *nix Chrome builds.
     36           # TODO(jschuh): Get MMX enabled on Win64. crbug.com/179657
     37           ['disable_sse2==1 or \
     38             (branding=="Chrome" and target_arch=="ia32" and \
     39              os_posix==1 and OS!="mac" and chromeos==0) or \
     40             (OS=="win" and target_arch=="x64")', {
     41             'qcms_use_sse': 0,
     42           }, {
     43             'qcms_use_sse': 1,
     44           }],
     45         ],
     46       },
     47 
     48       'conditions': [
     49         [ 'qcms_use_sse==1', {
     50           'defines': [
     51             'SSE2_ENABLE',
     52           ],
     53           'sources': [
     54             'src/transform-sse1.c',
     55             'src/transform-sse2.c',
     56           ],
     57         }],
     58       ],
     59     },
     60   ],
     61 }
     62 
     63 # Local Variables:
     64 # tab-width:2
     65 # indent-tabs-mode:nil
     66 # End:
     67 # vim: set expandtab tabstop=2 shiftwidth=2:
     68