Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: libyuv_test.gyp

Issue 1685723002: add 'LIBYUV_DISABLE_X86' to msan for unittests (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: move conditional for msan to existing block Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« .gitignore ('K') | « libyuv.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }, 12 },
13 'targets': [ 13 'targets': [
14 { 14 {
15 'target_name': 'libyuv_unittest', 15 'target_name': 'libyuv_unittest',
16 'type': '<(gtest_target_type)', 16 'type': '<(gtest_target_type)',
17 'dependencies': [ 17 'dependencies': [
18 'libyuv.gyp:libyuv', 18 'libyuv.gyp:libyuv',
19 'testing/gtest.gyp:gtest', 19 'testing/gtest.gyp:gtest',
20 'third_party/gflags/gflags.gyp:gflags', 20 'third_party/gflags/gflags.gyp:gflags',
21 ], 21 ],
22 'direct_dependent_settings': { 22 'direct_dependent_settings': {
23 'defines': [ 23 'defines': [
24 'GTEST_RELATIVE_PATH', 24 'GTEST_RELATIVE_PATH',
25 ], 25 ],
26 }, 26 },
27 'export_dependent_settings': [ 27 'export_dependent_settings': [
28 '<(DEPTH)/testing/gtest.gyp:gtest', 28 '<(DEPTH)/testing/gtest.gyp:gtest',
29 ], 29 ],
30 'defines': [
31 # Enable the following 3 macros to turn off assembly for specified CPU.
32 # 'LIBYUV_DISABLE_X86',
33 # 'LIBYUV_DISABLE_NEON',
34 # 'LIBYUV_DISABLE_MIPS',
35 # Enable the following macro to build libyuv as a shared library (dll).
36 # 'LIBYUV_USING_SHARED_LIBRARY',
37 ],
38 'sources': [ 30 'sources': [
39 # headers 31 # headers
40 'unit_test/unit_test.h', 32 'unit_test/unit_test.h',
41 33
42 # sources 34 # sources
43 'unit_test/basictypes_test.cc', 35 'unit_test/basictypes_test.cc',
44 'unit_test/compare_test.cc', 36 'unit_test/compare_test.cc',
45 'unit_test/color_test.cc', 37 'unit_test/color_test.cc',
46 'unit_test/convert_test.cc', 38 'unit_test/convert_test.cc',
47 'unit_test/cpu_test.cc', 39 'unit_test/cpu_test.cc',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 }], 83 }],
92 # TODO(YangZhang): These lines can be removed when high accuracy 84 # TODO(YangZhang): These lines can be removed when high accuracy
93 # YUV to RGB to Neon is ported. 85 # YUV to RGB to Neon is ported.
94 [ '(target_arch == "armv7" or target_arch == "armv7s" \ 86 [ '(target_arch == "armv7" or target_arch == "armv7s" \
95 or (target_arch == "arm" and arm_version >= 7) \ 87 or (target_arch == "arm" and arm_version >= 7) \
96 or target_arch == "arm64") \ 88 or target_arch == "arm64") \
97 and (arm_neon == 1 or arm_neon_optional == 1)', { 89 and (arm_neon == 1 or arm_neon_optional == 1)', {
98 'defines': [ 90 'defines': [
99 'LIBYUV_NEON' 91 'LIBYUV_NEON'
100 ], 92 ],
101 }], 93 }],
94 # MemorySanitizer does not support assembly code yet.
95 # http://crbug.com/344505
96 [ 'msan == 1', {
97 'defines': [
98 'LIBYUV_DISABLE_X86',
99 ],
100 }],
102 ], # conditions 101 ], # conditions
102 'defines': [
103 # Enable the following 3 macros to turn off assembly for specified CPU.
104 # 'LIBYUV_DISABLE_X86',
105 # 'LIBYUV_DISABLE_NEON',
106 # 'LIBYUV_DISABLE_MIPS',
107 # Enable the following macro to build libyuv as a shared library (dll).
108 # 'LIBYUV_USING_SHARED_LIBRARY',
109 ],
103 }, 110 },
104
105 { 111 {
106 'target_name': 'compare', 112 'target_name': 'compare',
107 'type': 'executable', 113 'type': 'executable',
108 'dependencies': [ 114 'dependencies': [
109 'libyuv.gyp:libyuv', 115 'libyuv.gyp:libyuv',
110 ], 116 ],
111 'sources': [ 117 'sources': [
112 # sources 118 # sources
113 'util/compare.cc', 119 'util/compare.cc',
114 ], 120 ],
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 ], 218 ],
213 }], 219 }],
214 ], 220 ],
215 } 221 }
216 222
217 # Local Variables: 223 # Local Variables:
218 # tab-width:2 224 # tab-width:2
219 # indent-tabs-mode:nil 225 # indent-tabs-mode:nil
220 # End: 226 # End:
221 # vim: set expandtab tabstop=2 shiftwidth=2: 227 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« .gitignore ('K') | « libyuv.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698