Reland: Build Mojo apps in sub-dirs, like application packages.
commit0900ab2febde6e1a273bc7c187ba32d21b85bd84
authormsw <msw@chromium.org>
Tue, 16 Jun 2015 03:09:32 +0000 (15 20:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Jun 2015 03:09:53 +0000 (16 03:09 +0000)
tree19fbbde78d2481e451b3e7183bcf0e12ed2e5b6d
parent031a150bac916e32fa391a3759a1b46123cec07d
Reland: Build Mojo apps in sub-dirs, like application packages.

Reland https://codereview.chromium.org/1189703004/
Also fix ShellTestBase for mojo_runner_unittests, etc.
Share and copy asset caching code used by ShellMain.java.

Original description (still correct):
Build Mojo apps in subdirectories, like application packages.

Build all <foo>.mojo targets in a <foo> sub-directory.
Support resources bundled in mojo_native_application.
Remove mojo_application_package (now redundant).
Update hard-coded paths and simplify URL resolution code.

Remove apps bundled in core_services from Mandoline.apk
(network service, surfaces service, view manager)

This would help NetworkFetcher resolve app locations.
(Android apptests host the build dir on a local server)
(but apptests should instead bundle apps in an apk)

BUG=498020
TEST=Mojo runner and Mandoline still work (as much as they currently do :-/)
R=scottmg@chromium.org,sky@chromium.org

Review URL: https://codereview.chromium.org/1189703004

Cr-Commit-Position: refs/heads/master@{#334547}
16 files changed:
components/html_viewer/BUILD.gn
components/resource_provider/BUILD.gn
mandoline/app/android/BUILD.gn
mandoline/ui/browser/BUILD.gn
mandoline/ui/omnibox/BUILD.gn
mojo/mojo_application_package.gni [deleted file]
mojo/public/mojo_application.gni
mojo/runner/BUILD.gn
mojo/runner/android/android_handler.cc
mojo/runner/android/apk/src/org/chromium/mojo/shell/AndroidHandler.java
mojo/runner/android/apk/src/org/chromium/mojo/shell/FileHelper.java
mojo/runner/android/apk/src/org/chromium/mojo/shell/ShellMain.java
mojo/runner/android/tests/src/org/chromium/mojo/shell/ShellTestBase.java
mojo/runner/context.cc
mojo/runner/url_resolver.cc
mojo/runner/url_resolver_unittest.cc