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 # 'LIBYUV_USING_SHARED_LIBRARY', 23 ], 24 'sources': [ 25 # headers 26 'unit_test/unit_test.h', 27 28 # sources 29 'unit_test/compare_test.cc', 30 'unit_test/cpu_test.cc', 31 'unit_test/planar_test.cc', 32 'unit_test/rotate_argb_test.cc', 33 'unit_test/rotate_test.cc', 34 'unit_test/scale_argb_test.cc', 35 'unit_test/scale_test.cc', 36 'unit_test/unit_test.cc', 37 'unit_test/version_test.cc', 38 ], 39 'conditions': [ 40 ['OS=="linux"', { 41 'cflags': [ 42 '-fexceptions', 43 ], 44 }], 45 ], # conditions 46 }, 47 48 { 49 'target_name': 'compare', 50 'type': 'executable', 51 'dependencies': [ 52 'libyuv.gyp:libyuv', 53 ], 54 'sources': [ 55 # sources 56 'util/compare.cc', 57 ], 58 'conditions': [ 59 ['OS=="linux"', { 60 'cflags': [ 61 '-fexceptions', 62 ], 63 }], 64 ], # conditions 65 }, 66 67 ], # targets 68 } 69 70 # Local Variables: 71 # tab-width:2 72 # indent-tabs-mode:nil 73 # End: 74 # vim: set expandtab tabstop=2 shiftwidth=2: 75