| 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': 'static_library', | 9 'type': 'static_library', |
| 10 'msvs_guid': 'BFE8E2A7-3B3B-43B0-A994-3058B852DB8B', | 10 'msvs_guid': 'BFE8E2A7-3B3B-43B0-A994-3058B852DB8B', |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 'gtest_mac.h', | 55 'gtest_mac.h', |
| 56 'gtest_mac.mm', | 56 'gtest_mac.mm', |
| 57 'platform_test_mac.mm' | 57 'platform_test_mac.mm' |
| 58 ], | 58 ], |
| 59 'link_settings': { | 59 'link_settings': { |
| 60 'libraries': [ | 60 'libraries': [ |
| 61 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 61 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 62 ], | 62 ], |
| 63 }, | 63 }, |
| 64 }], | 64 }], |
| 65 ['OS == "mac" or OS == "linux" or OS == "freebsd" or OS == "openbsd"', { | 65 ['os_posix == 1', { |
| 66 'defines': [ | 66 'defines': [ |
| 67 # gtest isn't able to figure out when RTTI is disabled for gcc | 67 # gtest isn't able to figure out when RTTI is disabled for gcc |
| 68 # versions older than 4.3.2, and assumes it's enabled. Our Mac | 68 # versions older than 4.3.2, and assumes it's enabled. Our Mac |
| 69 # and Linux builds disable RTTI, and cannot guarantee that the | 69 # and Linux builds disable RTTI, and cannot guarantee that the |
| 70 # compiler will be 4.3.2. or newer. The Mac, for example, uses | 70 # compiler will be 4.3.2. or newer. The Mac, for example, uses |
| 71 # 4.2.1 as that is the latest available on that platform. gtest | 71 # 4.2.1 as that is the latest available on that platform. gtest |
| 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 ], |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 ], | 132 ], |
| 133 }, | 133 }, |
| 134 ], | 134 ], |
| 135 } | 135 } |
| 136 | 136 |
| 137 # Local Variables: | 137 # Local Variables: |
| 138 # tab-width:2 | 138 # tab-width:2 |
| 139 # indent-tabs-mode:nil | 139 # indent-tabs-mode:nil |
| 140 # End: | 140 # End: |
| 141 # vim: set expandtab tabstop=2 shiftwidth=2: | 141 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |