This is my build script
- Code: Select all
#!/usr/bin/env bash
# 0. Config xcode sdk
sudo xcode-select -s /Applications/Xcode.app
# 1. Create the following directories.
sudo rm -rf /cefbuild
sudo mkdir /cefbuild
sudo chmod 777 /cefbuild
mkdir -p /cefbuild/automate /cefbuild/chromium_git
# 2. Download "~/code/depot_tools" using Git.
cd /cefbuild
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
# 3. Add the "~/code/depot_tools" directory to your PATH. Note the use of an absolute path here.
export PATH=/cefbuild/depot_tools:$PATH
# 4. Download the automate-git.py script to "~/code/automate/automate-git.py".
cd /cefbuild/automate/
brew install wget
wget https://bitbucket.org/chromiumembedded/cef/raw/master/tools/automate/automate-git.py
# 5. Create the "~/code/chromium_git/update.sh" script with the following contents.
export CEF_USE_GN=1
export GN_DEFINES="is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome"
export GYP_DEFINES=buildtype=Official
export CEF_ARCHIVE_FORMAT=tar.bz2
python ./automate-git.py --download-dir=/cefbuild/chromium_git --depot-tools-dir=/cefbuild/depot_tools --branch=3578 --minimal-distrib --client-distrib --force-clean --x64-build