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