OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 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 import("//tools/grit/grit_rule.gni") |
| 6 |
| 7 about_credits_file = "$target_gen_dir/about_credits.html" |
| 8 additional_modules_list_file = |
| 9 "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" |
| 10 |
| 11 # GYP version: chrome/chrome_resources.gyp:chrome_resources |
| 12 # (generate_browser_resources action) |
| 13 grit("resources") { |
| 14 source = "browser_resources.grd" |
| 15 |
| 16 omnibox_mojom_file = "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mo
jom.js" |
| 17 |
| 18 grit_flags = [ |
| 19 "-E", "about_credits_file=" + |
| 20 rebase_path(about_credits_file, root_build_dir), |
| 21 "-E", "additional_modules_list_file=" + |
| 22 rebase_path(additional_modules_list_file, root_build_dir), |
| 23 "-E", "omnibox_mojom_file=" + |
| 24 rebase_path(omnibox_mojom_file, root_build_dir), |
| 25 ] |
| 26 |
| 27 deps = [ |
| 28 ":about_credits", |
| 29 ":chrome_internal_resources_gen", |
| 30 "//chrome/browser/ui/webui/omnibox:mojo_bindings", |
| 31 ] |
| 32 } |
| 33 |
| 34 # GYP version: chrome/chrome_resource.gyp:about_credits |
| 35 action("about_credits") { |
| 36 script = "//tools/licenses.py" |
| 37 |
| 38 # TODO(phajdan.jr): input dependencies so this can be regenerated |
| 39 # automatically when one of the credits changes. The way this should work is |
| 40 # that licenses.py should write a .d file listing the input dependencies (see |
| 41 # "depfile" in GN). |
| 42 outputs = [ about_credits_file ] |
| 43 |
| 44 args = [ |
| 45 "credits", |
| 46 rebase_path(about_credits_file, root_build_dir), |
| 47 ] |
| 48 } |
| 49 |
| 50 # GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen |
| 51 # TODO(GYP) write internal action |
| 52 if (false) { #if (is_chrome_branded) { |
| 53 action("chrome_internal_resources_gen") { |
| 54 # TODO(GYP) |
| 55 } |
| 56 } else { |
| 57 group("chrome_internal_resources_gen") { |
| 58 # Empty placeholder. |
| 59 } |
| 60 } |
OLD | NEW |