summaryrefslogtreecommitdiffstats
path: root/dom/media/webrtc/third_party_build/gn-configs/README.md
blob: 111d2d022e6375515fb0dc2ae3a6c6288fba08c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Generate new gn json files and moz.build files for building libwebrtc in our tree

/!\ This is only supported on Linux and macOS. If you are on Windows, you can run
the script under [WSL](https://docs.microsoft.com/en-us/windows/wsl/install).

1. The script should be run from the top directory of our firefox tree.

   ```
   ./mach python python/mozbuild/mozbuild/gn_processor.py dom/media/webrtc/third_party_build/gn-configs/webrtc.json
   ```

2. Checkin all the generated/modified files and try your build!

# Adding new configurations to the build

Edit the `main` function in the `python/mozbuild/mozbuild/gn_processor.py` file.