forked from cocos2d/cocos2d-x
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android: added support for building libcocos2d
Signed-off-by: martell <[email protected]>
- Loading branch information
Showing
5 changed files
with
1,850 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
CMake Build Instructions | ||
|
||
NB. Depending on your host system your Generator flag -G may be different | ||
|
||
Typical -G options | ||
For using gcc and clang from a makefile | ||
|
||
msys2 = "MSYS Makefiles" | ||
windows = "MinGW Makefiles" | ||
nix and mac = "Unix Makefiles" | ||
|
||
For using and editor such as Visual Studio or xcode or sublime text there are different flags | ||
|
||
To like all available flags for your system run | ||
|
||
cmake --help | ||
|
||
|
||
More Examples | ||
|
||
mac build Instructions | ||
|
||
cd cocos2d-x | ||
mkdir macbuild && cd macbuild | ||
cmake -G "Unix Makefile" -DBUILD_CPP_TESTS=OFF -DBUILD_LUA_LIBS=OFF .. | ||
|
||
Android Build Instructions | ||
|
||
cd cocos2d-x | ||
mkdir androidbuild && cd androidbuild | ||
cmake -G"MSYS Makefiles" -DANDROID_NDK=/path/to/android-ndk-r9d -DANDROID_NATIVE_API_LEVEL=android-9 -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake .. | ||
|
||
mingw64 with msys2 build Instructions | ||
|
||
cd cocos2d-x | ||
mkdir mingwbuild && cd mingwbuild | ||
cmake -G "MSYS Makefile" -DBUILD_CPP_TESTS=OFF -DBUILD_LUA_LIBS=OFF .. | ||
|
||
todo: structure this document in markdown with better examples and more details |
Oops, something went wrong.