浏览代码

Added sdks section to monkey2 manual

Mark Sibly 8 年之前
父节点
当前提交
e7bf1dfec4
共有 2 个文件被更改,包括 67 次插入0 次删除
  1. 2 0
      modules/monkey/docs/manual.md
  2. 65 0
      modules/monkey/docs/sdks.md

+ 2 - 0
modules/monkey/docs/manual.md

@@ -13,5 +13,7 @@ Have fun!
 
 @import language/language.md
 
+@import sdks.md
+
 @import mx2cc.md
 

+ 65 - 0
modules/monkey/docs/sdks.md

@@ -0,0 +1,65 @@
+
+### Monkey2 Target SDKs
+
+Monkey2 target SDKs.
+
+
+#### The Windows Desktop Target
+
+Monkey2 uses the mingw compilers and tools to build desktop apps for windows.
+
+If you don't already have mingw installed, you can use the mingw build tools available at [[http://monkey2.monkey-x.com/monkey2-files]]. Simply download the mingw build tools package, run it (it's a self extracting exe), and select your monkey2 'devtools' dir for installation.
+
+Note that the prebuilt binaries available from itch.io already include mingw.
+
+
+#### The Macos Desktop Target
+
+Monkey2 uses the command line tools included with xcode to build desktop apps for macos.
+
+
+#### The Linux Desktop Target
+
+Monkey2 uses the 'gcc' command line tools to build desktop apps for linux.
+
+
+#### The Emscripten and Wasm Targets
+
+Monkey2 uses the emscripten sdk compilers and tools to build emscripten and wasm apps.
+
+To install the emscripten sdk, please see this page: [[https://github.com/juj/emsdk/blob/master/README.md]].
+
+
+#### The Android Target
+
+Monkey2 uses the android NDK (native development kit) to build android apps.
+
+Setting up for Android development:
+
+1) Install android studio and make sure it works, ie: you can build and run one of the simple template projects on a device or emulator. Android studio is available here: [[https://developer.android.com/studio/index.html]].
+
+2) Install the 'NDK' (native development kit) using android studio via 'SDK Manager->SDK Tools'.
+
+3) Install the Android 7.0 (Nougat) SDK Platform (API Level 24) using android studio via 'SDK Manager'.
+
+4) Edit your monkey2 bin/env_windows.txt file and change the ndk-bundle 'PATH' setting so it points to the NDK. Or, you can just add the ndk-bundle directory to your system PATH.
+
+5) Fire up Ted2 and select 'Build->Rebuild Modules->Android'. Wait...
+
+Building an Android app:
+
+1) Build your app in Ted2 using 'Build->Build Only' with 'Build Target->Android' selected.
+
+2) Open the generated android studio project (at myapp.products/Android) in android studio.
+
+Note: I recommend *disabling* the following android studio setting for mx2 dev:
+
+File->Settings->Build, Execution, Deployment->Instant Run->Enable Instant Run
+
+With this enabled, android studio doesn't seem to notice when external project files change.
+
+
+#### The iOS Target
+
+Monkey2 uses the command line tools included with xcode to build ios apps.
+