formatting fix authored by no encoding's avatar no encoding
...@@ -19,47 +19,63 @@ Below I will show you how to modify those steps to incorporate proprietary codec ...@@ -19,47 +19,63 @@ Below I will show you how to modify those steps to incorporate proprietary codec
# Building Chromium with proprietary codecs # Building Chromium with proprietary codecs
1. Ensure that unicode filenames aren't mangled by HFS and clone the depot_tools repository: 1. Ensure that unicode filenames aren't mangled by HFS and clone the depot_tools repository:
``` ```
git config --global core.precomposeUnicode true git config --global core.precomposeUnicode true
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
``` ```
2. Add depot_tools to the end of your PATH: 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: 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**). 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 5. Go to src directory
``` ```
cd src cd src
``` ```
6. Create a build directory with all necessary arguments: 6. Create a build directory with all necessary arguments:
``` ```
gn args out/Default gn args out/Default
``` ```
This will open a default text editor. **Now comes the important part. Type in the following arguments:** This will open a default text editor. **Now comes the important part. Type in the following arguments:**
``` ```
proprietary_codecs = true proprietary_codecs = true
is_debug = false is_debug = false
ffmpeg_branding = "Chrome" ffmpeg_branding = "Chrome"
``` ```
Save and exit the file. This will generate `./out/Default/args.gn` file. Save and exit the file. This will generate `./out/Default/args.gn` file.
Alternatively we may want to list all of available arguments first: Alternatively we may want to list all of available arguments first:
``` ```
gn gen out/Default gn gen out/Default
gn args out/Default --list 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) The complete list of gn arguments (as of 8 July 2018) is [here](List-of-all-gn-arguments-for-Chromium-build)
7. Build Chromium 7. Build Chromium
``` ```
ninja -C out/Default chrome ninja -C out/Default chrome
``` ```
... ...
......