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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/browser/ui/webui/omnibox/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/BUILD.gn
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..60494156048aa85f60ac07cef47fefcf2a6e961b
--- /dev/null
+++ b/chrome/browser/BUILD.gn
@@ -0,0 +1,60 @@
+# Copyright 2014 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.
+
+import("//tools/grit/grit_rule.gni")
+
+about_credits_file = "$target_gen_dir/about_credits.html"
+additional_modules_list_file =
+ "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt"
+
+# GYP version: chrome/chrome_resources.gyp:chrome_resources
+# (generate_browser_resources action)
+grit("resources") {
+ source = "browser_resources.grd"
+
+ omnibox_mojom_file = "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js"
+
+ grit_flags = [
+ "-E", "about_credits_file=" +
+ rebase_path(about_credits_file, root_build_dir),
+ "-E", "additional_modules_list_file=" +
+ rebase_path(additional_modules_list_file, root_build_dir),
+ "-E", "omnibox_mojom_file=" +
+ rebase_path(omnibox_mojom_file, root_build_dir),
+ ]
+
+ deps = [
+ ":about_credits",
+ ":chrome_internal_resources_gen",
+ "//chrome/browser/ui/webui/omnibox:mojo_bindings",
+ ]
+}
+
+# GYP version: chrome/chrome_resource.gyp:about_credits
+action("about_credits") {
+ script = "//tools/licenses.py"
+
+ # TODO(phajdan.jr): input dependencies so this can be regenerated
+ # automatically when one of the credits changes. The way this should work is
+ # that licenses.py should write a .d file listing the input dependencies (see
+ # "depfile" in GN).
+ outputs = [ about_credits_file ]
+
+ args = [
+ "credits",
+ rebase_path(about_credits_file, root_build_dir),
+ ]
+}
+
+# GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen
+# TODO(GYP) write internal action
+if (false) { #if (is_chrome_branded) {
+ action("chrome_internal_resources_gen") {
+ # TODO(GYP)
+ }
+} else {
+ group("chrome_internal_resources_gen") {
+ # Empty placeholder.
+ }
+}
« 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