OLD | NEW |
1 # Copyright 2011 The LibYuv Project Authors. All rights reserved. | 1 # Copyright 2011 The LibYuv Project Authors. All rights reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 { | 9 { |
10 'variables': { | 10 'variables': { |
11 'libyuv_disable_jpeg%': 0, | 11 'libyuv_disable_jpeg%': 0, |
12 'libyuv_enable_svn%': 0, | 12 'libyuv_enable_svn%': 0, |
13 }, | 13 }, |
14 'targets': [ | 14 'targets': [ |
15 { | 15 { |
16 'target_name': 'libyuv_unittest', | 16 'target_name': 'libyuv_unittest', |
17 'type': 'executable', | 17 'type': '<(gtest_target_type)', |
18 'dependencies': [ | 18 'dependencies': [ |
19 'libyuv.gyp:libyuv', | 19 'libyuv.gyp:libyuv', |
20 # The tests are based on gtest | |
21 'testing/gtest.gyp:gtest', | 20 'testing/gtest.gyp:gtest', |
22 'testing/gtest.gyp:gtest_main', | |
23 ], | 21 ], |
24 'defines': [ | 22 'defines': [ |
25 # Enable the following 3 macros to turn off assembly for specified CPU. | 23 # Enable the following 3 macros to turn off assembly for specified CPU. |
26 # 'LIBYUV_DISABLE_X86', | 24 # 'LIBYUV_DISABLE_X86', |
27 # 'LIBYUV_DISABLE_NEON', | 25 # 'LIBYUV_DISABLE_NEON', |
28 # 'LIBYUV_DISABLE_MIPS', | 26 # 'LIBYUV_DISABLE_MIPS', |
29 # Enable the following macro to build libyuv as a shared library (dll). | 27 # Enable the following macro to build libyuv as a shared library (dll). |
30 # 'LIBYUV_USING_SHARED_LIBRARY', | 28 # 'LIBYUV_USING_SHARED_LIBRARY', |
31 ], | 29 ], |
32 'sources': [ | 30 'sources': [ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 'xcode_settings': { | 68 'xcode_settings': { |
71 'DEBUGGING_SYMBOLS': 'YES', | 69 'DEBUGGING_SYMBOLS': 'YES', |
72 'DEBUG_INFORMATION_FORMAT' : 'dwarf-with-dsym', | 70 'DEBUG_INFORMATION_FORMAT' : 'dwarf-with-dsym', |
73 }, | 71 }, |
74 }], | 72 }], |
75 [ 'OS != "ios" and libyuv_disable_jpeg != 1', { | 73 [ 'OS != "ios" and libyuv_disable_jpeg != 1', { |
76 'defines': [ | 74 'defines': [ |
77 'HAVE_JPEG', | 75 'HAVE_JPEG', |
78 ], | 76 ], |
79 }], | 77 }], |
| 78 ['OS=="android"', { |
| 79 'dependencies': [ |
| 80 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code', |
| 81 ], |
| 82 }], |
80 # TODO(YangZhang): These lines can be removed when high accuracy | 83 # TODO(YangZhang): These lines can be removed when high accuracy |
81 # YUV to RGB to Neon is ported. | 84 # YUV to RGB to Neon is ported. |
82 [ '(target_arch == "armv7" or target_arch == "armv7s" \ | 85 [ '(target_arch == "armv7" or target_arch == "armv7s" \ |
83 or (target_arch == "arm" and arm_version >= 7) \ | 86 or (target_arch == "arm" and arm_version >= 7) \ |
84 or target_arch == "arm64") \ | 87 or target_arch == "arm64") \ |
85 and (arm_neon == 1 or arm_neon_optional == 1)', { | 88 and (arm_neon == 1 or arm_neon_optional == 1)', { |
86 'defines': [ | 89 'defines': [ |
87 'LIBYUV_NEON' | 90 'LIBYUV_NEON' |
88 ], | 91 ], |
89 }], | 92 }], |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 'type': 'executable', | 162 'type': 'executable', |
160 'sources': [ | 163 'sources': [ |
161 # sources | 164 # sources |
162 'util/cpuid.c', | 165 'util/cpuid.c', |
163 ], | 166 ], |
164 'dependencies': [ | 167 'dependencies': [ |
165 'libyuv.gyp:libyuv', | 168 'libyuv.gyp:libyuv', |
166 ], | 169 ], |
167 }, | 170 }, |
168 ], # targets | 171 ], # targets |
| 172 'conditions': [ |
| 173 ['OS=="android"', { |
| 174 'targets': [ |
| 175 { |
| 176 # TODO(kjellander): Figure out what to change in build/apk_test.gypi |
| 177 # to it can be used instead of the copied code below. Using it in its |
| 178 # current version was not possible, since the target starts with 'lib'
, |
| 179 # which somewhere confuses the variables. |
| 180 'target_name': 'libyuv_unittest_apk', |
| 181 'type': 'none', |
| 182 'variables': { |
| 183 # These are used to configure java_apk.gypi included below. |
| 184 'test_type': 'gtest', |
| 185 'apk_name': 'libyuv_unittest', |
| 186 'intermediate_dir': '<(PRODUCT_DIR)/libyuv_unittest_apk', |
| 187 'final_apk_path': '<(intermediate_dir)/libyuv_unittest-debug.apk', |
| 188 'java_in_dir': '<(DEPTH)/testing/android/native_test/java', |
| 189 'native_lib_target': 'libyuv_unittest', |
| 190 'gyp_managed_install': 0, |
| 191 }, |
| 192 'includes': [ 'build/java_apk.gypi' ], |
| 193 'dependencies': [ |
| 194 '<(DEPTH)/base/base.gyp:base_java', |
| 195 '<(DEPTH)/build/android/pylib/device/commands/commands.gyp:chromium_
commands', |
| 196 '<(DEPTH)/build/android/pylib/remote/device/dummy/dummy.gyp:remote_d
evice_dummy_apk', |
| 197 '<(DEPTH)/testing/android/appurify_support.gyp:appurify_support_java
', |
| 198 '<(DEPTH)/testing/android/on_device_instrumentation.gyp:reporter_jav
a', |
| 199 '<(DEPTH)/tools/android/android_tools.gyp:android_tools', |
| 200 'libyuv_unittest', |
| 201 ], |
| 202 }, |
| 203 ], |
| 204 }], |
| 205 ], |
169 } | 206 } |
170 | 207 |
171 # Local Variables: | 208 # Local Variables: |
172 # tab-width:2 | 209 # tab-width:2 |
173 # indent-tabs-mode:nil | 210 # indent-tabs-mode:nil |
174 # End: | 211 # End: |
175 # vim: set expandtab tabstop=2 shiftwidth=2: | 212 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |