2016-08-03
Tuesday, September 2, 2008
A collection of tools for dealing with Chromium development.
Meta checkout manager supporting both Subversion and GIT.
GYP is a Meta-Build system: a build system that generates other build systems.
Ninja is a small build system with a focus on speed.
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ export PATH=$PATH:/path/to/depot_tools
$ xcode-select --install
$ ls `xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs
$ mkdir chromium
$ cd chromium
$ fetch chromium # [fetch --no-history chromium]
$ cd src # All other commands are executed from the src/ directory.
$ gclient runhooks
$ cat > chromium.gyp_env <<EOF
{
"GYP_DEFINES": "OS=ios chromium_ios_signing=0",
"GYP_GENERATORS": "ninja,xcode-ninja",
}
EOF
$ mkdir chromium_ios
$ cd chromium_ios
$ fetch ios
$ cd src # All other commands are executed from the src/ directory.
$ gclient runhooks
$ ninja -C out/Debug chrome
$ ninja -C out/Debug-iphonesimulator All
$ ninja -C out/Debug-iphoneos All
out/{Debug|Release} directory
$ out/Debug-iphonesimulator/iossim out/Debug-iphonesimulator/ios_web_shell.app
$ launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist
$ ~/dev/chrome//src/xcodebuild/Debug/Chromium.app/Contents/MacOS/Chromium --renderer-startup-dialog