
Seven Star棋牌Local棋牌Customized Client Compilation Tutorial
This site has compiled source code.Seven Star Card Local Card Shaoyang Card Repair Edition
There is a compiled client and a demo terminal that can be downloaded to see the inside of the game.
1. tools ready to
The compilation tool chooses eclipse to compile the apk installation file. Install the tool yourself. Just download and install it directly.
2. Environmental preparation
Download the Android SDK, NDK for local environment.
Download address: www.androiddevtools.cn/
Configuration of sdk,ndk,cocos environment variables:
3. Cocos Project Compilation
- First, let's take a look at the project catalog
This is the cocos project directory, res is the resource file directory, and src is the js code directory. The compiled project is under the framework directory. Here we can directly compile by running compile_release.cmd. Here we will compile js into binary files and copy them into the project. As shown in the picture:
Here is the generated android project. You can directly import the project with eclipse. The assets directory here is the code and resource files copied after compilation. We introduced this project.
OK, you can develop happily. Right-click to project AndroidTool can directly export the apk installation file. You can also ant compile apk files.
This is the end of client-side compilation.
Comments0