libyuv_test.gyp 1.75 KB
Newer Older
1
# Copyright 2011 The LibYuv Project Authors. All rights reserved.
2 3 4 5 6 7 8 9 10 11
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS.  All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.

{
  'targets': [
    {
12
      'target_name': 'libyuv_unittest',
13 14
      'type': 'executable',
      'dependencies': [
15 16 17 18
        'libyuv.gyp:libyuv',
        # The tests are based on gtest
        'testing/gtest.gyp:gtest',
        'testing/gtest.gyp:gtest_main',
19
      ],
20 21 22
      'defines': [
        'LIBYUV_SVNREVISION="<!(svnversion -n)"',
      ],
23
      'sources': [
24 25
        # headers
        'unit_test/unit_test.h',
26

27 28 29 30 31 32 33 34 35 36
        # sources
        'unit_test/compare_test.cc',
        'unit_test/cpu_test.cc',
        'unit_test/planar_test.cc',
        'unit_test/rotate_argb_test.cc',
        'unit_test/rotate_test.cc',
        'unit_test/scale_argb_test.cc',
        'unit_test/scale_test.cc',
        'unit_test/unit_test.cc',
        'unit_test/version_test.cc',
37
      ],
38 39 40 41 42 43 44 45
      'conditions': [
        ['OS=="linux"', {
          'cflags': [
            '-fexceptions',
          ],
        }],
      ], # conditions
    },
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65

    {
      'target_name': 'compare',
      'type': 'executable',
      'dependencies': [
        'libyuv.gyp:libyuv',
      ],
      'sources': [
        # sources
        'util/compare.cc',
      ],
      'conditions': [
        ['OS=="linux"', {
          'cflags': [
            '-fexceptions',
          ],
        }],
      ], # conditions
    },

66 67 68 69 70 71 72 73
  ], # targets
}

# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: