|
LinuxBuildInstructions
Build instructions for Linux
This page describes how to build the Chromium code on Linux. Read this if you're interested in testing the build or porting code. Before Starting
export GYP_GENERATORS=make gclient sync Configuring
cd $CHROMIUM_ROOT/src make -j5 chrome # Good for a 4 core machine CompilationBuild in debug mode: $ cd $CHROMIUM_ROOT/src $ make The above builds all libraries and tests in all components. Specifying other target names to restrict the build to just what you're interested in. Example: to build just chrome: $ cd $CHROMIUM_ROOT/src $ make chrome or to build just the simplest unit test: $ cd $CHROMIUM_ROOT/src $ make base_unittests Or you can specify the explicit file you want to build: $ cd $CHROMIUM_ROOT/src $ make out/Debug/chrome ExecutablesExecutables are written in $CHROMIUM_ROOT/src/out/Debug for Debug builds, and $CHROMIUM_ROOT/src/out/Release for Release builds Release modeAdd BUILDTYPE=Release to the make invocation: $ cd $CHROMIUM_ROOT/src $ make BUILDTYPE=Release Seeing the actual commandsIf you want to see the actual commands that make is invoking, add V=1 to the make invocation. $ cd $CHROMIUM_ROOT/src $ make V=1 This is useful if, for example, you are debugging gyp changes, or otherwise need to see what make is actually doing. Troubleshooting
Advanced Features
Next StepsIf you want to contribute to the effort toward a Chromium-based browser for Linux, please check out the Linux Development page for more information. |