Skip to content

Compiling WebCapsule

Roberto Perdisci edited this page Oct 9, 2015 · 14 revisions

Downloading Chromium's sources

  • Download and configure depot_tools

  • Download chromium/blink code

    • At checkout to initially fetch the code use:

      fetch --nohooks chromium --nosvn=True

      cd "$CHROMIUM_DIR"

      sudo ./build/install-build-deps.sh

      gclient sync

    • Checkout the Chromium LKGR branch.

      cd "$CHROMIUM_DIR"

      git checkout -b lkgr origin/lkgr

      git pull

      gclient sync

    • Reset the Chromium to the tested working version by executing:

      cd "$CHROMIUM_DIR"

      git reset --hard "45eed524365a1cbc612aba31ab36aafd7788d825"

      gclient sync

      git pull

      gclient sync

  • Download WebCapsule's source code and copy it over $CHROMIUM_DIR. Notice that WebCapsule's code includes changes to a number of files in the Chromium source code, as well as the addition of several new files under src/third-party/WebKit/Source/core/inspector/. Our source code release only enables the "in memory" record and replay mode. We are planning to release the real-time offloading code at a later date.

Compile source code.

  • The first time you build Chromium+WebCapsule, you should do a clean build by executing the following:

    ninja -C out/Debug -t clean

    ./build/gyp_chromium -D"component=shared_library"

    ninja -C out/Debug chrome

  • See the running instructions.

Clone this wiki locally