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

Side by Side Diff: mojo/services/html_viewer/BUILD.gn

Issue 1002033004: Gets packaging of html_viewer for android working (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 5 years, 9 months 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
« no previous file with comments | « no previous file | mojo/services/html_viewer/android/android_hooks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//testing/test.gni") 5 import("//testing/test.gni")
6 import("//third_party/mojo/src/mojo/public/mojo.gni") 6 import("//third_party/mojo/src/mojo/public/mojo.gni")
7 import("//third_party/mojo/src/mojo/public/mojo_application.gni") 7 import("//third_party/mojo/src/mojo/public/mojo_application.gni")
8 8
9 action("generate_blink_resource_map") { 9 action("generate_blink_resource_map") {
10 script = "//mojo/services/html_viewer/generate_blink_resource_map.py" 10 script = "//mojo/services/html_viewer/generate_blink_resource_map.py"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 ] 103 ]
104 104
105 public_deps = [ 105 public_deps = [
106 "//third_party/WebKit/public:blink", 106 "//third_party/WebKit/public:blink",
107 "//third_party/mojo/src/mojo/public/cpp/bindings", 107 "//third_party/mojo/src/mojo/public/cpp/bindings",
108 "//third_party/mojo_services/src/view_manager/public/cpp", 108 "//third_party/mojo_services/src/view_manager/public/cpp",
109 ":generate_blink_resource_map", 109 ":generate_blink_resource_map",
110 ] 110 ]
111 } 111 }
112 112
113 mojo_native_application("html_viewer") { 113 if (is_android) {
114 sources = [ 114 import("//build/config/android/rules.gni")
115 "html_viewer.cc", 115
116 ] 116 java_library_path = "$target_out_dir/java_library.dex.jar"
117 deps = [ 117
118 ":lib", 118 mojo_android_application("html_viewer") {
119 ] 119 input_so = "$root_out_dir/lib.stripped/libhtml_viewer_lib.so"
120 input_dex_jar = java_library_path
121 }
122
123 shared_library("html_viewer_lib") {
124 sources = [
125 "android/android_hooks.cc",
126 "html_viewer.cc",
127 ]
128
129 deps = [
130 ":html_viewer_jni_headers",
131 ":lib",
132 "//base",
133 "//ui/gfx:gfx_jni_headers",
134 ]
135 }
136
137 generate_jni("html_viewer_jni_headers") {
138 sources = [
139 "android/java/org/chromium/html_viewer/Main.java",
140 ]
141 jni_package = "mojo/services/html_viewer"
142 }
143
144 android_library("html_viewer_java_classes") {
145 java_files = [ "android/java/org/chromium/html_viewer/Main.java" ]
146
147 deps = [
148 "//base:base_java",
149 ]
150 }
151
152 android_standalone_library("java_library") {
153 dex_path = java_library_path
154
155 deps = [
156 ":html_viewer_java_classes",
157
158 # TODO(sky): this is WAY more than we need. We really only need
159 # DeviceDisplayInfo. Refactor to make this clearer.
160 "//ui/android:ui_java",
161 ]
162 }
163 } else {
164 mojo_native_application("html_viewer") {
165 sources = [
166 "html_viewer.cc",
167 ]
168 deps = [
169 ":lib",
170 ]
171 }
120 } 172 }
121 173
122 test("tests") { 174 test("tests") {
123 output_name = "html_viewer_unittests" 175 output_name = "html_viewer_unittests"
124 sources = [ 176 sources = [
125 "ax_provider_impl_unittest.cc", 177 "ax_provider_impl_unittest.cc",
126 ] 178 ]
127 deps = [ 179 deps = [
128 ":lib", 180 ":lib",
129 "//base/test:run_all_unittests", 181 "//base/test:run_all_unittests",
130 ] 182 ]
131 } 183 }
OLDNEW
« no previous file with comments | « no previous file | mojo/services/html_viewer/android/android_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698