| 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") | 6 import("//tools/grit/grit_rule.gni") |
| 7 import("//tools/grit/repack.gni") | 7 import("//tools/grit/repack.gni") |
| 8 | 8 |
| 9 mojom("mojo_bindings") { | 9 mojom("mojo_bindings") { |
| 10 sources = [ | 10 sources = [ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 deps = [ | 21 deps = [ |
| 22 ":resources", | 22 ":resources", |
| 23 "//ios/web:resources", | 23 "//ios/web:resources", |
| 24 ] | 24 ] |
| 25 output = "$target_gen_dir/resources.pak" | 25 output = "$target_gen_dir/resources.pak" |
| 26 copy_data_to_bundle = true | 26 copy_data_to_bundle = true |
| 27 } | 27 } |
| 28 | 28 |
| 29 grit("resources") { | 29 grit("resources") { |
| 30 source = "test_resources.grd" | 30 source = "test_resources.grd" |
| 31 use_qualified_include = true | |
| 32 inputs = [ | 31 inputs = [ |
| 33 "${root_gen_dir}/ios/web/test/mojo_test.mojom.js", | 32 "${root_gen_dir}/ios/web/test/mojo_test.mojom.js", |
| 34 ] | 33 ] |
| 35 deps = [ | 34 deps = [ |
| 36 ":mojo_bindings", | 35 ":mojo_bindings", |
| 37 ] | 36 ] |
| 38 outputs = [ | 37 outputs = [ |
| 39 "grit/test_resources.h", | 38 "grit/test_resources.h", |
| 40 "test_resources.pak", | 39 "test_resources.pak", |
| 41 ] | 40 ] |
| 42 grit_flags = [ | 41 grit_flags = [ |
| 43 "-E", | 42 "-E", |
| 44 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), | 43 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), |
| 45 ] | 44 ] |
| 46 } | 45 } |
| OLD | NEW |