Skip to content

Commit d8f2991

Browse files
committed
improve document
1 parent 9dc7f6c commit d8f2991

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,22 @@ All of them share the same usage:
7474
- use `all` to build all the 3rd party libraries, it will take you a very long time.
7575
- use comma separated library names, for example, `png,lua,jpeg/webp`, no space between the comma.
7676

77+
- param2:
78+
- use `all` to build all the supported arches. For iOS, they are "armv7, arm64, i386, x86_64", for Android, they are "armeabi, armeabi-v7a, x86, arm64", for Mac, they are "x86_64", for Tizen, they are "armv7"
79+
- use comma separated arch name, for example, `armv7, arm64`, no space between the comma.
7780

78-
### For iOS Platform
79-
81+
- param3:
82+
- release: Build library on release mode. This is the default option. We use `-O3 -DNDEBUG` flags to build release library.
83+
- debug: Build library on debug mode. we use `-O0 -g -DDEBUG` flag to build debug library.
8084

81-
For building libpng fat library:
85+
### For iOS Platform
86+
For building libpng fat library with all arch x86_64, i386, armv7, arm64 on release mode:
8287

8388
```cpp
8489
cd build/ios
8590
./build.sh --libs=png
8691
```
8792

88-
This command will build a fat library with arch i386, x86_64, armv7 and arm64 on release mode.
89-
9093
After running this command, it will generate a folder named `png`:
9194

9295
The folder structure would be:
@@ -99,6 +102,13 @@ The folder structure would be:
99102

100103
All the other libraries share the same folder structure.
101104

105+
For building libpng fat library with arch armv7 and arm64 on debug mode:
106+
107+
```cpp
108+
cd build/ios
109+
./build.sh --libs=png --arch=armv7,arm64 --mode=debug
110+
```
111+
102112
### For Android Platform
103113
xxx document will be update later.
104114

0 commit comments

Comments
 (0)