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

Side by Side Diff: tools/gn/secondary/testing/gtest/BUILD.gn

Issue 246303005: Make GN's "check" run cleanly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« skia/skia_gn_files.gypi ('K') | « skia/skia_gn_files.gypi ('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) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 config("gtest_config") { 5 config("gtest_config") {
6 visibility = [ 6 visibility = [
7 ":*", 7 ":*",
8 "//testing/gmock:*", # gmock also shares this config. 8 "//testing/gmock:*", # gmock also shares this config.
9 ] 9 ]
10 10
(...skipping 25 matching lines...) Expand all
36 ] 36 ]
37 } 37 }
38 38
39 if (is_android) { 39 if (is_android) {
40 defines += [ 40 defines += [
41 # We want gtest features that use tr1::tuple, but we currently 41 # We want gtest features that use tr1::tuple, but we currently
42 # don't support the variadic templates used by libstdc++'s 42 # don't support the variadic templates used by libstdc++'s
43 # implementation. gtest supports this scenario by providing its 43 # implementation. gtest supports this scenario by providing its
44 # own implementation but we must opt in to it. 44 # own implementation but we must opt in to it.
45 "GTEST_USE_OWN_TR1_TUPLE=1", 45 "GTEST_USE_OWN_TR1_TUPLE=1",
46 46
47 # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set. 47 # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set.
48 # gtest r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0 48 # gtest r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0
49 # automatically on android, so it has to be set explicitly here. 49 # automatically on android, so it has to be set explicitly here.
50 "GTEST_HAS_TR1_TUPLE=1", 50 "GTEST_HAS_TR1_TUPLE=1",
51 ] 51 ]
52 } 52 }
53 } 53 }
54 54
55 static_library("gtest") { 55 static_library("gtest") {
56 sources = [ 56 sources = [
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 ] 95 ]
96 } 96 }
97 97
98 include_dirs = [ "." ] 98 include_dirs = [ "." ]
99 99
100 all_dependent_configs = [ ":gtest_config" ] 100 all_dependent_configs = [ ":gtest_config" ]
101 101
102 configs -= [ "//build/config/compiler:chromium_code" ] 102 configs -= [ "//build/config/compiler:chromium_code" ]
103 configs += [ "//build/config/compiler:no_chromium_code" ] 103 configs += [ "//build/config/compiler:no_chromium_code" ]
104 } 104 }
OLDNEW
« skia/skia_gn_files.gypi ('K') | « skia/skia_gn_files.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698