NOTE: Do NOT use --no-history command line switch when cloning Chromium repository. If the most recent revision is not compatible with Sprocket, you have to reset to the Last Known Good Revision.
Inside Chromium's 'src' directory, run the following commands:
# make a work branch
git checkout -b sprocket
# get the code
git clone https://github.com/szeged/sprocket.git sprocket
# use a stable revision
git reset --hard "$(< sprocket/LKGR)" && gclient sync --nohooks
git apply sprocket/patch/gritsettings.patch
Next, run the selected platform's commands.
# run the config
./build/gyp_chromium sprocket/sprocket.gyp
# build it with 'sprocket' target
ninja -C out/Release sprocket
# run it from the out dir
./out/Release/sprocket
# run the config
export GYP_CROSSCOMPILE=1
./build/gyp_chromium sprocket/sprocket.gyp -Ddisable_nacl=1 -Dtarget_arch=arm -Darm_float_abi=hard
# build it with 'sprocket' target
ninja -C out/Release sprocket
# run it from the out dir
./out/Release/sprocket
# run the config
./build/gyp_chromium sprocket/sprocket.gyp -DOS=android
# build it with 'sprocket_apk' target
ninja -C out/Release sprocket_apk
# install the apk
./build/android/adb_install_apk.py --apk Sprocket.apk --release
# build the sandbox
ninja -C out/Release chrome_sandbox
# install it
BUILDTYPE=Release build/update-linux-sandbox.sh
# set the env
export CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox
# run sprocket with sandbox
./out/Release/sprocket --use-sandbox