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

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: 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
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_library("html_viewer_gfx_classes") {
qsr 2015/03/13 16:53:12 That's really, really, really weird. Why isn't thi
sky 2015/03/13 17:35:48 I'm not sure what ends up using that file in a rea
153 java_files =
154 [ "//ui/android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java" ]
155
156 deps = [
157 "//base:base_java",
158 ]
159 }
160
161 android_standalone_library("java_library") {
162 dex_path = java_library_path
163
164 deps = [
165 ":html_viewer_gfx_classes",
166 ":html_viewer_java_classes",
167 ]
168 }
169 } else {
170 mojo_native_application("html_viewer") {
171 sources = [
172 "html_viewer.cc",
173 ]
174 deps = [
175 ":lib",
176 ]
177 }
120 } 178 }
121 179
122 test("tests") { 180 test("tests") {
123 output_name = "html_viewer_unittests" 181 output_name = "html_viewer_unittests"
124 sources = [ 182 sources = [
125 "ax_provider_impl_unittest.cc", 183 "ax_provider_impl_unittest.cc",
126 ] 184 ]
127 deps = [ 185 deps = [
128 ":lib", 186 ":lib",
129 "//base/test:run_all_unittests", 187 "//base/test:run_all_unittests",
130 ] 188 ]
131 } 189 }
OLDNEW
« no previous file with comments | « no previous file | mojo/services/html_viewer/android/android_hooks.cc » ('j') | mojo/services/html_viewer/android/android_hooks.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698