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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 # grit_flags = [ "-E", "foo=bar" ] # Optional extra flags. | 85 # grit_flags = [ "-E", "foo=bar" ] # Optional extra flags. |
86 # # You can also put deps here if the grit source depends on generated | 86 # # You can also put deps here if the grit source depends on generated |
87 # # files. | 87 # # files. |
88 # } | 88 # } |
89 import("//build/config/android/config.gni") | 89 import("//build/config/android/config.gni") |
90 import("//build/config/chrome_build.gni") | 90 import("//build/config/chrome_build.gni") |
91 import("//build/config/crypto.gni") | 91 import("//build/config/crypto.gni") |
92 import("//build/config/features.gni") | 92 import("//build/config/features.gni") |
93 import("//build/config/ui.gni") | 93 import("//build/config/ui.gni") |
94 import("//third_party/closure_compiler/closure_args.gni") | 94 import("//third_party/closure_compiler/closure_args.gni") |
95 import("//ui/base/ui_features.gni") | |
kjellander_webrtc
2016/12/01 07:01:40
I don't think it makes sense to have tools/grit de
| |
95 | 96 |
96 assert(!enable_resource_whitelist_generation || is_android, | 97 assert(!enable_resource_whitelist_generation || is_android, |
97 "resource whitelist generation only works on android") | 98 "resource whitelist generation only works on android") |
98 | 99 |
99 declare_args() { | 100 declare_args() { |
100 # When set, this will fork out to grit at GN-time to get all inputs | 101 # When set, this will fork out to grit at GN-time to get all inputs |
101 # referenced by the .grd file. | 102 # referenced by the .grd file. |
102 # | 103 # |
103 # Normal builds don't need this since proper incremental builds are handled | 104 # Normal builds don't need this since proper incremental builds are handled |
104 # by grit writing out the inputs in .d files at build-time. But for analyze | 105 # by grit writing out the inputs in .d files at build-time. But for analyze |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
496 if (defined(invoker.configs)) { | 497 if (defined(invoker.configs)) { |
497 configs += invoker.configs | 498 configs += invoker.configs |
498 } | 499 } |
499 | 500 |
500 if (defined(invoker.visibility)) { | 501 if (defined(invoker.visibility)) { |
501 visibility = invoker.visibility | 502 visibility = invoker.visibility |
502 } | 503 } |
503 output_name = grit_output_name | 504 output_name = grit_output_name |
504 } | 505 } |
505 } | 506 } |
OLD | NEW |