| 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") | |
| 83 import("//build/config/crypto.gni") | 82 import("//build/config/crypto.gni") |
| 84 import("//build/config/features.gni") | 83 import("//build/config/features.gni") |
| 85 import("//build/config/ui.gni") | 84 import("//build/config/ui.gni") |
| 86 | 85 |
| 87 grit_defines = [] | 86 grit_defines = [] |
| 88 | 87 |
| 89 # Mac and iOS want Title Case strings. | 88 # Mac and iOS want Title Case strings. |
| 90 use_titlecase_in_grd_files = is_mac || is_ios | 89 use_titlecase_in_grd_files = is_mac || is_ios |
| 91 if (use_titlecase_in_grd_files) { | 90 if (use_titlecase_in_grd_files) { |
| 92 grit_defines += [ | 91 grit_defines += [ |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 "enable_settings_app", | 243 "enable_settings_app", |
| 245 ] | 244 ] |
| 246 } | 245 } |
| 247 if (enable_google_now) { | 246 if (enable_google_now) { |
| 248 grit_defines += [ | 247 grit_defines += [ |
| 249 "-D", | 248 "-D", |
| 250 "enable_google_now", | 249 "enable_google_now", |
| 251 ] | 250 ] |
| 252 } | 251 } |
| 253 | 252 |
| 254 if (use_concatenated_impulse_responses) { | |
| 255 grit_defines += [ | |
| 256 "-D", | |
| 257 "use_concatenated_impulse_responses", | |
| 258 ] | |
| 259 } | |
| 260 | |
| 261 if (enable_webrtc) { | 253 if (enable_webrtc) { |
| 262 grit_defines += [ | 254 grit_defines += [ |
| 263 "-D", | 255 "-D", |
| 264 "enable_webrtc", | 256 "enable_webrtc", |
| 265 ] | 257 ] |
| 266 } | 258 } |
| 267 if (enable_hangout_services_extension) { | 259 if (enable_hangout_services_extension) { |
| 268 grit_defines += [ | 260 grit_defines += [ |
| 269 "-D", | 261 "-D", |
| 270 "enable_hangout_services_extension", | 262 "enable_hangout_services_extension", |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 if (defined(invoker.configs)) { | 471 if (defined(invoker.configs)) { |
| 480 configs += invoker.configs | 472 configs += invoker.configs |
| 481 } | 473 } |
| 482 | 474 |
| 483 if (defined(invoker.visibility)) { | 475 if (defined(invoker.visibility)) { |
| 484 visibility = invoker.visibility | 476 visibility = invoker.visibility |
| 485 } | 477 } |
| 486 output_name = grit_output_name | 478 output_name = grit_output_name |
| 487 } | 479 } |
| 488 } | 480 } |
| OLD | NEW |