# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file is used to inject fixed dummy commit for commit independent
# reproducible binaries.
import ("//build/config/ohos/config.gni")
declare_args() {
use_dummy_lastchange = !is_official_build
}
if (use_dummy_lastchange) {
lastchange_file = "//build/util/LASTCHANGE.dummy"
} else {
lastchange_file = "//build/util/LASTCHANGE"
}
if (is_arkweb && is_release_build) {
exec_script("lastchange.py",
[
"-o",
rebase_path(lastchange_file),
])
}