summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/search/BUILD.gn
blob: affdfffc8ede506a88439ad1a72acf1c9713dd36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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"
  assert_js = "//ui/webui/resources/js/assert.js"
  customize_js = local_ntp_resources + "/customize.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,
    assert_js,
    customize_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(assert_js, root_build_dir),
    rebase_path(customize_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" ]
}