media/libyuv/libyuv_test.gyp

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 # Copyright 2011 The LibYuv Project Authors. All rights reserved.
michael@0 2 #
michael@0 3 # Use of this source code is governed by a BSD-style license
michael@0 4 # that can be found in the LICENSE file in the root of the source
michael@0 5 # tree. An additional intellectual property rights grant can be found
michael@0 6 # in the file PATENTS. All contributing project authors may
michael@0 7 # be found in the AUTHORS file in the root of the source tree.
michael@0 8
michael@0 9 {
michael@0 10 'targets': [
michael@0 11 {
michael@0 12 'target_name': 'libyuv_unittest',
michael@0 13 'type': 'executable',
michael@0 14 'dependencies': [
michael@0 15 'libyuv.gyp:libyuv',
michael@0 16 # The tests are based on gtest
michael@0 17 'testing/gtest.gyp:gtest',
michael@0 18 'testing/gtest.gyp:gtest_main',
michael@0 19 ],
michael@0 20 'defines': [
michael@0 21 'LIBYUV_SVNREVISION="<!(svnversion -n)"',
michael@0 22 # Enable the following 3 macros to turn off assembly for specified CPU.
michael@0 23 # 'LIBYUV_DISABLE_X86',
michael@0 24 # 'LIBYUV_DISABLE_NEON',
michael@0 25 # 'LIBYUV_DISABLE_MIPS',
michael@0 26 # Enable the following macro to build libyuv as a shared library (dll).
michael@0 27 # 'LIBYUV_USING_SHARED_LIBRARY',
michael@0 28 ],
michael@0 29 'sources': [
michael@0 30 # headers
michael@0 31 'unit_test/unit_test.h',
michael@0 32
michael@0 33 # sources
michael@0 34 'unit_test/basictypes_test.cc',
michael@0 35 'unit_test/compare_test.cc',
michael@0 36 'unit_test/convert_test.cc',
michael@0 37 'unit_test/cpu_test.cc',
michael@0 38 'unit_test/math_test.cc',
michael@0 39 'unit_test/planar_test.cc',
michael@0 40 'unit_test/rotate_argb_test.cc',
michael@0 41 'unit_test/rotate_test.cc',
michael@0 42 'unit_test/scale_argb_test.cc',
michael@0 43 'unit_test/scale_test.cc',
michael@0 44 'unit_test/unit_test.cc',
michael@0 45 'unit_test/video_common_test.cc',
michael@0 46 'unit_test/version_test.cc',
michael@0 47 ],
michael@0 48 'conditions': [
michael@0 49 ['OS=="linux"', {
michael@0 50 'cflags': [
michael@0 51 '-fexceptions',
michael@0 52 ],
michael@0 53 }],
michael@0 54 [ 'OS != "ios"', {
michael@0 55 'defines': [
michael@0 56 'HAVE_JPEG',
michael@0 57 ],
michael@0 58 }],
michael@0 59 ], # conditions
michael@0 60 },
michael@0 61
michael@0 62 {
michael@0 63 'target_name': 'compare',
michael@0 64 'type': 'executable',
michael@0 65 'dependencies': [
michael@0 66 'libyuv.gyp:libyuv',
michael@0 67 ],
michael@0 68 'sources': [
michael@0 69 # sources
michael@0 70 'util/compare.cc',
michael@0 71 ],
michael@0 72 'conditions': [
michael@0 73 ['OS=="linux"', {
michael@0 74 'cflags': [
michael@0 75 '-fexceptions',
michael@0 76 ],
michael@0 77 }],
michael@0 78 ], # conditions
michael@0 79 },
michael@0 80 {
michael@0 81 'target_name': 'convert',
michael@0 82 'type': 'executable',
michael@0 83 'dependencies': [
michael@0 84 'libyuv.gyp:libyuv',
michael@0 85 ],
michael@0 86 'sources': [
michael@0 87 # sources
michael@0 88 'util/convert.cc',
michael@0 89 ],
michael@0 90 'conditions': [
michael@0 91 ['OS=="linux"', {
michael@0 92 'cflags': [
michael@0 93 '-fexceptions',
michael@0 94 ],
michael@0 95 }],
michael@0 96 ], # conditions
michael@0 97 },
michael@0 98 # TODO(fbarchard): Enable SSE2 and OpenMP for better performance.
michael@0 99 {
michael@0 100 'target_name': 'psnr',
michael@0 101 'type': 'executable',
michael@0 102 'sources': [
michael@0 103 # sources
michael@0 104 'util/psnr_main.cc',
michael@0 105 'util/psnr.cc',
michael@0 106 'util/ssim.cc',
michael@0 107 ],
michael@0 108 },
michael@0 109 {
michael@0 110 'target_name': 'cpuid',
michael@0 111 'type': 'executable',
michael@0 112 'sources': [
michael@0 113 # sources
michael@0 114 'util/cpuid.c',
michael@0 115 ],
michael@0 116 'dependencies': [
michael@0 117 'libyuv.gyp:libyuv',
michael@0 118 ],
michael@0 119 },
michael@0 120 ], # targets
michael@0 121 }
michael@0 122
michael@0 123 # Local Variables:
michael@0 124 # tab-width:2
michael@0 125 # indent-tabs-mode:nil
michael@0 126 # End:
michael@0 127 # vim: set expandtab tabstop=2 shiftwidth=2:

mercurial