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

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

Issue 362583002: Add more GN deps to the build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//tools/grit/grit_rule.gni") 5 import("//tools/grit/grit_rule.gni")
6 6
7 # GYP version: chrome/chrome_resources.gyp:chrome_strings 7 # GYP version: chrome/chrome_resources.gyp:chrome_strings
8 # (generate_generated_resources action) 8 # (generate_generated_resources action)
9 grit("generated_resources") { 9 grit("generated_resources") {
10 source = "generated_resources.grd" 10 source = "generated_resources.grd"
11 } 11 }
12 12
13 # GYP version: chrome/chrome_resources.gyp:chrome_strings_map
14 action("make_generated_resources_map") {
15 # Targets should depend on generated_resources_map instead.
16 visibility = ":generated_resources_map"
17
18 script = "//chrome/browser/metrics/variations/generate_resources_map.py"
19
20 source_prereqs = [ "$target_gen_dir/grit/generated_resources.h" ]
21 outputs = [ "$target_gen_dir/generated_resources_map.cc" ]
22
23 args = rebase_path(source_prereqs, root_build_dir) +
24 rebase_path(outputs, root_build_dir)
25
26 deps = [ ":generated_resources" ]
27 }
28
29 # Collect the generated .cc file from make_generated_resources_map and put it
30 # in a source set so targets that depend on it will link the source rather than
31 # specifying it manually. This doesn't happen in the GYP build.
32 source_set("generated_resources_map") {
33 sources = get_target_outputs(":make_generated_resources_map")
34 }
35
13 # GYP version: chrome/chrome_resources.gyp:chrome_strings 36 # GYP version: chrome/chrome_resources.gyp:chrome_strings
14 # (generate_google_chrome_strings action) 37 # (generate_google_chrome_strings action)
15 grit("google_chrome_strings") { 38 grit("google_chrome_strings") {
16 source = "google_chrome_strings.grd" 39 source = "google_chrome_strings.grd"
17 } 40 }
18 41
19 # GYP version: chrome/chrome_resources.gyp:chrome_strings 42 # GYP version: chrome/chrome_resources.gyp:chrome_strings
20 # (generate_chromium_strings action) 43 # (generate_chromium_strings action)
21 grit("chromium_strings") { 44 grit("chromium_strings") {
22 source = "chromium_strings.grd" 45 source = "chromium_strings.grd"
23 } 46 }
OLDNEW
« no previous file with comments | « build/secondary/third_party/cacheinvalidation/src/google/cacheinvalidation/BUILD.gn ('k') | chrome/app/theme/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698