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

Unified Diff: mojo/go/sample_app/README.txt

Issue 681393002: -Build configuration for a sample Go application that can be run in Mojo (on Android). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tabs 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/go/BUILD.gn ('k') | mojo/go/sample_app/app.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/go/sample_app/README.txt
diff --git a/mojo/go/sample_app/README.txt b/mojo/go/sample_app/README.txt
new file mode 100644
index 0000000000000000000000000000000000000000..fbe0c9c3d90494ed32e9844a87437603af335cfa
--- /dev/null
+++ b/mojo/go/sample_app/README.txt
@@ -0,0 +1,20 @@
+Sample Go application that can be loaded into a mojo shell running on Android.
+The application exports a MojoMain entry point for the shell and then makes
+a GetTimeTicksNow system call.
+
+Build instructions
+gn args <output_directory>
+
+Set the following arguments
+mojo_use_go=true
+go_build_tool=<go_binary_location>
+os="android"
+
+gn gen <output_directory>
+ninja -C <output_directory> go_sample_app
+
+You can now following instructions from the below link to run the app.
+http://dev.chromium.org/developers/how-tos/run-mojo-shell
+
+Start the Go application.
+./build/android/adb_run_mojo_shell http://127.0.0.1:4444/go_sample_app
« no previous file with comments | « mojo/go/BUILD.gn ('k') | mojo/go/sample_app/app.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698