See the Brave README or their Wiki for more information.
See the release information to see what branch to switch to.
First, clone and initialize this project.
# Clone this project
git clone https://github.com/foxium-browser/foxium
cd foxium
git submodule update --init --recursiveThen, follow instructions to initialize Brave:
cd brave-browser
npm install
npm run init # This may take a while
./src/build/install-build-deps.shThen, build Brave. Because Brave forcibly sets their own cc_wrapper gn argument to a binary that directly execve's the string (cannot set environment variables or flags), we point to our own binary that sets the proper environment variables to ccache.
cd brave-browser
CC_WRAPPER="$PWD/foxium/source/cc" npm run build -- -C out/Component
npm start Component