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 # HOW TO WRITE CONDITIONALS IN THIS FILE | 5 # HOW TO WRITE CONDITIONALS IN THIS FILE |
6 # ====================================== | 6 # ====================================== |
7 # | 7 # |
8 # In many other places, one would write a conditional that expresses all the | 8 # In many other places, one would write a conditional that expresses all the |
9 # cases when a source file is used or unused, and then either add or subtract | 9 # cases when a source file is used or unused, and then either add or subtract |
10 # it from the sources list in that case | 10 # it from the sources list in that case |
(...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1972 "win/scoped_process_information_unittest.cc", | 1972 "win/scoped_process_information_unittest.cc", |
1973 "win/scoped_variant_unittest.cc", | 1973 "win/scoped_variant_unittest.cc", |
1974 "win/shortcut_unittest.cc", | 1974 "win/shortcut_unittest.cc", |
1975 "win/startup_information_unittest.cc", | 1975 "win/startup_information_unittest.cc", |
1976 "win/wait_chain_unittest.cc", | 1976 "win/wait_chain_unittest.cc", |
1977 "win/win_util_unittest.cc", | 1977 "win/win_util_unittest.cc", |
1978 "win/windows_version_unittest.cc", | 1978 "win/windows_version_unittest.cc", |
1979 "win/wrapped_window_proc_unittest.cc", | 1979 "win/wrapped_window_proc_unittest.cc", |
1980 ] | 1980 ] |
1981 | 1981 |
| 1982 defines = [] |
| 1983 |
1982 deps = [ | 1984 deps = [ |
1983 ":base", | 1985 ":base", |
1984 ":i18n", | 1986 ":i18n", |
1985 ":message_loop_tests", | 1987 ":message_loop_tests", |
1986 "//base/test:run_all_unittests", | 1988 "//base/test:run_all_unittests", |
1987 "//base/test:test_support", | 1989 "//base/test:test_support", |
1988 "//base/third_party/dynamic_annotations", | 1990 "//base/third_party/dynamic_annotations", |
1989 "//testing/gmock", | 1991 "//testing/gmock", |
1990 "//testing/gtest", | 1992 "//testing/gtest", |
1991 "//third_party/icu", | 1993 "//third_party/icu", |
(...skipping 10 matching lines...) Expand all Loading... |
2002 # Some unittests depend on the ALLOCATOR_SHIM macro. | 2004 # Some unittests depend on the ALLOCATOR_SHIM macro. |
2003 configs += [ "//base/allocator:allocator_shim_define" ] | 2005 configs += [ "//base/allocator:allocator_shim_define" ] |
2004 | 2006 |
2005 data = [ | 2007 data = [ |
2006 "test/data/", | 2008 "test/data/", |
2007 ] | 2009 ] |
2008 | 2010 |
2009 # Allow more direct string conversions on platforms with native utf8 | 2011 # Allow more direct string conversions on platforms with native utf8 |
2010 # strings | 2012 # strings |
2011 if (is_mac || is_ios || is_chromeos || is_chromecast) { | 2013 if (is_mac || is_ios || is_chromeos || is_chromecast) { |
2012 defines = [ "SYSTEM_NATIVE_UTF8" ] | 2014 defines += [ "SYSTEM_NATIVE_UTF8" ] |
2013 } | 2015 } |
2014 | 2016 |
2015 if (is_android) { | 2017 if (is_android) { |
2016 deps += [ | 2018 deps += [ |
2017 ":base_java", | 2019 ":base_java", |
2018 ":base_java_unittest_support", | 2020 ":base_java_unittest_support", |
2019 "//base/android/jni_generator:jni_generator_tests", | 2021 "//base/android/jni_generator:jni_generator_tests", |
2020 ] | 2022 ] |
2021 } | 2023 } |
2022 | 2024 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2107 | 2109 |
2108 # Symbols for crashes when running tests on swarming. | 2110 # Symbols for crashes when running tests on swarming. |
2109 if (symbol_level > 0) { | 2111 if (symbol_level > 0) { |
2110 if (is_win) { | 2112 if (is_win) { |
2111 data += [ "$root_out_dir/base_unittests.exe.pdb" ] | 2113 data += [ "$root_out_dir/base_unittests.exe.pdb" ] |
2112 } else if (is_mac) { | 2114 } else if (is_mac) { |
2113 # TODO(crbug.com/330301): make this conditional on mac_strip_release. | 2115 # TODO(crbug.com/330301): make this conditional on mac_strip_release. |
2114 # data += [ "$root_out_dir/base_unittests.dSYM/" ] | 2116 # data += [ "$root_out_dir/base_unittests.dSYM/" ] |
2115 } | 2117 } |
2116 } | 2118 } |
| 2119 |
| 2120 if (use_cfi_cast) { |
| 2121 # TODO(krasin): remove CFI_CAST_CHECK, see https://crbug.com/626794. |
| 2122 defines += [ "CFI_CAST_CHECK" ] |
| 2123 } |
2117 } | 2124 } |
2118 | 2125 |
2119 action("build_date") { | 2126 action("build_date") { |
2120 script = "//build/write_build_date_header.py" | 2127 script = "//build/write_build_date_header.py" |
2121 | 2128 |
2122 # Force recalculation if there's been a change. | 2129 # Force recalculation if there's been a change. |
2123 inputs = [ | 2130 inputs = [ |
2124 "//build/util/LASTCHANGE", | 2131 "//build/util/LASTCHANGE", |
2125 ] | 2132 ] |
2126 outputs = [ | 2133 outputs = [ |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2417 | 2424 |
2418 # GYP: //base.gyp:base_java_unittest_support | 2425 # GYP: //base.gyp:base_java_unittest_support |
2419 android_library("base_java_unittest_support") { | 2426 android_library("base_java_unittest_support") { |
2420 deps = [ | 2427 deps = [ |
2421 ":base_java", | 2428 ":base_java", |
2422 ] | 2429 ] |
2423 java_files = | 2430 java_files = |
2424 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 2431 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
2425 } | 2432 } |
2426 } | 2433 } |
OLD | NEW |