#[Cocos2x-x] 멸령어 메모

Programming/Old 2016. 3. 30. 09:57

Create project.

1. To create a project, input the following command.

 - cocos new [Project Name] -p [Package Dir 'com.XXX.YYY'] -l cpp -d [Make Dir]

2. In cmd, go to the made directory and enter to the project folder.

3. In cmd, Input the following command that you want.

 - cocos compile -p android ( basic android compile )

 - cocos compile -p android --android-studio ( android-studio version compile )

* the '-p' command represents the platform you need to build. The available commands are 'android', 'win32', 'iOS' and etc.

* the '-l' command represents the language you need to build.


To run app, input the following command.

 - cocos run -s [Project Name] -p android --android-studio


To generate prebuild libraries, input the following command.

 - cocos gen-libs -p win32 --vs 2015 -m debug

* the '--vs ' command represents the visual studio's version you need to build.

admin