Skip to content

changbiao/cocos2d-x-pong-cpp

 
 

Repository files navigation

Build for Android

Ensure you have all necessary environment variables in place:

export COCOS2DX_ROOT="/usr/local/lib/cocos2d-x"
export ANDROID_SDK_ROOT="/usr/local/lib/adt/sdk"
export NDK_ROOT="/usr/local/lib/ndk"
export NDK_TOOLCHAIN_VERSION="4.8"

Then build native libraries:

./build_native.py

Finally the project:

ant debug -Dsdk.dir=$ANDROID_SDK_ROOT

Run it against your emulator with:

emulator -avd nexus-19
adb install bin/Copong-debug.apk

Build for iOS

Build the project with xcodebuild:

xcodebuild -target 'Copong iOS'

Build for Mac

Build the project with xcodebuild:

xcodebuild -target 'Copong Mac'

Build for Linux

First install dependencies:

cd cocos2d/build
./install-deps-linux.sh

Then build the project:

mkdir build
cd build
cmake ..
make -j4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 80.5%
  • Python 9.1%
  • Objective-C++ 6.6%
  • Makefile 2.3%
  • Objective-C 0.9%
  • Java 0.4%
  • C 0.2%