[Media Router] Add iconType field to MediaSink.
[chromium-blink-merge.git] / blimp / client / BUILD.gn
blob4ce24ece5c837365586afdd5a2bef1932631b670
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.
5 if (is_android) {
6   import("//build/config/android/config.gni")
7   import("//build/config/android/rules.gni")
10 shared_library("blimp_client") {
11   sources = [
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",
22   ]
24   deps = [
25     "//base",
26     "//blimp/common:blimp_common",
27     "//cc",
28     "//gpu/command_buffer/client:gl_in_process_context",
29     "//gpu/command_buffer/common:gles2_utils",
30     "//gpu/skia_bindings",
31     "//ui/gfx/geometry",
32     "//ui/gl",
33   ]
35   if (is_android) {
36     sources += [
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",
45     ]
47     deps += [ ":jni_headers" ]
49     libs = [ "android" ]
50   }
53 if (is_android) {
54   generate_jni("jni_headers") {
55     sources = [
56       "android/java/src/org/chromium/blimp/BlimpLibraryLoader.java",
57       "android/java/src/org/chromium/blimp/BlimpView.java",
58     ]
60     jni_package = "blimp"
61   }
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
68   }
70   android_resources("blimp_apk_resources") {
71     resource_dirs = [ "android/java/res" ]
72     android_manifest = blimp_apk_manifest
73     deps = [
74       ":blimp_apk_manifest",
75     ]
76   }
78   android_apk("blimp_apk") {
79     java_files = [
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",
84     ]
86     deps = [
87       ":blimp_apk_manifest",
88       ":blimp_apk_resources",
89       ":blimp_client",
90       "//base:base_java",
91     ]
92     apk_name = "Blimp"
93     android_manifest = blimp_apk_manifest
94     native_libs = [ "libblimp_client.so" ]
95   }