OLD | NEW |
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 }], | 95 }], |
96 ], | 96 ], |
97 'direct_dependent_settings': { | 97 'direct_dependent_settings': { |
98 'defines': [ | 98 'defines': [ |
99 'UNIT_TEST', | 99 'UNIT_TEST', |
100 ], | 100 ], |
101 'include_dirs': [ | 101 'include_dirs': [ |
102 'gtest/include', # So that gtest headers can find themselves. | 102 'gtest/include', # So that gtest headers can find themselves. |
103 ], | 103 ], |
104 'target_conditions': [ | 104 'target_conditions': [ |
105 ['_type=="executable"', {'test': 1}], | 105 ['_type=="executable"', { |
| 106 'test': 1, |
| 107 'conditions': [ |
| 108 ['OS=="mac"', { |
| 109 'run_as': { |
| 110 'action????': ['${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}'], |
| 111 }, |
| 112 }], |
| 113 ['OS=="win"', { |
| 114 'run_as': { |
| 115 'action????': ['$(TargetPath)', '--gtest_print_time'], |
| 116 }, |
| 117 }], |
| 118 ], |
| 119 }], |
106 ], | 120 ], |
107 'msvs_disabled_warnings': [4800], | 121 'msvs_disabled_warnings': [4800], |
108 }, | 122 }, |
109 }, | 123 }, |
110 { | 124 { |
111 'target_name': 'gtest_main', | 125 'target_name': 'gtest_main', |
112 'type': '<(library)', | 126 'type': '<(library)', |
113 'dependencies': [ | 127 'dependencies': [ |
114 'gtest', | 128 'gtest', |
115 ], | 129 ], |
116 'sources': [ | 130 'sources': [ |
117 'gtest/src/gtest_main.cc', | 131 'gtest/src/gtest_main.cc', |
118 ], | 132 ], |
119 }, | 133 }, |
120 ], | 134 ], |
121 } | 135 } |
122 | 136 |
123 # Local Variables: | 137 # Local Variables: |
124 # tab-width:2 | 138 # tab-width:2 |
125 # indent-tabs-mode:nil | 139 # indent-tabs-mode:nil |
126 # End: | 140 # End: |
127 # vim: set expandtab tabstop=2 shiftwidth=2: | 141 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |