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
3 # found in the LICENSE file.
6 import("//build/config/android/config.gni")
7 import("//build/config/android/rules.gni")
10 shared_library("blimp_client") {
12 "compositor/blimp_compositor.cc",
13 "compositor/blimp_compositor.h",
14 "compositor/blimp_context_provider.cc",
15 "compositor/blimp_context_provider.h",
16 "compositor/blimp_output_surface.cc",
17 "compositor/blimp_output_surface.h",
18 "compositor/blimp_task_graph_runner.cc",
19 "compositor/blimp_task_graph_runner.h",
20 "compositor/test/dummy_layer_driver.cc",
21 "compositor/test/dummy_layer_driver.h",
26 "//blimp/common:blimp_common",
28 "//gpu/command_buffer/client:gl_in_process_context",
29 "//gpu/command_buffer/common:gles2_utils",
30 "//gpu/skia_bindings",
37 "android/blimp_jni_registrar.cc",
38 "android/blimp_jni_registrar.h",
39 "android/blimp_library_loader.cc",
40 "android/blimp_library_loader.h",
41 "android/blimp_view.cc",
42 "android/blimp_view.h",
43 "compositor/blimp_compositor_android.cc",
44 "compositor/blimp_compositor_android.h",
47 deps += [ ":jni_headers" ]
54 generate_jni("jni_headers") {
56 "android/java/src/org/chromium/blimp/BlimpLibraryLoader.java",
57 "android/java/src/org/chromium/blimp/BlimpView.java",
63 blimp_apk_manifest = "$target_gen_dir/blimp_apk_manifest/AndroidManifest.xml"
65 jinja_template("blimp_apk_manifest") {
66 input = "android/AndroidManifest.xml.jinja2"
67 output = blimp_apk_manifest
70 android_resources("blimp_apk_resources") {
71 resource_dirs = [ "android/java/res" ]
72 android_manifest = blimp_apk_manifest
74 ":blimp_apk_manifest",
78 android_apk("blimp_apk") {
80 "android/java/src/org/chromium/blimp/BlimpApplication.java",
81 "android/java/src/org/chromium/blimp/BlimpLibraryLoader.java",
82 "android/java/src/org/chromium/blimp/BlimpRendererActivity.java",
83 "android/java/src/org/chromium/blimp/BlimpView.java",
87 ":blimp_apk_manifest",
88 ":blimp_apk_resources",
93 android_manifest = blimp_apk_manifest
94 native_libs = [ "libblimp_client.so" ]