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

Side by Side Diff: mojo/shell/BUILD.gn

Issue 674013002: Add gn support for generating mojo_shell_apk (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove ui changes for diffing Created 6 years, 2 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("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//mojo/public/mojo.gni") 6 import("//mojo/public/mojo.gni")
7 import("//mojo/public/tools/bindings/mojom.gni") 7 import("//mojo/public/tools/bindings/mojom.gni")
8 8
9 if (is_android) {
10 import("//build/config/android/config.gni")
11 import("//build/config/android/rules.gni")
12 }
13
9 if (!use_prebuilt_mojo_shell) { 14 if (!use_prebuilt_mojo_shell) {
10 15
11 # GYP version: mojo/mojo.gyp:mojo_shell 16 # GYP version: mojo/mojo.gyp:mojo_shell
12 executable("mojo_shell") { 17 executable("mojo_shell") {
13 deps = [ 18 deps = [
14 ":lib", 19 ":lib",
15 "//base", 20 "//base",
16 "//mojo/common", 21 "//mojo/common",
17 "//mojo/environment:chromium", 22 "//mojo/environment:chromium",
18 ] 23 ]
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 "//mojo/services/native_viewport:lib", 96 "//mojo/services/native_viewport:lib",
92 "//mojo/services/network:lib", 97 "//mojo/services/network:lib",
93 ] 98 ]
94 sources += [ 99 sources += [
95 "network_application_loader.cc", 100 "network_application_loader.cc",
96 "network_application_loader.h", 101 "network_application_loader.h",
97 ] 102 ]
98 } 103 }
99 } 104 }
100 105
106 if (is_android) {
107 generate_jni("jni_headers") {
108 sources = [
109 "android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java",
110 ]
111 jni_package = "mojo"
112 }
113
114 android_library("java") {
115 deps = [
116 "//base:base_java",
117 "//net/android:net_java",
118 ]
119 DEPRECATED_java_in_dir = "android/apk/src"
jamesr 2014/10/23 23:35:51 ditto
DaveMoore 2014/10/24 02:25:48 Done.
120 }
121
122 android_resources("resources") {
123 resource_dirs = [ "android/apk/res" ]
124 custom_package = "org.chromium.mojo_shell_apk"
125 }
126
127 shared_library("libmojo_shell") {
128 deps = [
129 ":lib",
130 ":jni_headers",
131 "//ui/gl",
132 ]
133
134 sources = [
135 "android/library_loader.cc",
136 "android/mojo_main.cc",
137 "android/mojo_main.h",
138 ]
139 }
140
141 android_apk("mojo_shell_apk") {
142 deps = [
143 ":java",
144 ":libmojo_shell",
145 ":resources",
146 "//mojo/services/native_viewport:native_viewport_java",
147 ]
148
149 native_libs = [
150 "$root_build_dir/lib.stripped/libmojo_shell.so"
jamesr 2014/10/23 23:35:51 i think you can just say 'libmojo_shell' and it fi
DaveMoore 2014/10/24 02:25:48 Done. Again copied from elsewhere.
151 ]
152
153 apk_name = "MojoShell"
154 android_manifest = "android/apk/AndroidManifest.xml"
155 }
156 }
157
101 mojom("app_child_process_bindings") { 158 mojom("app_child_process_bindings") {
102 sources = [ 159 sources = [
103 "app_child_process.mojom" 160 "app_child_process.mojom"
104 ] 161 ]
105 } 162 }
106 163
107 mojom("external_service_bindings") { 164 mojom("external_service_bindings") {
108 sources = [ 165 sources = [
109 "external_service.mojom" 166 "external_service.mojom"
110 ] 167 ]
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 "//mojo/edk/system", 256 "//mojo/edk/system",
200 "//mojo/environment:chromium", 257 "//mojo/environment:chromium",
201 ] 258 ]
202 259
203 sources = [ 260 sources = [
204 "incoming_connection_listener_unittest.cc", 261 "incoming_connection_listener_unittest.cc",
205 "external_application_listener_unittest.cc", 262 "external_application_listener_unittest.cc",
206 "external_application_test_main.cc", 263 "external_application_test_main.cc",
207 ] 264 ]
208 } 265 }
OLDNEW
« mojo/services/native_viewport/BUILD.gn ('K') | « mojo/services/native_viewport/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698