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

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

Issue 227673008: Checkpoint work to get GN builds working on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge forward to 263376 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
« no previous file with comments | « ipc/BUILD.gn ('k') | tools/gn/secondary/third_party/libevent/BUILD.gn » ('j') | 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 17 matching lines...) Expand all
28 # gtest isn't able to figure out when RTTI is disabled for gcc 28 # gtest isn't able to figure out when RTTI is disabled for gcc
29 # versions older than 4.3.2, and assumes it's enabled. Our Mac 29 # versions older than 4.3.2, and assumes it's enabled. Our Mac
30 # and Linux builds disable RTTI, and cannot guarantee that the 30 # and Linux builds disable RTTI, and cannot guarantee that the
31 # compiler will be 4.3.2. or newer. The Mac, for example, uses 31 # compiler will be 4.3.2. or newer. The Mac, for example, uses
32 # 4.2.1 as that is the latest available on that platform. gtest 32 # 4.2.1 as that is the latest available on that platform. gtest
33 # must be instructed that RTTI is disabled here, and for any 33 # must be instructed that RTTI is disabled here, and for any
34 # direct dependents that might include gtest headers. 34 # direct dependents that might include gtest headers.
35 "GTEST_HAS_RTTI=0", 35 "GTEST_HAS_RTTI=0",
36 ] 36 ]
37 } 37 }
38
39 if (is_android) {
40 defines += [
41 # We want gtest features that use tr1::tuple, but we currently
42 # don't support the variadic templates used by libstdc++'s
43 # implementation. gtest supports this scenario by providing its
44 # own implementation but we must opt in to it.
45 "GTEST_USE_OWN_TR1_TUPLE=1",
46
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
49 # automatically on android, so it has to be set explicitly here.
50 "GTEST_HAS_TR1_TUPLE=1",
51 ]
52 }
38 } 53 }
39 54
40 static_library("gtest") { 55 static_library("gtest") {
41 sources = [ 56 sources = [
42 "include/gtest/gtest-death-test.h", 57 "include/gtest/gtest-death-test.h",
43 "include/gtest/gtest-message.h", 58 "include/gtest/gtest-message.h",
44 "include/gtest/gtest-param-test.h", 59 "include/gtest/gtest-param-test.h",
45 "include/gtest/gtest-printers.h", 60 "include/gtest/gtest-printers.h",
46 "include/gtest/gtest-spi.h", 61 "include/gtest/gtest-spi.h",
47 "include/gtest/gtest-test-part.h", 62 "include/gtest/gtest-test-part.h",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ] 95 ]
81 } 96 }
82 97
83 include_dirs = [ "." ] 98 include_dirs = [ "." ]
84 99
85 all_dependent_configs = [ ":gtest_config" ] 100 all_dependent_configs = [ ":gtest_config" ]
86 101
87 configs -= [ "//build/config/compiler:chromium_code" ] 102 configs -= [ "//build/config/compiler:chromium_code" ]
88 configs += [ "//build/config/compiler:no_chromium_code" ] 103 configs += [ "//build/config/compiler:no_chromium_code" ]
89 } 104 }
OLDNEW
« no previous file with comments | « ipc/BUILD.gn ('k') | tools/gn/secondary/third_party/libevent/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698