Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: chrome/browser/BUILD.gn

Issue 335053002: Add GN build for some chrome common, chrome net, and resources targets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix sorting Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/browser/ui/webui/omnibox/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/browser/ui/webui/omnibox/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698