blob: 857ff10020c8b00c31464b887d839b7d30e5d6b5 [file] [log] [blame]
Nico Weber967d1f12018-08-17 02:42:021# Copyright 2018 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4#
5# Defines the build_timestamp variable.
6
7import("//build/util/lastchange.gni")
8
9if (is_official_build) {
10 official_name = "official"
11} else {
12 official_name = "default"
13}
14
15# This will return a timestamp that's different each day (official builds)
16# of each month (regular builds). Just rely on gn rerunning due to other
17# changes to keep this up to date. (Bots run gn on each build, and for devs
18# the timestamp being 100% accurate doesn't matter.)
19# See compute_build_timestamp.py for tradeoffs for picking the timestamp.
20build_timestamp = exec_script("compute_build_timestamp.py",
21 [ official_name ],
22 "trim string",
23 [ lastchange_file ])