media/libyuv/libyuv_test.gyp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libyuv/libyuv_test.gyp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,127 @@
     1.4 +# Copyright 2011 The LibYuv Project Authors. All rights reserved.
     1.5 +#
     1.6 +# Use of this source code is governed by a BSD-style license
     1.7 +# that can be found in the LICENSE file in the root of the source
     1.8 +# tree. An additional intellectual property rights grant can be found
     1.9 +# in the file PATENTS. All contributing project authors may
    1.10 +# be found in the AUTHORS file in the root of the source tree.
    1.11 +
    1.12 +{
    1.13 +  'targets': [
    1.14 +    {
    1.15 +      'target_name': 'libyuv_unittest',
    1.16 +      'type': 'executable',
    1.17 +      'dependencies': [
    1.18 +        'libyuv.gyp:libyuv',
    1.19 +        # The tests are based on gtest
    1.20 +        'testing/gtest.gyp:gtest',
    1.21 +        'testing/gtest.gyp:gtest_main',
    1.22 +      ],
    1.23 +      'defines': [
    1.24 +        'LIBYUV_SVNREVISION="<!(svnversion -n)"',
    1.25 +        # Enable the following 3 macros to turn off assembly for specified CPU.
    1.26 +        # 'LIBYUV_DISABLE_X86',
    1.27 +        # 'LIBYUV_DISABLE_NEON',
    1.28 +        # 'LIBYUV_DISABLE_MIPS',
    1.29 +        # Enable the following macro to build libyuv as a shared library (dll).
    1.30 +        # 'LIBYUV_USING_SHARED_LIBRARY',
    1.31 +      ],
    1.32 +      'sources': [
    1.33 +        # headers
    1.34 +        'unit_test/unit_test.h',
    1.35 +
    1.36 +        # sources
    1.37 +        'unit_test/basictypes_test.cc',
    1.38 +        'unit_test/compare_test.cc',
    1.39 +        'unit_test/convert_test.cc',
    1.40 +        'unit_test/cpu_test.cc',
    1.41 +        'unit_test/math_test.cc',
    1.42 +        'unit_test/planar_test.cc',
    1.43 +        'unit_test/rotate_argb_test.cc',
    1.44 +        'unit_test/rotate_test.cc',
    1.45 +        'unit_test/scale_argb_test.cc',
    1.46 +        'unit_test/scale_test.cc',
    1.47 +        'unit_test/unit_test.cc',
    1.48 +        'unit_test/video_common_test.cc',
    1.49 +        'unit_test/version_test.cc',
    1.50 +      ],
    1.51 +      'conditions': [
    1.52 +        ['OS=="linux"', {
    1.53 +          'cflags': [
    1.54 +            '-fexceptions',
    1.55 +          ],
    1.56 +        }],
    1.57 +        [ 'OS != "ios"', {
    1.58 +          'defines': [
    1.59 +            'HAVE_JPEG',
    1.60 +          ],
    1.61 +        }],
    1.62 +      ], # conditions
    1.63 +    },
    1.64 +
    1.65 +    {
    1.66 +      'target_name': 'compare',
    1.67 +      'type': 'executable',
    1.68 +      'dependencies': [
    1.69 +        'libyuv.gyp:libyuv',
    1.70 +      ],
    1.71 +      'sources': [
    1.72 +        # sources
    1.73 +        'util/compare.cc',
    1.74 +      ],
    1.75 +      'conditions': [
    1.76 +        ['OS=="linux"', {
    1.77 +          'cflags': [
    1.78 +            '-fexceptions',
    1.79 +          ],
    1.80 +        }],
    1.81 +      ], # conditions
    1.82 +    },
    1.83 +    {
    1.84 +      'target_name': 'convert',
    1.85 +      'type': 'executable',
    1.86 +      'dependencies': [
    1.87 +        'libyuv.gyp:libyuv',
    1.88 +      ],
    1.89 +      'sources': [
    1.90 +        # sources
    1.91 +        'util/convert.cc',
    1.92 +      ],
    1.93 +      'conditions': [
    1.94 +        ['OS=="linux"', {
    1.95 +          'cflags': [
    1.96 +            '-fexceptions',
    1.97 +          ],
    1.98 +        }],
    1.99 +      ], # conditions
   1.100 +    },
   1.101 +    # TODO(fbarchard): Enable SSE2 and OpenMP for better performance.
   1.102 +    {
   1.103 +      'target_name': 'psnr',
   1.104 +      'type': 'executable',
   1.105 +      'sources': [
   1.106 +        # sources
   1.107 +        'util/psnr_main.cc',
   1.108 +        'util/psnr.cc',
   1.109 +        'util/ssim.cc',
   1.110 +      ],
   1.111 +    },
   1.112 +    {
   1.113 +      'target_name': 'cpuid',
   1.114 +      'type': 'executable',
   1.115 +      'sources': [
   1.116 +        # sources
   1.117 +        'util/cpuid.c',
   1.118 +      ],
   1.119 +      'dependencies': [
   1.120 +        'libyuv.gyp:libyuv',
   1.121 +      ],
   1.122 +    },
   1.123 +  ], # targets
   1.124 +}
   1.125 +
   1.126 +# Local Variables:
   1.127 +# tab-width:2
   1.128 +# indent-tabs-mode:nil
   1.129 +# End:
   1.130 +# vim: set expandtab tabstop=2 shiftwidth=2:

mercurial