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

Unified Diff: mojo/mojo.gyp

Issue 38993002: Build mojo_shell on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: again Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/all_android.gyp ('k') | mojo/shell/android/library_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/mojo.gyp
diff --git a/mojo/mojo.gyp b/mojo/mojo.gyp
index b4d2f665520d3157dc9fc02ce9647c5e517033e1..b34d4d2f6f36e7b3dd51afc7d10e97b676555b9c 100644
--- a/mojo/mojo.gyp
+++ b/mojo/mojo.gyp
@@ -132,8 +132,8 @@
],
},
{
- 'target_name': 'mojo_shell',
- 'type': 'executable',
+ 'target_name': 'mojo_shell_lib',
+ 'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
'../net/net.gyp:net',
@@ -149,7 +149,6 @@
'loader/url_request_context_getter.h',
'shell/app_container.cc',
'shell/app_container.h',
- 'shell/shell.cc',
'shell/storage.cc',
'shell/storage.h',
'shell/switches.cc',
@@ -167,6 +166,27 @@
],
},
{
+ 'target_name': 'mojo_shell',
+ 'type': 'executable',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../url/url.gyp:url_lib',
+ 'mojo_shell_lib',
+ 'mojo_system',
+ ],
+ 'sources': [
+ 'shell/shell.cc',
+ ],
+ 'conditions': [
+ ['OS == "win"', {
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ 'msvs_disabled_warnings': [
+ 4267,
+ ],
+ }],
+ ],
+ },
+ {
'target_name': 'sample_app',
'type': '<(component)',
'dependencies': [
@@ -214,4 +234,37 @@
],
},
],
+ 'conditions': [
+ ['OS=="android"', {
+ 'targets': [
+ {
+ 'target_name': 'libmojo_shell',
+ 'type': 'shared_library',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ 'mojo_shell_lib',
+ ],
+ 'sources': [
+ 'shell/android/library_loader.cc',
+ ],
+ },
+ {
+ 'target_name': 'mojo_shell_apk',
+ 'type': 'none',
+ 'dependencies': [
+ '../base/base.gyp:base_java',
+ '../net/net.gyp:net_java',
+ 'libmojo_shell',
+ ],
+ 'variables': {
+ 'apk_name': 'MojoShell',
+ 'java_in_dir': '<(DEPTH)/mojo/shell/android/shell_apk',
+ 'resource_dir': '<(DEPTH)/mojo/shell/android/shell_apk/res',
+ 'native_lib_target': 'libmojo_shell',
+ },
+ 'includes': [ '../build/java_apk.gypi' ],
+ }
+ ],
+ }],
+ ],
}
« no previous file with comments | « build/all_android.gyp ('k') | mojo/shell/android/library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698