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/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
6 import("//mojo/public/mojo_application_manifest.gni") | 6 import("//mojo/public/mojo_application_manifest.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 import("//tools/grit/repack.gni") |
8 | 9 |
9 group("all") { | 10 group("all") { |
10 testonly = true | 11 testonly = true |
11 data_deps = [ | 12 data_deps = [ |
12 ":navigation", | 13 ":navigation", |
13 ":navigation_unittests", | 14 ":navigation_unittests", |
14 ] | 15 ] |
15 } | 16 } |
16 | 17 |
17 executable("navigation") { | 18 executable("navigation") { |
18 testonly = true | 19 testonly = true |
19 sources = [ | 20 sources = [ |
20 "main.cc", | 21 "main.cc", |
21 ] | 22 ] |
22 | 23 |
23 deps = [ | 24 deps = [ |
| 25 ":lib", |
| 26 ":pak", |
24 "//base", | 27 "//base", |
25 "//build/win:default_exe_manifest", | 28 "//build/win:default_exe_manifest", |
| 29 "//components/mus/public/cpp", |
26 "//content", | 30 "//content", |
27 "//content/public/app:both", | 31 "//content/public/app:both", |
28 "//mojo/public/cpp/bindings", | 32 "//mojo/public/cpp/bindings", |
29 "//services/navigation/content_client", | 33 "//services/navigation/content_client", |
30 "//services/shell/runner:init", | 34 "//services/shell/runner:init", |
31 "//services/shell/runner/common", | 35 "//services/shell/runner/common", |
| 36 "//ui/views", |
| 37 "//ui/views/controls/webview", |
| 38 "//ui/views/mus", |
32 ] | 39 ] |
33 | 40 |
34 data_deps = [ | 41 data_deps = [ |
35 ":manifest", | 42 ":manifest", |
36 "//mash/wm", | 43 "//mash/wm", |
37 ] | 44 ] |
38 | 45 |
39 if (is_win) { | 46 if (is_win) { |
40 configs -= [ "//build/config/win:console" ] | 47 configs -= [ "//build/config/win:console" ] |
41 configs += [ "//build/config/win:windowed" ] | 48 configs += [ "//build/config/win:windowed" ] |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 type = "exe" | 92 type = "exe" |
86 application_name = "navigation" | 93 application_name = "navigation" |
87 source = "manifest.json" | 94 source = "manifest.json" |
88 } | 95 } |
89 | 96 |
90 mojo_application_manifest("unittest_manifest") { | 97 mojo_application_manifest("unittest_manifest") { |
91 type = "exe" | 98 type = "exe" |
92 application_name = "navigation_unittests" | 99 application_name = "navigation_unittests" |
93 source = "unittest_manifest.json" | 100 source = "unittest_manifest.json" |
94 } | 101 } |
| 102 |
| 103 repack("pak") { |
| 104 sources = [ |
| 105 "$root_gen_dir/blink/devtools_resources.pak", |
| 106 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak"
, |
| 107 "$root_gen_dir/blink/public/resources/blink_resources.pak", |
| 108 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", |
| 109 "$root_gen_dir/content/app/strings/content_strings_en-US.pak", |
| 110 "$root_gen_dir/content/browser/tracing/tracing_resources.pak", |
| 111 "$root_gen_dir/content/content_resources.pak", |
| 112 "$root_gen_dir/content/shell/shell_resources.pak", |
| 113 "$root_gen_dir/net/net_resources.pak", |
| 114 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
| 115 "$root_gen_dir/ui/resources/webui_resources.pak", |
| 116 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
| 117 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
| 118 "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak", |
| 119 ] |
| 120 |
| 121 deps = [ |
| 122 "//content:resources", |
| 123 "//content/app/resources", |
| 124 "//content/app/strings", |
| 125 "//content/browser/devtools:resources", |
| 126 "//content/browser/tracing:resources", |
| 127 "//content/shell:resources", |
| 128 "//net:net_resources", |
| 129 "//third_party/WebKit/public:image_resources", |
| 130 "//third_party/WebKit/public:resources", |
| 131 "//ui/resources", |
| 132 "//ui/strings", |
| 133 "//ui/views/resources", |
| 134 ] |
| 135 |
| 136 output = "$root_out_dir/navigation.pak" |
| 137 } |
OLD | NEW |