Pārlūkot izejas kodu

Updated documentation for CMake-based android build.

Wei Tjong Yao 12 gadi atpakaļ
vecāks
revīzija
6ad6966ea9
2 mainītis faili ar 17 papildinājumiem un 4 dzēšanām
  1. 7 2
      Docs/GettingStarted.dox
  2. 10 2
      Readme.txt

+ 7 - 2
Docs/GettingStarted.dox

@@ -56,7 +56,7 @@ To run from Xcode on Mac OS X, edit the Product Scheme to set "Run" setting to e
 
 First copy Bin/Data and Bin/CoreData directories to the Android/assets directory (you can use the provided batch file CopyData.bat.) Next, execute the following commands in the Android directory:
 
-- android update project -p . (only needed on the first time)
+- android update project -p . -t 1 (only needed on the first time, replace '-t 1' with desired target-id)
 - ndk-build
 - ant debug
 
@@ -66,7 +66,12 @@ For a release build, use the "ant release" command instead of "ant debug" and fo
 
 By default the Android package for Urho3D is com.googlecode.urho3d. For a real application you must replace this with your own package name. The Urho3D activity subclasses the SDLActivity from org.libsdl.app package, whose name (or the JNI code from SDL library) does not have to be changed.
 
-There is also a CMake-based, work-in-progress method to build the Urho3D native code. To use, run cmake_android.bat or cmake_android.sh, then run make. After the native code build is finished, proceed to ant debug like above.
+There is also a CMake-based, work-in-progress method to build the Urho3D native code. To use, run cmake_android.bat or cmake_android.sh, then run make. After the native code build is finished, proceed to ant debug like above. In Linux, typically:
+
+- cd Android && android update project -p . -t 1
+- cd .. && ./cmake_android.sh
+- make -j8 install/strip (replace '-j 8' with the number of logical CPU cores of the host/build system)
+- cd Android && ant debug && ant installd (for deploying the debug apk)
 
 \section Building_Ios iOS build process
 

+ 10 - 2
Readme.txt

@@ -201,7 +201,8 @@ First copy Bin/Data and Bin/CoreData directories to the Android/assets directory
 (you can use the provided batch file CopyData.bat.) Next, execute the following
 commands in the Android directory:
 
-- android update project -p . (only needed on the first time)
+- android update project -p . -t 1 (only needed on the first time,
+                                    replace '-t 1' with desired target-id)
 - ndk-build
 - ant debug
 
@@ -220,7 +221,14 @@ activity subclasses the SDLActivity from org.libsdl.app package, whose name
 
 There is also a CMake-based, work-in-progress method to build the Urho3D native
 code. To use, run cmake_android.bat or cmake_android.sh, then run make. After 
-the native code build is finished, proceed to ant debug like above.
+the native code build is finished, proceed to ant debug like above.  In Linux,
+typically:
+
+- cd Android && android update project -p . -t 1
+- cd .. && ./cmake_android.sh
+- make -j8 install/strip (replace '-j 8' with the number of logical CPU cores of
+                          the host/build system)
+- cd Android && ant debug && ant installd (for deploying the debug apk)
 
 
 iOS build process