michael@0: use_relative_paths = True michael@0: michael@0: vars = { michael@0: "libyuv_trunk" : "https://libyuv.googlecode.com/svn/trunk", michael@0: michael@0: # Override root_dir in your .gclient's custom_vars to specify a custom root michael@0: # folder name. michael@0: "root_dir": "trunk", michael@0: "extra_gyp_flag": "-Dextra_gyp_flag=0", michael@0: michael@0: # Use this googlecode_url variable only if there is an internal mirror for it. michael@0: # If you do not know, use the full path while defining your new deps entry. michael@0: "googlecode_url": "http://%s.googlecode.com/svn", michael@0: "chromium_trunk" : "http://src.chromium.org/svn/trunk", michael@0: # chrome://version/ for revision of canary Chrome. michael@0: "chromium_revision": "232627", michael@0: } michael@0: michael@0: # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than michael@0: # https; the latter can cause problems for users behind proxies. michael@0: deps = { michael@0: "../chromium_deps": michael@0: File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")), michael@0: michael@0: "build": michael@0: Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"), michael@0: michael@0: # Needed by common.gypi. michael@0: "google_apis/build": michael@0: Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"), michael@0: michael@0: "testing": michael@0: Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"), michael@0: michael@0: "testing/gtest": michael@0: From("chromium_deps", "src/testing/gtest"), michael@0: michael@0: "tools/clang": michael@0: Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"), michael@0: michael@0: "tools/gyp": michael@0: From("chromium_deps", "src/tools/gyp"), michael@0: michael@0: "tools/python": michael@0: Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"), michael@0: michael@0: "tools/valgrind": michael@0: Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"), michael@0: michael@0: # Needed by build/common.gypi. michael@0: "tools/win/supalink": michael@0: Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"), michael@0: michael@0: "third_party/libjpeg_turbo": michael@0: From("chromium_deps", "src/third_party/libjpeg_turbo"), michael@0: michael@0: # Yasm assember required for libjpeg_turbo michael@0: "third_party/yasm": michael@0: Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"), michael@0: michael@0: "third_party/yasm/source/patched-yasm": michael@0: Var("chromium_trunk") + "/deps/third_party/yasm/patched-yasm@" + Var("chromium_revision"), michael@0: } michael@0: michael@0: deps_os = { michael@0: "win": { michael@0: # Use WebRTC's, stripped down, version of Cygwin (required by GYP). michael@0: "third_party/cygwin": michael@0: (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672", michael@0: michael@0: # Used by libjpeg-turbo. michael@0: # TODO(fbarchard): Remove binaries and run yasm from build folder. michael@0: "third_party/yasm/binaries": michael@0: Var("chromium_trunk") + "/deps/third_party/yasm/binaries@" + Var("chromium_revision"), michael@0: "third_party/yasm": None, michael@0: }, michael@0: "unix": { michael@0: "third_party/gold": michael@0: From("chromium_deps", "src/third_party/gold"), michael@0: }, michael@0: "android": { michael@0: "third_party/android_tools": michael@0: From("chromium_deps", "src/third_party/android_tools"), michael@0: michael@0: "third_party/libjpeg": michael@0: From("chromium_deps", "src/third_party/libjpeg"), michael@0: }, michael@0: "ios": { michael@0: # NSS, for SSLClientSocketNSS. michael@0: "third_party/nss": michael@0: From("chromium_deps", "src/third_party/nss"), michael@0: michael@0: "net/third_party/nss": michael@0: Var("chromium_trunk") + "/src/net/third_party/nss@" + Var("chromium_revision"), michael@0: michael@0: # class-dump utility to generate header files for undocumented SDKs. michael@0: "testing/iossim/third_party/class-dump": michael@0: From("chromium_deps", "src/testing/iossim/third_party/class-dump"), michael@0: michael@0: # Helper for running under the simulator. michael@0: "testing/iossim": michael@0: Var("chromium_trunk") + "/src/testing/iossim@" + Var("chromium_revision"), michael@0: }, michael@0: } michael@0: michael@0: hooks = [ michael@0: { michael@0: # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes michael@0: # zero seconds to run. If something changed, it downloads a prebuilt clang. michael@0: "pattern": ".", michael@0: "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py", michael@0: "--mac-only"], michael@0: }, michael@0: { michael@0: # A change to a .gyp, .gypi, or to GYP itself should run the generator. michael@0: "pattern": ".", michael@0: "action": ["python", Var("root_dir") + "/build/gyp_chromium", michael@0: "--depth=" + Var("root_dir"), Var("root_dir") + "/all.gyp", michael@0: Var("extra_gyp_flag")], michael@0: }, michael@0: { michael@0: # Update the cygwin mount on Windows. michael@0: # This is necessary to get the correct mapping between e.g. /bin and the michael@0: # cygwin path on Windows. Without it we can't run bash scripts in actions. michael@0: # Ideally this should be solved in "pylib/gyp/msvs_emulation.py". michael@0: "pattern": ".", michael@0: "action": ["python", Var("root_dir") + "/build/win/setup_cygwin_mount.py", michael@0: "--win-only"], michael@0: }, michael@0: ]