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

Side by Side Diff: blimp/client/BUILD.gn

Issue 1450423002: Add glue between the client and engine for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blimp_ipc2
Patch Set: Fixed build break. Removed switches from compositor setup. Created 5 years 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
OLDNEW
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 if (is_android) { 5 if (is_android) {
6 import("//build/config/android/config.gni") 6 import("//build/config/android/config.gni")
7 import("//build/config/android/rules.gni") 7 import("//build/config/android/rules.gni")
8 } 8 }
9 9
10 shared_library("blimp_client") { 10 component("blimp_client") {
11 sources = [ 11 sources = [
12 "blimp_client_export.h",
12 "compositor/blimp_compositor.cc", 13 "compositor/blimp_compositor.cc",
13 "compositor/blimp_compositor.h", 14 "compositor/blimp_compositor.h",
14 "compositor/blimp_context_provider.cc", 15 "compositor/blimp_context_provider.cc",
15 "compositor/blimp_context_provider.h", 16 "compositor/blimp_context_provider.h",
16 "compositor/blimp_layer_tree_settings.cc", 17 "compositor/blimp_layer_tree_settings.cc",
17 "compositor/blimp_layer_tree_settings.h", 18 "compositor/blimp_layer_tree_settings.h",
18 "compositor/blimp_output_surface.cc", 19 "compositor/blimp_output_surface.cc",
19 "compositor/blimp_output_surface.h", 20 "compositor/blimp_output_surface.h",
21 "compositor/render_widget_message_processor.cc",
22 "compositor/render_widget_message_processor.h",
20 "compositor/test/dummy_layer_driver.cc", 23 "compositor/test/dummy_layer_driver.cc",
21 "compositor/test/dummy_layer_driver.h", 24 "compositor/test/dummy_layer_driver.h",
25 ]
22 26
23 # TODO(dtrainor): Remove this once the LayerTreeHost settings for Blimp 27 defines = [ "BLIMP_CLIENT_IMPLEMENTATION=1" ]
24 # are finalized or are pushed from the server component. See
25 # crbug.com/527655.
26 "../../content/public/common/content_switches.cc",
27 "../../ui/native_theme/native_theme_switches.cc",
28 ]
29 28
30 deps = [ 29 deps = [
31 "//base", 30 "//base",
32 "//blimp/common:blimp_common", 31 "//blimp/common:blimp_common",
33 "//blimp/common/proto", 32 "//blimp/common/proto",
33 "//blimp/net:blimp_net",
34 "//cc", 34 "//cc",
35 "//cc/proto",
35 "//gpu/command_buffer/client:gl_in_process_context", 36 "//gpu/command_buffer/client:gl_in_process_context",
36 "//gpu/command_buffer/common:gles2_utils", 37 "//gpu/command_buffer/common:gles2_utils",
37 "//gpu/skia_bindings", 38 "//gpu/skia_bindings",
38 "//ui/gfx/geometry", 39 "//ui/gfx/geometry",
39 "//ui/gl", 40 "//ui/gl",
40 "//url:url", 41 "//url:url",
41 ] 42 ]
43 }
42 44
43 if (is_android) { 45 source_set("unit_tests") {
44 sources += [ 46 testonly = true
45 "android/blimp_jni_registrar.cc",
46 "android/blimp_jni_registrar.h",
47 "android/blimp_library_loader.cc",
48 "android/blimp_library_loader.h",
49 "android/blimp_view.cc",
50 "android/blimp_view.h",
51 "android/toolbar.cc",
52 "android/toolbar.h",
53 "compositor/blimp_compositor_android.cc",
54 "compositor/blimp_compositor_android.h",
55 ]
56 47
57 deps += [ ":jni_headers" ] 48 sources = [
49 "compositor/render_widget_message_processor_unittest.cc",
50 ]
58 51
59 libs = [ "android" ] 52 deps = [
60 } 53 ":blimp_client",
54 "//base",
55 "//base/test:run_all_unittests",
56 "//base/test:test_support",
57 "//blimp/common/proto",
58 "//blimp/net:blimp_net",
59 "//cc/proto",
60 "//testing/gmock",
61 "//testing/gtest",
62 ]
61 } 63 }
62 64
63 if (is_android) { 65 if (is_android) {
64 manifest_package = "org.chromium.blimp" 66 manifest_package = "org.chromium.blimp"
65 blimp_apk_manifest = "$target_gen_dir/blimp_apk_manifest/AndroidManifest.xml" 67 blimp_apk_manifest = "$target_gen_dir/blimp_apk_manifest/AndroidManifest.xml"
66 blimp_test_apk_manifest = 68 blimp_test_apk_manifest =
67 "$target_gen_dir/blimp_test_apk_manifest/AndroidManifest.xml" 69 "$target_gen_dir/blimp_test_apk_manifest/AndroidManifest.xml"
68 70
69 jinja_variables = [ "manifest_package=$manifest_package" ] 71 jinja_variables = [ "manifest_package=$manifest_package" ]
70 72
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 "//base:base_java_test_support", 184 "//base:base_java_test_support",
183 google_play_services_library, 185 google_play_services_library,
184 ] 186 ]
185 187
186 java_files = [ 188 java_files = [
187 "android/javatests/src/org/chromium/blimp/auth/MockTokenSource.java", 189 "android/javatests/src/org/chromium/blimp/auth/MockTokenSource.java",
188 "android/javatests/src/org/chromium/blimp/auth/RetryingTokenSourceTest.jav a", 190 "android/javatests/src/org/chromium/blimp/auth/RetryingTokenSourceTest.jav a",
189 ] 191 ]
190 } 192 }
191 193
194 shared_library("blimp_client_android") {
195 deps = [
196 ":blimp_client",
197 ":jni_headers",
198 "//base",
199 "//skia",
200 "//ui/gfx/geometry",
201 "//ui/gl",
202 "//url:url",
203 ]
204
205 sources = [
206 "android/blimp_jni_registrar.cc",
207 "android/blimp_jni_registrar.h",
208 "android/blimp_library_loader.cc",
209 "android/blimp_library_loader.h",
210 "android/blimp_view.cc",
211 "android/blimp_view.h",
212 "android/toolbar.cc",
213 "android/toolbar.h",
214 "compositor/blimp_compositor_android.cc",
215 "compositor/blimp_compositor_android.h",
216 ]
217
218 libs = [ "android" ]
219 }
220
192 android_apk("blimp_apk") { 221 android_apk("blimp_apk") {
193 deps = [ 222 deps = [
194 ":blimp_apk_manifest", 223 ":blimp_apk_manifest",
195 ":blimp_client", 224 ":blimp_client_android",
196 ":blimp_java",
197 ":blimp_java", 225 ":blimp_java",
198 ":blimp_java_resources", 226 ":blimp_java_resources",
199 "//base:base_java", 227 "//base:base_java",
200 google_play_services_resources, 228 google_play_services_resources,
201 ] 229 ]
202 apk_name = "Blimp" 230 apk_name = "Blimp"
203 android_manifest = blimp_apk_manifest 231 android_manifest = blimp_apk_manifest
204 native_libs = [ "libblimp_client.so" ] 232 native_libs = [ "libblimp_client_android.so" ]
205 } 233 }
206 234
207 instrumentation_test_apk("blimp_test_apk") { 235 instrumentation_test_apk("blimp_test_apk") {
208 apk_name = "BlimpTest" 236 apk_name = "BlimpTest"
209 apk_under_test = ":blimp_apk" 237 apk_under_test = ":blimp_apk"
210 android_manifest = blimp_test_apk_manifest 238 android_manifest = blimp_test_apk_manifest
211 deps = [ 239 deps = [
212 ":blimp_test_apk_manifest", 240 ":blimp_test_apk_manifest",
213 ":blimp_test_java", 241 ":blimp_test_java",
214 google_play_services_resources, 242 google_play_services_resources,
215 ] 243 ]
216 } 244 }
217 } 245 }
OLDNEW
« no previous file with comments | « blimp/BUILD.gn ('k') | blimp/client/DEPS » ('j') | blimp/client/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698