OLD | NEW |
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 # Instantiate grit. This will produce a script target to run grit, and a | 5 # Instantiate grit. This will produce a script target to run grit, and a |
6 # static library that compiles the .cc files. | 6 # static library that compiles the .cc files. |
7 # | 7 # |
8 # Parameters | 8 # Parameters |
9 # | 9 # |
10 # source (required) | 10 # source (required) |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 # outputs = [ | 72 # outputs = [ |
73 # "foo_strings.h", | 73 # "foo_strings.h", |
74 # "foo_strings.pak", | 74 # "foo_strings.pak", |
75 # ] | 75 # ] |
76 # | 76 # |
77 # grit_flags = [ "-E", "foo=bar" ] # Optional extra flags. | 77 # grit_flags = [ "-E", "foo=bar" ] # Optional extra flags. |
78 # # You can also put deps here if the grit source depends on generated | 78 # # You can also put deps here if the grit source depends on generated |
79 # # files. | 79 # # files. |
80 # } | 80 # } |
81 import("//build/config/chrome_build.gni") | 81 import("//build/config/chrome_build.gni") |
| 82 import("//third_party/WebKit/Source/config.gni") |
82 import("//build/config/crypto.gni") | 83 import("//build/config/crypto.gni") |
83 import("//build/config/features.gni") | 84 import("//build/config/features.gni") |
84 import("//build/config/ui.gni") | 85 import("//build/config/ui.gni") |
85 | 86 |
86 grit_defines = [] | 87 grit_defines = [] |
87 | 88 |
88 # Mac and iOS want Title Case strings. | 89 # Mac and iOS want Title Case strings. |
89 use_titlecase_in_grd_files = is_mac || is_ios | 90 use_titlecase_in_grd_files = is_mac || is_ios |
90 if (use_titlecase_in_grd_files) { | 91 if (use_titlecase_in_grd_files) { |
91 grit_defines += [ | 92 grit_defines += [ |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 "enable_settings_app", | 244 "enable_settings_app", |
244 ] | 245 ] |
245 } | 246 } |
246 if (enable_google_now) { | 247 if (enable_google_now) { |
247 grit_defines += [ | 248 grit_defines += [ |
248 "-D", | 249 "-D", |
249 "enable_google_now", | 250 "enable_google_now", |
250 ] | 251 ] |
251 } | 252 } |
252 | 253 |
253 # Note: use_concatenated_impulse_responses is omitted. It is never used and | 254 if (use_concatenated_impulse_responses) { |
254 # should probably be removed from GYP build. | 255 grit_defines += [ |
| 256 "-D", |
| 257 "use_concatenated_impulse_responses", |
| 258 ] |
| 259 } |
| 260 |
255 if (enable_webrtc) { | 261 if (enable_webrtc) { |
256 grit_defines += [ | 262 grit_defines += [ |
257 "-D", | 263 "-D", |
258 "enable_webrtc", | 264 "enable_webrtc", |
259 ] | 265 ] |
260 } | 266 } |
261 if (enable_hangout_services_extension) { | 267 if (enable_hangout_services_extension) { |
262 grit_defines += [ | 268 grit_defines += [ |
263 "-D", | 269 "-D", |
264 "enable_hangout_services_extension", | 270 "enable_hangout_services_extension", |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 if (defined(invoker.configs)) { | 479 if (defined(invoker.configs)) { |
474 configs += invoker.configs | 480 configs += invoker.configs |
475 } | 481 } |
476 | 482 |
477 if (defined(invoker.visibility)) { | 483 if (defined(invoker.visibility)) { |
478 visibility = invoker.visibility | 484 visibility = invoker.visibility |
479 } | 485 } |
480 output_name = grit_output_name | 486 output_name = grit_output_name |
481 } | 487 } |
482 } | 488 } |
OLD | NEW |