|
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"', { |
|
55 'defines': [ |
|
56 'HAVE_JPEG', |
|
57 ], |
|
58 }], |
|
59 ], # conditions |
|
60 }, |
|
61 |
|
62 { |
|
63 'target_name': 'compare', |
|
64 'type': 'executable', |
|
65 'dependencies': [ |
|
66 'libyuv.gyp:libyuv', |
|
67 ], |
|
68 'sources': [ |
|
69 # sources |
|
70 'util/compare.cc', |
|
71 ], |
|
72 'conditions': [ |
|
73 ['OS=="linux"', { |
|
74 'cflags': [ |
|
75 '-fexceptions', |
|
76 ], |
|
77 }], |
|
78 ], # conditions |
|
79 }, |
|
80 { |
|
81 'target_name': 'convert', |
|
82 'type': 'executable', |
|
83 'dependencies': [ |
|
84 'libyuv.gyp:libyuv', |
|
85 ], |
|
86 'sources': [ |
|
87 # sources |
|
88 'util/convert.cc', |
|
89 ], |
|
90 'conditions': [ |
|
91 ['OS=="linux"', { |
|
92 'cflags': [ |
|
93 '-fexceptions', |
|
94 ], |
|
95 }], |
|
96 ], # conditions |
|
97 }, |
|
98 # TODO(fbarchard): Enable SSE2 and OpenMP for better performance. |
|
99 { |
|
100 'target_name': 'psnr', |
|
101 'type': 'executable', |
|
102 'sources': [ |
|
103 # sources |
|
104 'util/psnr_main.cc', |
|
105 'util/psnr.cc', |
|
106 'util/ssim.cc', |
|
107 ], |
|
108 }, |
|
109 { |
|
110 'target_name': 'cpuid', |
|
111 'type': 'executable', |
|
112 'sources': [ |
|
113 # sources |
|
114 'util/cpuid.c', |
|
115 ], |
|
116 'dependencies': [ |
|
117 'libyuv.gyp:libyuv', |
|
118 ], |
|
119 }, |
|
120 ], # targets |
|
121 } |
|
122 |
|
123 # Local Variables: |
|
124 # tab-width:2 |
|
125 # indent-tabs-mode:nil |
|
126 # End: |
|
127 # vim: set expandtab tabstop=2 shiftwidth=2: |