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

Side by Side Diff: testing/gtest.gyp

Issue 2179743002: Use GTEST_LANG_CXX11 in V8 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « testing/gmock_custom/gmock/internal/custom/gmock-port.h ('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 2014 the V8 project authors. All rights reserved. 1 # Copyright 2014 the V8 project 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 'toolsets': ['host', 'target'], 9 'toolsets': ['host', 'target'],
10 'type': 'static_library', 10 'type': 'static_library',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 'gtest', 46 'gtest',
47 'gtest/include', 47 'gtest/include',
48 ], 48 ],
49 'dependencies': [ 49 'dependencies': [
50 'gtest_prod', 50 'gtest_prod',
51 ], 51 ],
52 'defines': [ 52 'defines': [
53 # In order to allow regex matches in gtest to be shared between Windows 53 # In order to allow regex matches in gtest to be shared between Windows
54 # and other systems, we tell gtest to always use it's internal engine. 54 # and other systems, we tell gtest to always use it's internal engine.
55 'GTEST_HAS_POSIX_RE=0', 55 'GTEST_HAS_POSIX_RE=0',
56 # Chrome doesn't support / require C++11, yet. 56 'GTEST_LANG_CXX11=1',
57 'GTEST_LANG_CXX11=0',
58 ], 57 ],
59 'all_dependent_settings': { 58 'all_dependent_settings': {
60 'defines': [ 59 'defines': [
61 'GTEST_HAS_POSIX_RE=0', 60 'GTEST_HAS_POSIX_RE=0',
62 'GTEST_LANG_CXX11=0', 61 'GTEST_LANG_CXX11=1',
63 ], 62 ],
64 }, 63 },
65 'conditions': [ 64 'conditions': [
66 ['os_posix == 1', {
67 'defines': [
68 # gtest isn't able to figure out when RTTI is disabled for gcc
69 # versions older than 4.3.2, and assumes it's enabled. Our Mac
70 # and Linux builds disable RTTI, and cannot guarantee that the
71 # compiler will be 4.3.2. or newer. The Mac, for example, uses
72 # 4.2.1 as that is the latest available on that platform. gtest
73 # must be instructed that RTTI is disabled here, and for any
74 # direct dependents that might include gtest headers.
75 'GTEST_HAS_RTTI=0',
76 ],
77 'direct_dependent_settings': {
78 'defines': [
79 'GTEST_HAS_RTTI=0',
80 ],
81 },
82 }],
83 ['OS=="android"', { 65 ['OS=="android"', {
84 'defines': [ 66 'defines': [
85 'GTEST_HAS_CLONE=0', 67 'GTEST_HAS_CLONE=0',
86 ], 68 ],
87 'direct_dependent_settings': { 69 'direct_dependent_settings': {
88 'defines': [ 70 'defines': [
89 'GTEST_HAS_CLONE=0', 71 'GTEST_HAS_CLONE=0',
90 ], 72 ],
91 }, 73 },
92 }], 74 }],
93 ['OS=="android"', {
94 # We want gtest features that use tr1::tuple, but we currently
95 # don't support the variadic templates used by libstdc++'s
96 # implementation. gtest supports this scenario by providing its
97 # own implementation but we must opt in to it.
98 'defines': [
99 'GTEST_USE_OWN_TR1_TUPLE=1',
100 # GTEST_USE_OWN_TR1_TUPLE only works if GTEST_HAS_TR1_TUPLE is set.
101 # gtest r625 made it so that GTEST_HAS_TR1_TUPLE is set to 0
102 # automatically on android, so it has to be set explicitly here.
103 'GTEST_HAS_TR1_TUPLE=1',
104 ],
105 'direct_dependent_settings': {
106 'defines': [
107 'GTEST_USE_OWN_TR1_TUPLE=1',
108 'GTEST_HAS_TR1_TUPLE=1',
109 ],
110 },
111 }],
112 ], 75 ],
113 'direct_dependent_settings': { 76 'direct_dependent_settings': {
114 'defines': [ 77 'defines': [
115 'UNIT_TEST', 78 'UNIT_TEST',
116 ], 79 ],
117 'include_dirs': [ 80 'include_dirs': [
118 'gtest/include', # So that gtest headers can find themselves. 81 'gtest/include', # So that gtest headers can find themselves.
119 ], 82 ],
120 'target_conditions': [ 83 'target_conditions': [
121 ['_type=="executable"', { 84 ['_type=="executable"', {
(...skipping 28 matching lines...) Expand all
150 { 113 {
151 'target_name': 'gtest_prod', 114 'target_name': 'gtest_prod',
152 'toolsets': ['host', 'target'], 115 'toolsets': ['host', 'target'],
153 'type': 'none', 116 'type': 'none',
154 'sources': [ 117 'sources': [
155 'gtest/include/gtest/gtest_prod.h', 118 'gtest/include/gtest/gtest_prod.h',
156 ], 119 ],
157 }, 120 },
158 ], 121 ],
159 } 122 }
OLDNEW
« no previous file with comments | « testing/gmock_custom/gmock/internal/custom/gmock-port.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698