Skip to content

Commit

Permalink
Building: Enhanced info and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed May 24, 2022
1 parent 27f373f commit f2bd089
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ If you only need Data Channels, the option `NO_MEDIA` allows to make the library

For the sake of performance, the library should be compiled in `Release` mode if you don't plan to debug it.

The CMake build exports the targets with namespace `LibDataChannel::LibDataChannel` and `LibDataChannel::LibDataChannelStatic` to link the library from another CMake project.

### POSIX-compliant operating systems (including Linux and Apple macOS)

```bash
$ cmake -B build -DUSE_GNUTLS=1 -DUSE_NICE=0 -DCMAKE_BUILD_TYPE=Release
$ cmake -B build -DUSE_GNUTLS=0 -DUSE_NICE=0 -DCMAKE_BUILD_TYPE=Release
$ cd build
$ make -j2
```
Expand Down Expand Up @@ -71,6 +73,6 @@ The option `USE_GNUTLS` allows to switch between OpenSSL (default) and GnuTLS, a
If you only need Data Channels, the option `NO_MEDIA` removes media support. Similarly, `NO_WEBSOCKET` removes WebSocket support.

```bash
$ make USE_GNUTLS=1 USE_NICE=0
$ make USE_GNUTLS=0 USE_NICE=0
```

0 comments on commit f2bd089

Please sign in to comment.