| 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 'includes': [ | 6 'includes': [ |
| 7 '../build/common.gypi', | 7 '../build/common.gypi', |
| 8 ], | 8 ], |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 ], | 49 ], |
| 50 'include_dirs': [ | 50 'include_dirs': [ |
| 51 'gtest', | 51 'gtest', |
| 52 'gtest/include', | 52 'gtest/include', |
| 53 ], | 53 ], |
| 54 'conditions': [ | 54 'conditions': [ |
| 55 ['OS == "mac"', { | 55 ['OS == "mac"', { |
| 56 'sources': [ | 56 'sources': [ |
| 57 'platform_test_mac.mm' | 57 'platform_test_mac.mm' |
| 58 ], | 58 ], |
| 59 'link_settings': { |
| 60 'libraries': [ |
| 61 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 62 ], |
| 63 }, |
| 59 }], | 64 }], |
| 60 ['OS == "mac" or OS == "linux"', { | 65 ['OS == "mac" or OS == "linux"', { |
| 61 'defines': [ | 66 'defines': [ |
| 62 # 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 |
| 63 # 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 |
| 64 # and Linux builds disable RTTI, and cannot guarantee that the | 69 # and Linux builds disable RTTI, and cannot guarantee that the |
| 65 # 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 |
| 66 # 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 |
| 67 # must be instructed that RTTI is disabled here, and for any | 72 # must be instructed that RTTI is disabled here, and for any |
| 68 # direct dependents that might include gtest headers. | 73 # direct dependents that might include gtest headers. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 94 'type': '<(library)', | 99 'type': '<(library)', |
| 95 'dependencies': [ | 100 'dependencies': [ |
| 96 'gtest', | 101 'gtest', |
| 97 ], | 102 ], |
| 98 'sources': [ | 103 'sources': [ |
| 99 'gtest/src/gtest_main.cc', | 104 'gtest/src/gtest_main.cc', |
| 100 ], | 105 ], |
| 101 }, | 106 }, |
| 102 ], | 107 ], |
| 103 } | 108 } |
| OLD | NEW |