You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,37 @@
1
1
## Build
2
2
3
+
### Building static libraries
4
+
5
+
A static library can be build using:
6
+
```
7
+
mkdir build #make a build dir so that you can build out of tree
8
+
cd build
9
+
cmake -DUSE_TLS=1 ..
10
+
make -j
11
+
```
12
+
There are also two build scripts in the `tools` folder for creating static libraries for android and iOS/macOS respectively.<br>
13
+
Arguments can be changed in the script files.
14
+
15
+
Android:
16
+
```
17
+
mkdir build
18
+
cd build
19
+
./../tools/build_android.sh
20
+
make -j
21
+
```
22
+
macOS & iOS:
23
+
```
24
+
mkdir build
25
+
cd build
26
+
./../tools/build_ios.sh
27
+
```
28
+
3
29
### CMake
4
30
5
31
CMakefiles for the library and the examples are available. This library has few dependencies, so it is possible to just add the source files into your project. Otherwise the usual way will suffice.
6
32
7
33
```
8
-
mkdir build # make a build dir so that you can build out of tree.
0 commit comments