Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(643)

Side by Side Diff: base/BUILD.gn

Issue 1641413002: Makes GetBuildTime behave identically on all build types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses Merge Conflicts Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/base.gyp » ('j') | base/build_time.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 # 11 #
12 # Since base includes so many low-level things that vary widely and 12 # Since base includes so many low-level things that vary widely and
13 # unpredictably for the various build types, we prefer a slightly different 13 # unpredictably for the various build types, we prefer a slightly different
14 # style. Instead, there are big per-platform blocks of inclusions and 14 # style. Instead, there are big per-platform blocks of inclusions and
15 # exclusions. If a given file has an inclusion or exclusion rule that applies 15 # exclusions. If a given file has an inclusion or exclusion rule that applies
16 # for multiple conditions, perfer to duplicate it in both lists. This makes it 16 # for multiple conditions, perfer to duplicate it in both lists. This makes it
17 # a bit easier to see which files apply in which cases rather than having a 17 # a bit easier to see which files apply in which cases rather than having a
18 # huge sequence of random-looking conditionals. 18 # huge sequence of random-looking conditionals.
19 19
20 import("//build/buildflag_header.gni") 20 import("//build/buildflag_header.gni")
21 import("//build/config/compiler/compiler.gni") 21 import("//build/config/compiler/compiler.gni")
22 import("//build/config/nacl/config.gni") 22 import("//build/config/nacl/config.gni")
23 import("//build/config/ui.gni") 23 import("//build/config/ui.gni")
24 import("//build/nocompile.gni") 24 import("//build/nocompile.gni")
25 import("//testing/test.gni") 25 import("//testing/test.gni")
26 26
27 declare_args() { 27 declare_args() {
28 # Override this value to give a specific build date.
29 # See //base/build_time.cc for more details.
30 override_build_date = "N/A"
31
28 # Whether to disable the handle verifier hooks. 32 # Whether to disable the handle verifier hooks.
29 # Hookless parts of the handle verifier will still function. 33 # Hookless parts of the handle verifier will still function.
30 win_disable_handle_verifier_hooks = false 34 win_disable_handle_verifier_hooks = false
31 } 35 }
32 36
33 if (is_android) { 37 if (is_android) {
34 import("//build/config/android/rules.gni") 38 import("//build/config/android/rules.gni")
35 } 39 }
36 40
37 config("base_flags") { 41 config("base_flags") {
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 966
963 deps = [ 967 deps = [
964 "//base/allocator", 968 "//base/allocator",
965 "//base/third_party/dynamic_annotations", 969 "//base/third_party/dynamic_annotations",
966 "//third_party/modp_b64", 970 "//third_party/modp_b64",
967 ] 971 ]
968 972
969 public_deps = [ 973 public_deps = [
970 ":base_paths", 974 ":base_paths",
971 ":base_static", 975 ":base_static",
976 ":build_date",
972 ":debugging_flags", 977 ":debugging_flags",
973 ] 978 ]
974 979
975 # Allow more direct string conversions on platforms with native utf8 980 # Allow more direct string conversions on platforms with native utf8
976 # strings 981 # strings
977 if (is_mac || is_ios || is_chromeos) { 982 if (is_mac || is_ios || is_chromeos) {
978 defines += [ "SYSTEM_NATIVE_UTF8" ] 983 defines += [ "SYSTEM_NATIVE_UTF8" ]
979 } 984 }
980 985
981 # Android. 986 # Android.
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1894 data += [ "$root_out_dir/base_unittests.dSYM/" ] 1899 data += [ "$root_out_dir/base_unittests.dSYM/" ]
1895 } 1900 }
1896 } 1901 }
1897 1902
1898 # This disables one of the handle verifier tests. 1903 # This disables one of the handle verifier tests.
1899 if (is_win && win_disable_handle_verifier_hooks) { 1904 if (is_win && win_disable_handle_verifier_hooks) {
1900 defines = [ "DISABLE_HANDLE_VERIFIER_HOOKS" ] 1905 defines = [ "DISABLE_HANDLE_VERIFIER_HOOKS" ]
1901 } 1906 }
1902 } 1907 }
1903 1908
1909 action("build_date") {
1910 script = "//build/write_build_date_header.py"
1911 outputs = [
1912 "$target_gen_dir/generated_build_date.h",
1913 ]
1914
1915 args =
1916 [ rebase_path("$target_gen_dir/generated_build_date.h", root_build_dir) ]
1917
1918 if (is_official_build) {
1919 args += [ "official" ]
1920 } else {
1921 args += [ "default" ]
1922 }
1923
1924 if (override_build_date != "N/A") {
1925 args += [ override_build_date ]
1926 }
1927 }
1928
1904 if (enable_nocompile_tests) { 1929 if (enable_nocompile_tests) {
1905 nocompile_test("base_nocompile_tests") { 1930 nocompile_test("base_nocompile_tests") {
1906 sources = [ 1931 sources = [
1907 "bind_unittest.nc", 1932 "bind_unittest.nc",
1908 "callback_list_unittest.nc", 1933 "callback_list_unittest.nc",
1909 "callback_unittest.nc", 1934 "callback_unittest.nc",
1910 "memory/scoped_ptr_unittest.nc", 1935 "memory/scoped_ptr_unittest.nc",
1911 "memory/weak_ptr_unittest.nc", 1936 "memory/weak_ptr_unittest.nc",
1912 ] 1937 ]
1913 1938
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 2089
2065 # GYP: //base.gyp:base_java_unittest_support 2090 # GYP: //base.gyp:base_java_unittest_support
2066 android_library("base_java_unittest_support") { 2091 android_library("base_java_unittest_support") {
2067 deps = [ 2092 deps = [
2068 ":base_java", 2093 ":base_java",
2069 ] 2094 ]
2070 java_files = 2095 java_files =
2071 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] 2096 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]
2072 } 2097 }
2073 } 2098 }
OLDNEW
« no previous file with comments | « no previous file | base/base.gyp » ('j') | base/build_time.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698