blob: b9a569ff93c48fb74893c6f3b11cecfe34d9dc9b [file] [log] [blame]
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
local_ntp_resources = "//chrome/browser/resources/local_ntp"
action("local_ntp_code_generate") {
script = "tools/generate_integrity_header.py"
header_path = "$target_gen_dir/local_ntp_js_integrity.h"
animations_js = local_ntp_resources + "/animations.js"
custom_bg_js = local_ntp_resources + "/custom_backgrounds.js"
doodles_js = local_ntp_resources + "/doodles.js"
local_ntp_js = local_ntp_resources + "/local_ntp.js"
utils_js = local_ntp_resources + "/utils.js"
voice_js = local_ntp_resources + "/voice.js"
inputs = [
animations_js,
custom_bg_js,
doodles_js,
local_ntp_js,
utils_js,
voice_js,
]
outputs = [
header_path,
]
args = [
"--output_path=" + rebase_path(header_path, root_build_dir),
rebase_path(animations_js, root_build_dir),
rebase_path(custom_bg_js, root_build_dir),
rebase_path(doodles_js, root_build_dir),
rebase_path(local_ntp_js, root_build_dir),
rebase_path(utils_js, root_build_dir),
rebase_path(voice_js, root_build_dir),
]
}
source_set("generated") {
sources = get_target_outputs(":local_ntp_code_generate")
public_deps = [
":local_ntp_code_generate",
]
}