@@ -3,9 +3,12 @@ cocos2d-x 3rd party libs
3
3
4
4
This repository includes the source code of the 3rd party libraries (binary) that are bundled with cocos2d-x.
5
5
6
- This repository is needed for cocos2d-x developers and/or people who want to port cocos2d-x to other platforms.
6
+ This repository is needed for cocos2d-x developers and/or people who want to:
7
+
8
+ * generate a updated version of a certain library (eg: upgrade libpng 1.2.2 to 1.2.14)
9
+ * port cocos2d-x to other platforms (eg: port it to Android ARM64, or Xbox One, etc)
10
+ * generate DEBUG versions of all the 3rd party library
7
11
8
- As an example, if you want to support cocos2d-x in ARM64, you need to compile all these libraries for ARM64.
9
12
10
13
** Note:**
11
14
@@ -15,21 +18,19 @@ As an example, if you want to support cocos2d-x in ARM64, you need to compile al
15
18
16
19
- We use Ubuntu to build all the static libraries for Linux.
17
20
18
- - Other platforms is not tested which means if you use Windows or Linux to build static libraries for Android, it might be failed.
19
-
21
+ Other configuration were not tested. Compiling the Android binaries from a Linux
22
+ or Windows machine were not tested, so we don't know if it works or not.
20
23
21
24
## Download
22
25
23
26
$ git clone https://github.com/cocos2d/cocos2d-x-3rd-party-libs-src.git
24
- $ cd cocos2d-x-dependencies
25
- $ git submodule update --init
26
27
27
28
## Prerequisite
28
29
### For Mac users
29
30
- If you want to use these scripts, you should install Git 1.8+, CMake 2.8+ and M4 1.4+.
30
31
If you are a Homebrew user, you could simply run the following commands to install these tools:
31
32
32
- ``` cpp
33
+ ```
33
34
brew update
34
35
brew install git
35
36
brew install cmake
@@ -104,7 +105,7 @@ All the other libraries share the same folder structure.
104
105
105
106
For building libpng fat library with arch armv7 and arm64 on debug mode:
106
107
107
- ``` cpp
108
+ ```
108
109
cd build/ios
109
110
./build.sh --libs=png --arch=armv7,arm64 --mode=debug
110
111
```
0 commit comments