blob: ff37b53a65973f6a5540105c41bb7447d326487c [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",
fischman@webrtc.orgb7a8f432013-06-04 17:10:24 +000013 "chromium_revision": "203806",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000014
kjellander@webrtc.org430464c2013-06-04 16:29:45 +000015 # A small subset of WebKit is needed for the Android Python test framework.
16 "webkit_trunk": "http://src.chromium.org/blink/trunk",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000017}
18
19# NOTE: Prefer revision numbers to tags for svn deps. Use http rather than
20# https; the latter can cause problems for users behind proxies.
21deps = {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000022 "../chromium_deps":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000023 File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")),
24
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000025 "build":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000026 Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"),
27
andrew@webrtc.orgb9d20642012-09-19 23:08:50 +000028 # Needed by common.gypi.
29 "google_apis/build":
30 Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"),
31
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000032 "testing":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000033 Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"),
34
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000035 "testing/gmock":
36 From("chromium_deps", "src/testing/gmock"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000037
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000038 "testing/gtest":
39 From("chromium_deps", "src/testing/gtest"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000040
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000041 "third_party/expat":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000042 Var("chromium_trunk") + "/src/third_party/expat@" + Var("chromium_revision"),
43
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000044 "third_party/google-gflags/src":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000045 (Var("googlecode_url") % "google-gflags") + "/trunk/src@45",
46
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000047 "third_party/libjpeg":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000048 Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"),
49
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000050 "third_party/libjpeg_turbo":
51 From("chromium_deps", "src/third_party/libjpeg_turbo"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000052
andrew@webrtc.orge6e344a2013-02-12 19:35:18 +000053 "third_party/libvpx":
marpan@webrtc.orgbb4f2252013-06-21 22:19:34 +000054 Var("chromium_trunk") + "/deps/third_party/libvpx@207593",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000055
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000056 "third_party/libyuv":
fbarchard@google.com2ef95132013-06-11 22:03:29 +000057 (Var("googlecode_url") % "libyuv") + "/trunk@723",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000058
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000059 "third_party/opus":
tina.legrand@webrtc.orge86f43b2013-03-22 12:39:54 +000060 Var("chromium_trunk") + "/src/third_party/opus@185405",
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000061
62 "third_party/opus/src":
tina.legrand@webrtc.orge86f43b2013-03-22 12:39:54 +000063 Var("chromium_trunk") + "/deps/third_party/opus@185324",
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000064
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000065 "third_party/protobuf":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000066 Var("chromium_trunk") + "/src/third_party/protobuf@" + Var("chromium_revision"),
67
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000068 "third_party/yasm":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000069 Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"),
70
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000071 "third_party/yasm/source/patched-yasm":
72 From("chromium_deps", "src/third_party/yasm/source/patched-yasm"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000073
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000074 "tools/clang":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000075 Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"),
76
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000077 "tools/gyp":
78 From("chromium_deps", "src/tools/gyp"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000079
andrew@webrtc.org225f2b82013-05-20 21:12:58 +000080 "tools/protoc_wrapper":
81 Var("chromium_trunk") + "/src/tools/protoc_wrapper@" + Var("chromium_revision"),
82
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000083 "tools/python":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000084 Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"),
85
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000086 "tools/valgrind":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000087 Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"),
88
89 # Needed by build/common.gypi.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000090 "tools/win/supalink":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000091 Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"),
92}
93
94deps_os = {
95 "win": {
96 # Use our own, stripped down, version of Cygwin (required by GYP).
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000097 "third_party/cygwin":
andrew@webrtc.org7b2e9192012-08-28 15:56:40 +000098 (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000099
andrew@webrtc.org8cd18c52012-11-21 18:46:45 +0000100 "third_party/winsdk_samples/src":
101 (Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145",
102
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000103 # Used by libjpeg-turbo.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000104 "third_party/yasm/binaries":
105 From("chromium_deps", "src/third_party/yasm/binaries"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000106 },
107 "unix": {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000108 "third_party/gold":
109 From("chromium_deps", "src/third_party/gold"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000110 },
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000111 "android": {
kjellander@webrtc.org6cfe1782013-06-18 07:14:33 +0000112 # Precompiled tools needed for Android test execution. Needed since we can't
113 # compile them from source in WebRTC since they depend on Chromium's base.
114 "tools/android":
115 (Var("googlecode_url") % "webrtc") + "/deps/tools/android@4235",
116
kjellander@webrtc.org2d7617a2013-06-19 09:10:49 +0000117 "tools/android-dummy-test":
118 (Var("googlecode_url") % "webrtc") + "/deps/tools/android-dummy-test@4244",
119
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000120 "third_party/android_tools":
121 From("chromium_deps", "src/third_party/android_tools"),
122
123 "third_party/android_testrunner":
124 Var("chromium_trunk") + "/src/third_party/android_testrunner@" + Var("chromium_revision"),
kjellander@webrtc.org430464c2013-06-04 16:29:45 +0000125
126 "third_party/WebKit/Tools/Scripts":
127 Var("webkit_trunk") + "/Tools/Scripts@151677",
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000128 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000129}
130
131hooks = [
132 {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000133 # Create a supplement.gypi file under trunk/webrtc. This file will be picked
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000134 # up by gyp and used to enable the standalone build.
135 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000136 "action": ["python", Var("root_dir") + "/tools/create_supplement_gypi.py",
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000137 Var("root_dir") + "/webrtc/supplement.gypi"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000138 },
139 {
140 # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes
141 # zero seconds to run. If something changed, it downloads a prebuilt clang.
142 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000143 "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py",
144 "--mac-only"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000145 },
146 {
stefan@webrtc.orgc3115832012-08-17 06:57:58 +0000147 # Update the cygwin mount on Windows.
148 # This is necessary to get the correct mapping between e.g. /bin and the
149 # cygwin path on Windows. Without it we can't run bash scripts in actions.
150 # Ideally this should be solved in "pylib/gyp/msvs_emulation.py".
151 "pattern": ".",
152 "action": ["python", Var("root_dir") + "/build/win/setup_cygwin_mount.py",
153 "--win-only"],
154 },
155 {
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000156 # Download test resources, i.e. video and audio files. If the latest
157 # version is already downloaded, this takes zero seconds to run.
158 # If a newer version or no current download exists, it will download
159 # the resources and extract them.
160 "pattern": ".",
henrike@webrtc.org34773d92013-07-08 14:55:23 +0000161 "action": ["python", Var("root_dir") + "/webrtc/tools/update_resources.py"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000162 },
163 {
164 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
165 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000166 "action": ["python", Var("root_dir") + "/build/gyp_chromium",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +0000167 "--depth=" + Var("root_dir"), Var("root_dir") + "/webrtc.gyp",
168 Var("extra_gyp_flag")],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000169 },
170]
171