| 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") | |
| 9 | 8 |
| 10 group("all") { | 9 group("all") { |
| 11 testonly = true | 10 testonly = true |
| 12 data_deps = [ | 11 data_deps = [ |
| 13 ":navigation", | 12 ":navigation", |
| 14 ":navigation_unittests", | 13 ":navigation_unittests", |
| 15 ] | 14 ] |
| 16 } | 15 } |
| 17 | 16 |
| 18 executable("navigation") { | 17 executable("navigation") { |
| 19 testonly = true | 18 testonly = true |
| 20 sources = [ | 19 sources = [ |
| 21 "main.cc", | 20 "main.cc", |
| 22 ] | 21 ] |
| 23 | 22 |
| 24 deps = [ | 23 deps = [ |
| 25 ":lib", | |
| 26 ":pak", | |
| 27 "//base", | 24 "//base", |
| 28 "//build/win:default_exe_manifest", | 25 "//build/win:default_exe_manifest", |
| 29 "//components/mus/public/cpp", | |
| 30 "//content", | 26 "//content", |
| 31 "//content/public/app:both", | 27 "//content/public/app:both", |
| 32 "//mojo/public/cpp/bindings", | 28 "//mojo/public/cpp/bindings", |
| 33 "//services/navigation/content_client", | 29 "//services/navigation/content_client", |
| 34 "//services/shell/runner:init", | 30 "//services/shell/runner:init", |
| 35 "//services/shell/runner/common", | 31 "//services/shell/runner/common", |
| 36 "//ui/views", | |
| 37 "//ui/views/controls/webview", | |
| 38 "//ui/views/mus", | |
| 39 ] | 32 ] |
| 40 | 33 |
| 41 data_deps = [ | 34 data_deps = [ |
| 42 ":manifest", | 35 ":manifest", |
| 43 "//mash/wm", | 36 "//mash/wm", |
| 44 ] | 37 ] |
| 45 | 38 |
| 46 if (is_win) { | 39 if (is_win) { |
| 47 configs -= [ "//build/config/win:console" ] | 40 configs -= [ "//build/config/win:console" ] |
| 48 configs += [ "//build/config/win:windowed" ] | 41 configs += [ "//build/config/win:windowed" ] |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 type = "exe" | 85 type = "exe" |
| 93 application_name = "navigation" | 86 application_name = "navigation" |
| 94 source = "manifest.json" | 87 source = "manifest.json" |
| 95 } | 88 } |
| 96 | 89 |
| 97 mojo_application_manifest("unittest_manifest") { | 90 mojo_application_manifest("unittest_manifest") { |
| 98 type = "exe" | 91 type = "exe" |
| 99 application_name = "navigation_unittests" | 92 application_name = "navigation_unittests" |
| 100 source = "unittest_manifest.json" | 93 source = "unittest_manifest.json" |
| 101 } | 94 } |
| 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 |