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

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

Issue 1458653002: New build flag system, convert Google Now flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/ui/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
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("//chrome/common/features.gni")
5 import("//tools/grit/grit_rule.gni") 6 import("//tools/grit/grit_rule.gni")
6 7
7 grit("memory_internals_resources") { 8 grit("memory_internals_resources") {
8 source = "memory_internals_resources.grd" 9 source = "memory_internals_resources.grd"
10 defines = chrome_grit_defines
9 outputs = [ 11 outputs = [
10 "grit/memory_internals_resources.h", 12 "grit/memory_internals_resources.h",
11 "memory_internals_resources.pak", 13 "memory_internals_resources.pak",
12 ] 14 ]
13 output_dir = "$root_gen_dir/chrome" 15 output_dir = "$root_gen_dir/chrome"
14 } 16 }
15 17
16 grit("net_internals_resources") { 18 grit("net_internals_resources") {
17 source = "net_internals_resources.grd" 19 source = "net_internals_resources.grd"
20 defines = chrome_grit_defines
18 outputs = [ 21 outputs = [
19 "grit/net_internals_resources.h", 22 "grit/net_internals_resources.h",
20 "net_internals_resources.pak", 23 "net_internals_resources.pak",
21 ] 24 ]
22 output_dir = "$root_gen_dir/chrome" 25 output_dir = "$root_gen_dir/chrome"
23 } 26 }
24 27
25 grit("invalidations_resources") { 28 grit("invalidations_resources") {
26 source = "invalidations_resources.grd" 29 source = "invalidations_resources.grd"
30 defines = chrome_grit_defines
27 outputs = [ 31 outputs = [
28 "grit/invalidations_resources.h", 32 "grit/invalidations_resources.h",
29 "invalidations_resources.pak", 33 "invalidations_resources.pak",
30 ] 34 ]
31 output_dir = "$root_gen_dir/chrome" 35 output_dir = "$root_gen_dir/chrome"
32 } 36 }
33 37
34 grit("password_manager_internals_resources") { 38 grit("password_manager_internals_resources") {
35 source = "password_manager_internals_resources.grd" 39 source = "password_manager_internals_resources.grd"
40 defines = chrome_grit_defines
36 outputs = [ 41 outputs = [
37 "grit/password_manager_internals_resources.h", 42 "grit/password_manager_internals_resources.h",
38 "password_manager_internals_resources.pak", 43 "password_manager_internals_resources.pak",
39 ] 44 ]
40 output_dir = "$root_gen_dir/chrome" 45 output_dir = "$root_gen_dir/chrome"
41 } 46 }
42 47
43 grit("signin_internals_resources") { 48 grit("signin_internals_resources") {
44 source = "signin_internals_resources.grd" 49 source = "signin_internals_resources.grd"
50 defines = chrome_grit_defines
45 outputs = [ 51 outputs = [
46 "grit/signin_internals_resources.h", 52 "grit/signin_internals_resources.h",
47 "signin_internals_resources.pak", 53 "signin_internals_resources.pak",
48 ] 54 ]
49 output_dir = "$root_gen_dir/chrome" 55 output_dir = "$root_gen_dir/chrome"
50 } 56 }
51 57
52 grit("translate_internals_resources") { 58 grit("translate_internals_resources") {
53 source = "translate_internals_resources.grd" 59 source = "translate_internals_resources.grd"
60 defines = chrome_grit_defines
54 outputs = [ 61 outputs = [
55 "grit/translate_internals_resources.h", 62 "grit/translate_internals_resources.h",
56 "translate_internals_resources.pak", 63 "translate_internals_resources.pak",
57 ] 64 ]
58 output_dir = "$root_gen_dir/chrome" 65 output_dir = "$root_gen_dir/chrome"
59 } 66 }
60 67
61 # GYP version: copy command of chrome_extra_resources 68 # GYP version: copy command of chrome_extra_resources
62 copy("extension_resource_demo") { 69 copy("extension_resource_demo") {
63 sources = [ 70 sources = [
64 "extension_resource/demo/library.js", 71 "extension_resource/demo/library.js",
65 ] 72 ]
66 outputs = [ 73 outputs = [
67 "$root_out_dir/resources/extension/demo/library.js", 74 "$root_out_dir/resources/extension/demo/library.js",
68 ] 75 ]
69 } 76 }
70 77
71 if (!is_ios) { 78 if (!is_ios) {
72 grit("component_extension_resources") { 79 grit("component_extension_resources") {
73 source = "component_extension_resources.grd" 80 source = "component_extension_resources.grd"
81 defines = chrome_grit_defines
74 outputs = [ 82 outputs = [
75 "grit/component_extension_resources.h", 83 "grit/component_extension_resources.h",
76 "grit/component_extension_resources_map.cc", 84 "grit/component_extension_resources_map.cc",
77 "grit/component_extension_resources_map.h", 85 "grit/component_extension_resources_map.h",
78 "component_extension_resources.pak", 86 "component_extension_resources.pak",
79 ] 87 ]
80 output_dir = "$root_gen_dir/chrome" 88 output_dir = "$root_gen_dir/chrome"
81 } 89 }
82 90
83 grit("settings_resources") { 91 grit("settings_resources") {
84 source = "settings/settings_resources.grd" 92 source = "settings/settings_resources.grd"
93 defines = chrome_grit_defines
85 outputs = [ 94 outputs = [
86 "grit/settings_resources.h", 95 "grit/settings_resources.h",
87 "grit/settings_resources_map.cc", 96 "grit/settings_resources_map.cc",
88 "grit/settings_resources_map.h", 97 "grit/settings_resources_map.h",
89 "settings_resources.pak", 98 "settings_resources.pak",
90 ] 99 ]
91 output_dir = "$root_gen_dir/chrome" 100 output_dir = "$root_gen_dir/chrome"
92 } 101 }
93 102
94 grit("options_resources") { 103 grit("options_resources") {
95 source = "options_resources.grd" 104 source = "options_resources.grd"
105 defines = chrome_grit_defines
96 outputs = [ 106 outputs = [
97 "grit/options_resources.h", 107 "grit/options_resources.h",
98 "options_resources.pak", 108 "options_resources.pak",
99 ] 109 ]
100 output_dir = "$root_gen_dir/chrome" 110 output_dir = "$root_gen_dir/chrome"
101 } 111 }
102 112
103 grit("options_test_resources") { 113 grit("options_test_resources") {
104 source = "options_test_resources.grd" 114 source = "options_test_resources.grd"
115 defines = chrome_grit_defines
105 outputs = [ 116 outputs = [
106 "grit/options_test_resources.h", 117 "grit/options_test_resources.h",
107 "options_test_resources.pak", 118 "options_test_resources.pak",
108 ] 119 ]
109 output_dir = "$root_gen_dir/chrome" 120 output_dir = "$root_gen_dir/chrome"
110 } 121 }
111 122
112 grit("quota_internals_resources") { 123 grit("quota_internals_resources") {
113 source = "quota_internals_resources.grd" 124 source = "quota_internals_resources.grd"
125 defines = chrome_grit_defines
114 outputs = [ 126 outputs = [
115 "grit/quota_internals_resources.h", 127 "grit/quota_internals_resources.h",
116 "quota_internals_resources.pak", 128 "quota_internals_resources.pak",
117 ] 129 ]
118 output_dir = "$root_gen_dir/chrome" 130 output_dir = "$root_gen_dir/chrome"
119 } 131 }
120 132
121 grit("sync_file_system_internals_resources") { 133 grit("sync_file_system_internals_resources") {
122 source = "sync_file_system_internals_resources.grd" 134 source = "sync_file_system_internals_resources.grd"
135 defines = chrome_grit_defines
123 outputs = [ 136 outputs = [
124 "grit/sync_file_system_internals_resources.h", 137 "grit/sync_file_system_internals_resources.h",
125 "sync_file_system_internals_resources.pak", 138 "sync_file_system_internals_resources.pak",
126 ] 139 ]
127 output_dir = "$root_gen_dir/chrome" 140 output_dir = "$root_gen_dir/chrome"
128 } 141 }
129 } 142 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698