Changes
Page history
formatting fix
authored
Jul 13, 2018
by
no encoding
Hide whitespace changes
Inline
Side-by-side
home.md
View page @
a82380a0
...
...
@@ -19,52 +19,68 @@ Below I will show you how to modify those steps to incorporate proprietary codec
# Building Chromium with proprietary codecs
1.
Ensure that unicode filenames aren't mangled by HFS and clone the depot_tools repository:
```
git config --global core.precomposeUnicode true
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
```
```
git config --global core.precomposeUnicode true
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
```
2.
Add depot_tools to the end of your PATH:
```
export PATH="$PATH:`pwd`/depot_tools"
```
```
export PATH="$PATH:`pwd`/depot_tools"
```
3.
Create a chromium working directory:
```
mkdir chromium && cd chromium
```
```
mkdir chromium && cd chromium
```
4.
Fetch the code and its dependencies (
**this should take approx. 20-30 minutes**
).
```
fetch --no-history chromium
```
```
fetch --no-history chromium
```
5.
Go to src directory
```
cd src
```
```
cd src
```
6.
Create a build directory with all necessary arguments:
```
gn args out/Default
```
This will open a default text editor.
**Now comes the important part. Type in the following arguments:**
```
proprietary_codecs = true
is_debug = false
ffmpeg_branding = "Chrome"
```
Save and exit the file. This will generate
`./out/Default/args.gn`
file.
Alternatively we may want to list all of available arguments first:
```
gn gen out/Default
gn args out/Default --list
```
The complete list of gn arguments (as of 8 July 2018) is
[
here
](
List-of-all-gn-arguments-for-Chromium-build
)
```
gn args out/Default
```
This will open a default text editor. **Now comes the important part. Type in the following arguments:**
```
proprietary_codecs = true
is_debug = false
ffmpeg_branding = "Chrome"
```
Save and exit the file. This will generate `./out/Default/args.gn` file.
Alternatively we may want to list all of available arguments first:
```
gn gen out/Default
gn args out/Default --list
```
The complete list of gn arguments (as of 8 July 2018) is [here](List-of-all-gn-arguments-for-Chromium-build)
7.
Build Chromium
```
ninja -C out/Default chrome
```
Once it is built, our
`Chromium.app`
is in a
`./out/Default/`
directory. We can move it to
`/Applications`
folder
```
ninja -C out/Default chrome
```
Once it is built, our `Chromium.app` is in a `./out/Default/` directory. We can move it to `/Applications` folder
# Useful links
[
https://chromium.woolyss.com
](
https://chromium.woolyss.com
)
- one of the best sources of information regarding Chromium