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("repacked_resources") { | |
sdefresne
2016/05/26 17:45:19
Rename the target "packed_resources" as it is the
Eugene But (OOO till 7-30)
2016/05/26 20:53:32
Done except I could not add testonly because of th
sdefresne
2016/05/28 13:04:01
Ack, this is because the "repack" template did not
| |
16 sources = [ | |
sdefresne
2016/05/26 17:45:19
testonly = true
Eugene But (OOO till 7-30)
2016/05/26 20:53:32
This gives me an error:
ERROR at //ios/web/test/B
| |
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/ios/web/test/resources.pak" | |
sdefresne
2016/05/26 17:45:19
See my previous comment about target_gen_dir, this
Eugene But (OOO till 7-30)
2016/05/26 20:53:32
Done.
| |
25 } | |
26 | |
27 grit("resources") { | |
28 source = "test_resources.grd" | |
sdefresne
2016/05/26 17:45:19
testonly = true
Eugene But (OOO till 7-30)
2016/05/26 20:53:32
Gives me same error:
ERROR at //ios/web/test/BUILD
| |
29 use_qualified_include = true | |
30 outputs = [ | |
31 "grit/test_resources.h", | |
32 "test_resources.pak", | |
33 ] | |
34 grit_flags = [ | |
35 "-E", | |
36 "root_out_dir=" + rebase_path(root_out_dir, root_build_dir), | |
sdefresne
2016/05/26 17:45:19
This should be "root_gen_dir=".
Eugene But (OOO till 7-30)
2016/05/26 20:53:32
Done.
| |
37 ] | |
38 output_dir = "$root_gen_dir/ios/web/test" | |
39 } | |
OLD | NEW |