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

Side by Side Diff: testing/gtest.gyp

Issue 522020: clang support (Closed)
Patch Set: lgtm Created 10 years, 3 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
« chrome/browser/zygote_main_linux.cc ('K') | « skia/skia.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 (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'gtest', 8 'target_name': 'gtest',
9 'type': '<(library)', 9 'type': '<(library)',
10 'msvs_guid': 'BFE8E2A7-3B3B-43B0-A994-3058B852DB8B', 10 'msvs_guid': 'BFE8E2A7-3B3B-43B0-A994-3058B852DB8B',
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 # must be instructed that RTTI is disabled here, and for any 72 # must be instructed that RTTI is disabled here, and for any
73 # direct dependents that might include gtest headers. 73 # direct dependents that might include gtest headers.
74 'GTEST_HAS_RTTI=0', 74 'GTEST_HAS_RTTI=0',
75 ], 75 ],
76 'direct_dependent_settings': { 76 'direct_dependent_settings': {
77 'defines': [ 77 'defines': [
78 'GTEST_HAS_RTTI=0', 78 'GTEST_HAS_RTTI=0',
79 ], 79 ],
80 }, 80 },
81 }], 81 }],
82 ['clang==1', {
83 # We want gtest features that use tr1::tuple, but clang currently
84 # doesn't support the variadic templates used by libstdc++'s
85 # implementation. gtest supports this scenario by providing its
86 # own implementation but we must opt in to it.
87 'defines': [
88 'GTEST_USE_OWN_TR1_TUPLE=1',
89 ],
90 'direct_dependent_settings': {
91 'defines': [
92 'GTEST_USE_OWN_TR1_TUPLE=1',
93 ],
94 },
95 }],
82 ], 96 ],
83 'direct_dependent_settings': { 97 'direct_dependent_settings': {
84 'defines': [ 98 'defines': [
85 'UNIT_TEST', 99 'UNIT_TEST',
86 ], 100 ],
87 'include_dirs': [ 101 'include_dirs': [
88 'gtest/include', # So that gtest headers can find themselves. 102 'gtest/include', # So that gtest headers can find themselves.
89 ], 103 ],
90 'target_conditions': [ 104 'target_conditions': [
91 ['_type=="executable"', {'test': 1}], 105 ['_type=="executable"', {'test': 1}],
(...skipping 14 matching lines...) Expand all
106 ], 120 ],
107 }, 121 },
108 ], 122 ],
109 } 123 }
110 124
111 # Local Variables: 125 # Local Variables:
112 # tab-width:2 126 # tab-width:2
113 # indent-tabs-mode:nil 127 # indent-tabs-mode:nil
114 # End: 128 # End:
115 # vim: set expandtab tabstop=2 shiftwidth=2: 129 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« chrome/browser/zygote_main_linux.cc ('K') | « skia/skia.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698