| Index: base/BUILD.gn
|
| diff --git a/base/BUILD.gn b/base/BUILD.gn
|
| index 2cb0efdc950da1f551885b212b533ec6964ccdc1..3d34df4a4e39b69c4f4ad576bc49999930db397d 100644
|
| --- a/base/BUILD.gn
|
| +++ b/base/BUILD.gn
|
| @@ -25,6 +25,10 @@ import("//build/nocompile.gni")
|
| import("//testing/test.gni")
|
|
|
| declare_args() {
|
| + # Override this value to give a specific build date.
|
| + # See //base/build_time.cc for more details.
|
| + override_build_date = "N/A"
|
| +
|
| # Whether to disable the handle verifier hooks.
|
| # Hookless parts of the handle verifier will still function.
|
| win_disable_handle_verifier_hooks = false
|
| @@ -969,6 +973,7 @@ component("base") {
|
| public_deps = [
|
| ":base_paths",
|
| ":base_static",
|
| + ":build_date",
|
| ":debugging_flags",
|
| ]
|
|
|
| @@ -1901,6 +1906,26 @@ test("base_unittests") {
|
| }
|
| }
|
|
|
| +action("build_date") {
|
| + script = "//build/write_build_date_header.py"
|
| + outputs = [
|
| + "$target_gen_dir/generated_build_date.h",
|
| + ]
|
| +
|
| + args =
|
| + [ rebase_path("$target_gen_dir/generated_build_date.h", root_build_dir) ]
|
| +
|
| + if (is_official_build) {
|
| + args += [ "official" ]
|
| + } else {
|
| + args += [ "default" ]
|
| + }
|
| +
|
| + if (override_build_date != "N/A") {
|
| + args += [ override_build_date ]
|
| + }
|
| +}
|
| +
|
| if (enable_nocompile_tests) {
|
| nocompile_test("base_nocompile_tests") {
|
| sources = [
|
|
|