axmol/templates/cpp-template-default/proj.android
minggo 4356727465 Merge pull request #6619 from myourys/v3
update cpp-default-template for android *Eclipse*
2014-05-13 13:52:28 +08:00
..
.settings update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
jni := -> += 2014-05-07 14:35:43 +08:00
res issue #4674: Re-added deleted source files. 2014-05-04 14:37:55 +08:00
src/org/cocos2dx/cpp update templates for remove native activity 2014-03-25 15:43:42 +08:00
.classpath update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
.cproject update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
.project update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
AndroidManifest.xml update templates for remove native activity 2014-03-25 15:43:42 +08:00
README.md update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
ant.properties Removes unused templates. 2014-03-04 09:46:32 +08:00
build-cfg.json issue #4674: Re-added deleted source files. 2014-05-04 14:37:55 +08:00
build.xml Removes unused templates. 2014-03-04 09:46:32 +08:00
build_native.py Upgrade build_native.py to take variable number of arguments 2014-05-05 12:48:51 +09:00
proguard-project.txt Removes unused templates. 2014-03-04 09:46:32 +08:00
project.properties Removes unused templates. 2014-03-04 09:46:32 +08:00

README.md

Prerequisites:

  • Android NDK
  • Android SDK OR Eclipse ADT Bundle
  • Android AVD target installed

Building project

There are two ways of building Android projects.

  1. Eclipse
  2. Command Line

Import Project in Eclipse

####Step 1: C/C++ Environment Variable NDK_ROOT

  • Eclipse->Preferences->C/C++->Build->Environment.
  • Click Add button and add a new variable NDK_ROOT pointing to the root NDK directory. Example
  • Only for Windows: Add new variables CYGWIN with value nodosfilewarning and SHELLOPTS with value igncr

####Step 2: Adding and running from Eclipse

Example Import

  1. File->New->Project->Android Project From Existing Code
  2. Browse to your project directory and Add the project
  3. Click Run as Android Application to run on connected device or emulator.

That's all !!!

Running project from Command Line

$ cd NEW_PROJECTS_DIR/MyGame
$ cocos run -p android -j 4