blob: ef00b5975b63032a98cc87695ba150bb752ce2d4 [file] [log] [blame]
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00001use_relative_paths = True
2
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +00003vars = {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00004 # Override root_dir in your .gclient's custom_vars to specify a custom root
5 # folder name.
6 "root_dir": "trunk",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +00007 "extra_gyp_flag": "-Dextra_gyp_flag=0",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +00008
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +00009 # Use this googlecode_url variable only if there is an internal mirror for it.
10 # If you do not know, use the full path while defining your new deps entry.
11 "googlecode_url": "http://%s.googlecode.com/svn",
12 "chromium_trunk" : "http://src.chromium.org/svn/trunk",
13 "chromium_revision": "143348",
14
15 # External resources like video and audio files used for testing purposes.
16 # Downloaded on demand when needed.
tina.legrand@webrtc.orgba468042012-08-17 10:38:28 +000017 "webrtc_resources_revision": "10",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000018}
19
20# NOTE: Prefer revision numbers to tags for svn deps. Use http rather than
21# https; the latter can cause problems for users behind proxies.
22deps = {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000023 "../chromium_deps":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000024 File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")),
25
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000026 "build":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000027 Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"),
28
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000029 "testing":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000030 Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"),
31
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000032 "testing/gmock":
33 From("chromium_deps", "src/testing/gmock"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000034
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000035 "testing/gtest":
36 From("chromium_deps", "src/testing/gtest"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000037
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000038 "third_party/expat":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000039 Var("chromium_trunk") + "/src/third_party/expat@" + Var("chromium_revision"),
40
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000041 "third_party/google-gflags/src":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000042 (Var("googlecode_url") % "google-gflags") + "/trunk/src@45",
43
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000044 "third_party/libjpeg":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000045 Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"),
46
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000047 "third_party/libjpeg_turbo":
48 From("chromium_deps", "src/third_party/libjpeg_turbo"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000049
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000050 "third_party/libvpx/source/libvpx":
stefan@webrtc.orgc3115832012-08-17 06:57:58 +000051 "http://git.chromium.org/webm/libvpx.git@69babd3",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000052
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000053 "third_party/libyuv":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000054 (Var("googlecode_url") % "libyuv") + "/trunk@255",
55
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000056 "third_party/protobuf":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000057 Var("chromium_trunk") + "/src/third_party/protobuf@" + Var("chromium_revision"),
58
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000059 "third_party/yasm":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000060 Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"),
61
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000062 "third_party/yasm/source/patched-yasm":
63 From("chromium_deps", "src/third_party/yasm/source/patched-yasm"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000064
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000065 "tools/clang":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000066 Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"),
67
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000068 "tools/gyp":
69 From("chromium_deps", "src/tools/gyp"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000070
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000071 "tools/python":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000072 Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"),
73
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000074 "tools/valgrind":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000075 Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"),
76
77 # Needed by build/common.gypi.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000078 "tools/win/supalink":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000079 Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"),
80}
81
82deps_os = {
83 "win": {
84 # Use our own, stripped down, version of Cygwin (required by GYP).
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000085 "third_party/cygwin":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000086 (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin",
87
88 # Used by libjpeg-turbo.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000089 "third_party/yasm/binaries":
90 From("chromium_deps", "src/third_party/yasm/binaries"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000091 },
92 "unix": {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000093 "third_party/gold":
94 From("chromium_deps", "src/third_party/gold"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000095 },
96}
97
98hooks = [
99 {
100 # Create a supplement.gypi file under trunk/src. This file will be picked
101 # up by gyp and used to enable the standalone build.
102 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000103 "action": ["python", Var("root_dir") + "/tools/create_supplement_gypi.py",
104 Var("root_dir") + "/src/supplement.gypi"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000105 },
106 {
107 # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes
108 # zero seconds to run. If something changed, it downloads a prebuilt clang.
109 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000110 "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py",
111 "--mac-only"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000112 },
113 {
stefan@webrtc.orgc3115832012-08-17 06:57:58 +0000114 # Update the cygwin mount on Windows.
115 # This is necessary to get the correct mapping between e.g. /bin and the
116 # cygwin path on Windows. Without it we can't run bash scripts in actions.
117 # Ideally this should be solved in "pylib/gyp/msvs_emulation.py".
118 "pattern": ".",
119 "action": ["python", Var("root_dir") + "/build/win/setup_cygwin_mount.py",
120 "--win-only"],
121 },
122 {
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000123 # Download test resources, i.e. video and audio files. If the latest
124 # version is already downloaded, this takes zero seconds to run.
125 # If a newer version or no current download exists, it will download
126 # the resources and extract them.
127 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000128 "action": ["python", Var("root_dir") + "/tools/resources/update.py"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000129 },
130 {
131 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
132 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000133 "action": ["python", Var("root_dir") + "/build/gyp_chromium",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +0000134 "--depth=" + Var("root_dir"), Var("root_dir") + "/webrtc.gyp",
135 Var("extra_gyp_flag")],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000136 },
137]
138