Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 import("//tools/grit/grit_rule.gni") | |
| 7 import("//tools/grit/repack.gni") | |
| 6 | 8 |
| 7 mojom("mojo_bindings") { | 9 mojom("mojo_bindings") { |
| 8 sources = [ | 10 sources = [ |
| 9 "mojo_test.mojom", | 11 "mojo_test.mojom", |
| 10 ] | 12 ] |
| 11 } | 13 } |
| 14 | |
| 15 repack_and_bundle("packed_resources") { | |
| 16 sources = [ | |
|
sdefresne
2016/05/31 18:52:26
Please add testonly as it is now supported:
tes
Eugene But (OOO till 7-30)
2016/05/31 23:20:35
Done.
| |
| 17 "$root_gen_dir/ios/web/ios_web_resources.pak", | |
| 18 "$root_gen_dir/ios/web/test/test_resources.pak", | |
| 19 ] | |
| 20 deps = [ | |
| 21 ":resources", | |
| 22 "//ios/web:resources", | |
| 23 ] | |
| 24 output = "$target_gen_dir/resources.pack" | |
|
sdefresne
2016/05/31 18:52:26
This needs to be (.pak not .pack):
output = "$tar
Eugene But (OOO till 7-30)
2016/05/31 23:20:35
Done.
| |
| 25 bundle_output = "{{bundle_resources_dir}}/{{source_file_part}}" | |
| 26 } | |
| 27 | |
| 28 grit("resources") { | |
| 29 source = "test_resources.grd" | |
| 30 use_qualified_include = true | |
| 31 inputs = [ | |
| 32 "${root_gen_dir}/ios/web/test/mojo_test.mojom.js", | |
| 33 ] | |
| 34 deps = [ | |
| 35 ":mojo_bindings", | |
| 36 ] | |
| 37 outputs = [ | |
| 38 "grit/test_resources.h", | |
| 39 "test_resources.pak", | |
| 40 ] | |
| 41 grit_flags = [ | |
| 42 "-E", | |
| 43 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), | |
| 44 ] | |
| 45 } | |
| OLD | NEW |