| OLD | NEW | 
|---|
| 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   defines = [ | 6   defines = [ | 
| 7     "UNIT_TEST", | 7     "UNIT_TEST", | 
| 8 | 8 | 
| 9     # In order to allow regex matches in gtest to be shared between Windows | 9     # In order to allow regex matches in gtest to be shared between Windows | 
| 10     # and other systems, we tell gtest to always use it's internal engine. | 10     # and other systems, we tell gtest to always use it's internal engine. | 
| 11     "GTEST_HAS_POSIX_RE=0", | 11     "GTEST_HAS_POSIX_RE=0", | 
| 12   ] | 12   ] | 
| 13 | 13 | 
| 14   # Gtest headers need to be able to find themselves. | 14   # Gtest headers need to be able to find themselves. | 
| 15   include_dirs = [ "include" ] | 15   include_dirs = [ "include" ] | 
| 16 | 16 | 
| 17   if (is_win) { |  | 
| 18     cflags = [ "/wd4800" ]  # Unused variable warning. |  | 
| 19   } |  | 
| 20 |  | 
| 21   if (is_posix) { | 17   if (is_posix) { | 
| 22     defines += [ | 18     defines += [ | 
| 23       # gtest isn't able to figure out when RTTI is disabled for gcc | 19       # gtest isn't able to figure out when RTTI is disabled for gcc | 
| 24       # versions older than 4.3.2, and assumes it's enabled.  Our Mac | 20       # versions older than 4.3.2, and assumes it's enabled.  Our Mac | 
| 25       # and Linux builds disable RTTI, and cannot guarantee that the | 21       # and Linux builds disable RTTI, and cannot guarantee that the | 
| 26       # compiler will be 4.3.2. or newer.  The Mac, for example, uses | 22       # compiler will be 4.3.2. or newer.  The Mac, for example, uses | 
| 27       # 4.2.1 as that is the latest available on that platform.  gtest | 23       # 4.2.1 as that is the latest available on that platform.  gtest | 
| 28       # must be instructed that RTTI is disabled here, and for any | 24       # must be instructed that RTTI is disabled here, and for any | 
| 29       # direct dependents that might include gtest headers. | 25       # direct dependents that might include gtest headers. | 
| 30       "GTEST_HAS_RTTI=0", | 26       "GTEST_HAS_RTTI=0", | 
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 71     sources += [ | 67     sources += [ | 
| 72       "../gtest_mac.h", | 68       "../gtest_mac.h", | 
| 73       "../gtest_mac.mm", | 69       "../gtest_mac.mm", | 
| 74       "../platform_test_mac.mm", | 70       "../platform_test_mac.mm", | 
| 75     ] | 71     ] | 
| 76   } | 72   } | 
| 77 | 73 | 
| 78   include_dirs = [ "." ] | 74   include_dirs = [ "." ] | 
| 79 | 75 | 
| 80   all_dependent_configs = [ ":gtest_config" ] | 76   all_dependent_configs = [ ":gtest_config" ] | 
|  | 77   if (is_win) { | 
|  | 78     all_dependent_configs += [ | 
|  | 79       "//build/config/win:disable_unused_variable_warning", | 
|  | 80     ] | 
|  | 81   } | 
| 81 | 82 | 
| 82   configs -= [ "//build/config/compiler:chromium_code" ] | 83   configs -= [ "//build/config/compiler:chromium_code" ] | 
| 83   configs += [ "//build/config/compiler:no_chromium_code" ] | 84   configs += [ "//build/config/compiler:no_chromium_code" ] | 
| 84 } | 85 } | 
| OLD | NEW | 
|---|