Skip to content

Commit

Permalink
--webrtcbuild をやめて、ローカルの webrtc-build を使ってビルドする仕組みに変える
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Feb 20, 2024
1 parent 7e08754 commit 2b85535
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 137 deletions.
26 changes: 26 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,32 @@
- ビルドフラグによらず常にビルドされるファイルは、サブディレクトリを作らず `include/sora/``src/` に保存する
- ビルドフラグによってビルドされたりされなかったりするファイルは、サブディレクトリを作ってそこに保存する

## ローカルの webrtc-build を利用する

ローカルの webrtc-build を使ってビルドするには、以下のようにする。

```bash
# ../webrtc-build に shiguredo-webrtc-build/webrtc-build がある場合
python3 run.py ubuntu-20.04_x86_64 --webrtc-build-dir ../webrtc-build
```

引数を渡してビルドする場合、以下のようにする。

```bash
python3 run.py ubuntu-20.04_x86_64 --webrtc-build-dir ../webrtc-build --webrtc-build-args='--webrtc-fetch'
```

## デバッグビルド

C++ SDK をデバッグビルドするには、libwebrtc も含めて、依存ライブラリすべてをデバッグビルドする必要がある。
しかし libwebrtc のバイナリはリリースビルドであるため、libwebrtc のデバッグバイナリを作るにはローカルの webrtc-build を利用する必要がある。

```bash
python3 run.py ubuntu-20.04_x86_64 --debug --webrtc-build-dir ../webrtc-build
```

このように `--debug` を付けると、C++ SDK だけでなく、ローカルの webrtc-build を含む全ての依存ライブラリもデバッグビルドを行う。

## メモ

- ubuntu-20.04_x86_64, ubuntu-22.04_x86_64 のビルドに必要な依存
Expand Down
Loading

0 comments on commit 2b85535

Please sign in to comment.