Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 650afd1

Browse files
authored
Update readme. (#687)
1 parent 478f01c commit 650afd1

File tree

3 files changed

+12
-23
lines changed

3 files changed

+12
-23
lines changed

README.md

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ The Open WebRTC Toolkit(OWT) client SDK for native Windows/Linux/Android/iOS app
55
of real time communication applications on these platforms. It supports peer to peer communication, and conference mode communication working with
66
Open WebRTC Toolkit conference server.
77

8-
- Supported Windows platform: Windows 8 and above.
8+
- Supported Windows platform: Windows 10 and above.
99
- Supported Linux platform: Ubuntu 20.04 and above.
10-
- Supported iOS platform: iOS 9.0 and above.
10+
- Supported iOS platform: iOS 12.0 and above.
1111

1212
## Documentation
1313
To generate the API document, go to the `scripts` directory, and run `python build-win.py --docs` for Windows or `./gendoc.sh` in `talk/owt/docs/ios` for iOS.
@@ -18,12 +18,12 @@ You need [Doxygen](http://www.doxygen.nl/) in your path.
1818

1919
### Prepare the development environment
2020
Before you start, make sure you have the following prerequisites installed/configured:
21-
- [WebRTC stack build dependencies](https://webrtc.googlesource.com/src/+/refs/heads/master/docs/native-code/development/prerequisite-sw/index.md).
21+
- [WebRTC stack build dependencies](https://webrtc.googlesource.com/src/+/refs/heads/master/docs/native-code/development/prerequisite-sw/index.md), except the Visual Studio part.
2222
- [Proxy settings](https://github.com/open-webrtc-toolkit/owt-client-native/wiki/Proxy-config-for-building-native-SDK).
2323

2424
The following dependencies are for Windows only:
25-
- [Visual Studio](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/windows_build_instructions.md#visual-studio).
26-
- [Intel Media SDK for Windows, version 2020 R1 or higher](https://software.intel.com/en-us/media-sdk/choose-download/client).
25+
- [Visual Studio](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/windows_build_instructions.md#visual-studio). Only Visual Studio 2022 version 17.4.4 is tested.
26+
- [Intel Media SDK for Windows, version 2021 R1 or higher](https://software.intel.com/en-us/media-sdk/choose-download/client).
2727

2828
### Get the code
2929
- Make sure you clone the source code to a directory named `src`.
@@ -51,7 +51,6 @@ target_os = []
5151
1. Go to the `src/scripts` directory, and run: `python build-win.py --gn_gen --sdk --tests --ssl_root /path/to/ssl --msdk_root /path/to/msdk --output_path /path/to/output`.
5252
- The optional `msdk_root` should be set to the directory of your Intel MediaSDK for Windows, version 2020 R1 or higher. This is typically
5353
`C:\Program Files (x86)\IntelSWTools\Intel(R) Media SDK 2020 R1\Software Development Kit`. If specified, will enable hardware accelerated video codecs for most of the video codecs.
54-
- The optional `--sdk` is to inform the build script to use `lib.exe` that is part of Visual Studio toolchain for merging owt libraries with external openssl libraries.
5554

5655

5756
#### Linux
@@ -65,11 +64,10 @@ target_os = []
6564
Common build options shared by Windows and Linux:
6665
- By default `x86|Debug` library will be created. Specify `--arch x64` if you want to build x64 libraries; Specify `--scheme release` if release version of library is to be built.
6766
- The built binary will be under path specified by `--output_path`. If `--output_path` is not set, the built binary will be under `src/out` directory.
68-
- The optional `--ssl_root` should be set to the root directory of lastest OpenSSL 3.0 series directory. If specified, build tool will search external OpenSSL headers in `ssl_root/include` and OpenSSL binaries in `ssl_root/bin`. But binaries are not included in OWT SDK, so applications still need to link libcrypto and libssl.
69-
- Use `--gn_gen` to generate args.gn during the first build or when you change either `ssl_root`/`msdk_root`/`quic_root` options.
70-
- The optional `--quic_root` should point to the directory containing WebTransport library pre-built from owt-sdk-quic repo. This will build the SDK with WebTransport enabled for
71-
conference mode. Refer to [README.webtransport](https://github.com/open-webrtc-toolkit/owt-client-native/blob/main/README.webtransport) for the version of webtransport library to be used.
67+
- The optional `--ssl_root` should be set to the root directory of lastest OpenSSL 3.0 series directory. If specified, build tool will search external OpenSSL headers in `ssl_root/include` and OpenSSL binaries in `ssl_root/lib`. But binaries are not included in OWT SDK, so applications still need to link libcrypto and libssl.
68+
- Use `--gn_gen` to generate args.gn during the first build or when you change either `ssl_root`/`msdk_root` options.
7269
- The optional `--tests` will trigger unit tests after build.
70+
- Run `build*.py` with `--help` for argument description.
7371

7472
#### iOS
7573
Update to latest macOS(Big Sur) and Xcode. iOS SDK can only be built on macOS.
@@ -78,16 +76,7 @@ Update to latest macOS(Big Sur) and Xcode. iOS SDK can only be built on macOS.
7876
1. Run `scripts\build.py`.
7977

8078
#### Android
81-
1. Replace the last line of .gclient with target_os=["android"]
82-
1. Run gclient sync. It may take long time to download large amount of data.
83-
1. Build libwebrtc for OWT Android SDK with scripts/build_android.py.
84-
85-
#### Linux
86-
- Run `gclient sync` in the directory that contains 'src'. It may take a long time to download a large amount of data.
87-
- Go to the `src/scripts` directory, and run:
88-
`python build_linux.py --gn_gen --sdk --output_path /path/to/out --fake_audio`. The built binary will be under `output_path`,
89-
- The document for sdk will also be copied to this directory if docs have been generated.
90-
- If `output_path` is not set, the built binary will be under the `src/out` directory.
79+
This branch doesn't support Android build. owt-client-android depends on 5.0.x branch of this repository.
9180

9281

9382
## How to contribute

scripts/build-win.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def main():
166166
help='VC runtime linkage. Currently not supported.')
167167
parser.add_argument('--ssl_root', help='Path for OpenSSL.')
168168
parser.add_argument('--msdk_root', help='Path for MSDK.')
169-
parser.add_argument('--quic_root', help='Path to QUIC library')
169+
parser.add_argument('--quic_root', help='Path to QUIC library. Not supported yet.')
170170
parser.add_argument('--scheme', default='debug', choices=('debug', 'release'),
171171
help='Schemes for building. Supported value: debug, release')
172172
parser.add_argument('--gn_gen', default=False, action='store_true',

scripts/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ def runtest(ssl_root):
162162
def main():
163163
parser = argparse.ArgumentParser()
164164
parser.add_argument('--arch', default='arm64', dest='target_arch',
165-
help='Target architectures. Could be multiple values seperated by comma.')
166-
parser.add_argument('--ssl_root', help='Path for OpenSSL.')
165+
help='Target architectures. Could be multiple values separated by comma.')
166+
parser.add_argument('--ssl_root', help='Path for OpenSSL. Headers in include sub-folder, libcrypto.a and libssl.a in lib sub-folder.')
167167
parser.add_argument('--scheme', default='debug',
168168
help='Schemes for building. Supported value: debug, release')
169169
parser.add_argument('--skip_gn_gen', default=False, action='store_true',

0 commit comments

Comments
 (0)