Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Side by Side Diff: ios/web/test/BUILD.gn

Issue 2339213003: Reland of Refactor the various locale_paks() templates to be more shared (Closed)
Patch Set: Fix output path of the repack template on iOS. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/chrome/today_extension/BUILD.gn ('k') | tools/grit/repack.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 = [
11 "mojo_test.mojom", 11 "mojo_test.mojom",
12 ] 12 ]
13 13
14 use_new_wrapper_types = false 14 use_new_wrapper_types = false
15 } 15 }
16 16
17 repack_and_bundle("packed_resources") { 17 repack("packed_resources") {
18 testonly = true 18 testonly = true
19 sources = [ 19 sources = [
20 "$root_gen_dir/ios/web/ios_web_resources.pak", 20 "$root_gen_dir/ios/web/ios_web_resources.pak",
21 "$root_gen_dir/ios/web/test/test_resources.pak", 21 "$root_gen_dir/ios/web/test/test_resources.pak",
22 ] 22 ]
23 deps = [ 23 deps = [
24 ":resources", 24 ":resources",
25 "//ios/web:resources", 25 "//ios/web:resources",
26 ] 26 ]
27 output = "$target_gen_dir/resources.pak" 27 output = "$target_gen_dir/resources.pak"
28 bundle_output = "{{bundle_resources_dir}}/{{source_file_part}}" 28 copy_data_to_bundle = true
29 } 29 }
30 30
31 grit("resources") { 31 grit("resources") {
32 source = "test_resources.grd" 32 source = "test_resources.grd"
33 use_qualified_include = true 33 use_qualified_include = true
34 inputs = [ 34 inputs = [
35 "${root_gen_dir}/ios/web/test/mojo_test.mojom.js", 35 "${root_gen_dir}/ios/web/test/mojo_test.mojom.js",
36 ] 36 ]
37 deps = [ 37 deps = [
38 ":mojo_bindings", 38 ":mojo_bindings",
39 ] 39 ]
40 outputs = [ 40 outputs = [
41 "grit/test_resources.h", 41 "grit/test_resources.h",
42 "test_resources.pak", 42 "test_resources.pak",
43 ] 43 ]
44 grit_flags = [ 44 grit_flags = [
45 "-E", 45 "-E",
46 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), 46 "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
47 ] 47 ]
48 } 48 }
OLDNEW
« no previous file with comments | « ios/chrome/today_extension/BUILD.gn ('k') | tools/grit/repack.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698