OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//tools/grit/repack.gni") |
6 | 7 |
7 if (is_android) { | 8 if (is_android) { |
8 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
9 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
10 } | 11 } |
11 | 12 |
12 source_set("app") { | 13 source_set("app") { |
13 visibility = [ | 14 visibility = [ |
14 ":*", | 15 ":*", |
15 "//blimp/client:*", | 16 "//blimp/client:*", |
(...skipping 28 matching lines...) Expand all Loading... |
44 "//blimp/client/public:public_headers", | 45 "//blimp/client/public:public_headers", |
45 "//blimp/client/support", | 46 "//blimp/client/support", |
46 "//blimp/common", | 47 "//blimp/common", |
47 "//blimp/common/proto", | 48 "//blimp/common/proto", |
48 "//blimp/net", | 49 "//blimp/net", |
49 "//cc", | 50 "//cc", |
50 "//gpu/command_buffer/client:gles2_implementation", | 51 "//gpu/command_buffer/client:gles2_implementation", |
51 "//gpu/skia_bindings", | 52 "//gpu/skia_bindings", |
52 "//net", | 53 "//net", |
53 "//third_party/libwebp", | 54 "//third_party/libwebp", |
| 55 "//ui/base:base", |
54 "//ui/gfx/geometry", | 56 "//ui/gfx/geometry", |
55 "//ui/gl", | 57 "//ui/gl", |
56 "//ui/gl/init", | 58 "//ui/gl/init", |
57 "//url:url", | 59 "//url:url", |
58 ] | 60 ] |
59 } | 61 } |
60 | 62 |
61 source_set("session") { | 63 source_set("session") { |
62 visibility = [ | 64 visibility = [ |
63 ":*", | 65 ":*", |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 "linux/blimp_client_context_delegate_linux.h", | 135 "linux/blimp_client_context_delegate_linux.h", |
134 "linux/blimp_display_manager.cc", | 136 "linux/blimp_display_manager.cc", |
135 "linux/blimp_display_manager.h", | 137 "linux/blimp_display_manager.h", |
136 "linux/blimp_display_manager_delegate_main.cc", | 138 "linux/blimp_display_manager_delegate_main.cc", |
137 "linux/blimp_display_manager_delegate_main.h", | 139 "linux/blimp_display_manager_delegate_main.h", |
138 "linux/blimp_main.cc", | 140 "linux/blimp_main.cc", |
139 ] | 141 ] |
140 | 142 |
141 deps = [ | 143 deps = [ |
142 ":app", | 144 ":app", |
| 145 ":shell_strings", |
143 "//base", | 146 "//base", |
144 "//blimp/client/core/compositor", | 147 "//blimp/client/core/compositor", |
| 148 "//blimp/client/core/resources", |
145 "//blimp/client/core/session", | 149 "//blimp/client/core/session", |
146 "//blimp/client/core/settings:settings", | 150 "//blimp/client/core/settings:settings", |
147 "//blimp/net", | 151 "//blimp/net", |
148 "//components/pref_registry", | 152 "//components/pref_registry", |
149 "//components/prefs", | 153 "//components/prefs", |
150 "//net", | 154 "//net", |
151 "//services/service_manager/public/cpp", | 155 "//services/service_manager/public/cpp", |
152 | 156 |
153 # TODO(khushalsagar|scottmg): Remove this dependency from browser to | 157 # TODO(khushalsagar|scottmg): Remove this dependency from browser to |
154 # blink. See https://crbug.com/608114. | 158 # blink. See https://crbug.com/608114. |
155 "//third_party/WebKit/public:blink", | 159 "//third_party/WebKit/public:blink", |
156 "//ui/events/platform/x11", | 160 "//ui/events/platform/x11", |
157 "//ui/platform_window", | 161 "//ui/platform_window", |
158 "//ui/platform_window/x11", | 162 "//ui/platform_window/x11", |
159 ] | 163 ] |
160 | 164 |
161 public_configs = [ "//build/config/linux:x11" ] | 165 public_configs = [ "//build/config/linux:x11" ] |
162 public_deps = [ | 166 public_deps = [ |
163 "//blimp/client/core/contents", | 167 "//blimp/client/core/contents", |
164 "//ui/events/platform/x11", | 168 "//ui/events/platform/x11", |
165 ] | 169 ] |
166 } | 170 } |
167 } | 171 } |
168 | 172 |
| 173 # Resources file for linux shell. |
| 174 repack("shell_strings") { |
| 175 sources = [ |
| 176 "$root_gen_dir/blimp/client/core/resources/blimp_strings_en-US.pak", |
| 177 ] |
| 178 |
| 179 deps = [ |
| 180 "//blimp/client/public/resources:shell_strings", |
| 181 ] |
| 182 |
| 183 output = "$root_out_dir/blimp_shell.pak" |
| 184 } |
| 185 |
169 if (is_android) { | 186 if (is_android) { |
170 declare_args() { | 187 declare_args() { |
171 # Package name used in the manifest for the Blimp APK. | 188 # Package name used in the manifest for the Blimp APK. |
172 blimp_package_name = "org.chromium.blimp" | 189 blimp_package_name = "org.chromium.blimp" |
173 } | 190 } |
174 | 191 |
175 manifest_package = blimp_package_name | 192 manifest_package = blimp_package_name |
176 blimp_apk_manifest = "$target_gen_dir/blimp_apk_manifest/AndroidManifest.xml" | 193 blimp_apk_manifest = "$target_gen_dir/blimp_apk_manifest/AndroidManifest.xml" |
177 blimp_test_apk_manifest = | 194 blimp_test_apk_manifest = |
178 "$target_gen_dir/blimp_test_apk_manifest/AndroidManifest.xml" | 195 "$target_gen_dir/blimp_test_apk_manifest/AndroidManifest.xml" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 instrumentation_test_apk("blimp_test_apk") { | 415 instrumentation_test_apk("blimp_test_apk") { |
399 apk_name = "BlimpTest" | 416 apk_name = "BlimpTest" |
400 apk_under_test = ":blimp_apk" | 417 apk_under_test = ":blimp_apk" |
401 android_manifest = blimp_test_apk_manifest | 418 android_manifest = blimp_test_apk_manifest |
402 android_manifest_dep = ":blimp_test_apk_manifest" | 419 android_manifest_dep = ":blimp_test_apk_manifest" |
403 deps = [ | 420 deps = [ |
404 ":blimp_test_java", | 421 ":blimp_test_java", |
405 ] | 422 ] |
406 } | 423 } |
407 } | 424 } |
OLD | NEW |