blob: 6c77a16d1af226425da1f09849d92dda850453f8 [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",
kjellander@webrtc.orgf806ad22013-04-15 05:52:57 +000013 "chromium_revision": "193311",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000014
15 # External resources like video and audio files used for testing purposes.
16 # Downloaded on demand when needed.
solenberg@webrtc.org56b5f772013-04-16 10:31:56 +000017 "webrtc_resources_revision": "16",
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.orgb9d20642012-09-19 23:08:50 +000029 # Needed by common.gypi.
30 "google_apis/build":
31 Var("chromium_trunk") + "/src/google_apis/build@" + Var("chromium_revision"),
32
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000033 "testing":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000034 Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"),
35
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000036 "testing/gmock":
37 From("chromium_deps", "src/testing/gmock"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000038
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000039 "testing/gtest":
40 From("chromium_deps", "src/testing/gtest"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000041
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000042 "third_party/expat":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000043 Var("chromium_trunk") + "/src/third_party/expat@" + Var("chromium_revision"),
44
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000045 "third_party/google-gflags/src":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000046 (Var("googlecode_url") % "google-gflags") + "/trunk/src@45",
47
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000048 "third_party/libjpeg":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000049 Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"),
50
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000051 "third_party/libjpeg_turbo":
52 From("chromium_deps", "src/third_party/libjpeg_turbo"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000053
andrew@webrtc.orge6e344a2013-02-12 19:35:18 +000054 "third_party/libvpx":
marpan@webrtc.orgc83b3562013-04-12 21:43:48 +000055 Var("chromium_trunk") + "/deps/third_party/libvpx@192165",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000056
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000057 "third_party/libyuv":
fbarchard@google.com7b48ced2013-03-24 02:58:00 +000058 (Var("googlecode_url") % "libyuv") + "/trunk@618",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000059
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000060 "third_party/opus":
tina.legrand@webrtc.orge86f43b2013-03-22 12:39:54 +000061 Var("chromium_trunk") + "/src/third_party/opus@185405",
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000062
63 "third_party/opus/src":
tina.legrand@webrtc.orge86f43b2013-03-22 12:39:54 +000064 Var("chromium_trunk") + "/deps/third_party/opus@185324",
tina.legrand@webrtc.org1f8c02a2012-10-25 12:37:08 +000065
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000066 "third_party/protobuf":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000067 Var("chromium_trunk") + "/src/third_party/protobuf@" + Var("chromium_revision"),
68
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000069 "third_party/yasm":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000070 Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"),
71
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000072 "third_party/yasm/source/patched-yasm":
73 From("chromium_deps", "src/third_party/yasm/source/patched-yasm"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000074
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000075 "tools/clang":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000076 Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"),
77
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000078 "tools/gyp":
79 From("chromium_deps", "src/tools/gyp"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000080
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000081 "tools/python":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000082 Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"),
83
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000084 "tools/valgrind":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000085 Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"),
86
87 # Needed by build/common.gypi.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000088 "tools/win/supalink":
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000089 Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"),
90}
91
92deps_os = {
93 "win": {
94 # Use our own, stripped down, version of Cygwin (required by GYP).
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +000095 "third_party/cygwin":
andrew@webrtc.org7b2e9192012-08-28 15:56:40 +000096 (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672",
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000097
andrew@webrtc.org8cd18c52012-11-21 18:46:45 +000098 "third_party/winsdk_samples/src":
99 (Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145",
100
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000101 # Used by libjpeg-turbo.
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000102 "third_party/yasm/binaries":
103 From("chromium_deps", "src/third_party/yasm/binaries"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000104 },
105 "unix": {
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000106 "third_party/gold":
107 From("chromium_deps", "src/third_party/gold"),
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000108 },
kjellander@webrtc.org18a21a02013-02-11 17:43:19 +0000109 "android": {
110 "third_party/android_tools":
111 From("chromium_deps", "src/third_party/android_tools"),
112
113 "third_party/android_testrunner":
114 Var("chromium_trunk") + "/src/third_party/android_testrunner@" + Var("chromium_revision"),
115
116 "third_party/WebKit/Tools/Scripts":
117 From("chromium_deps", "src/third_party/WebKit/Tools/Scripts"),
118 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000119}
120
121hooks = [
122 {
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000123 # Create a supplement.gypi file under trunk/webrtc. This file will be picked
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000124 # up by gyp and used to enable the standalone build.
125 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000126 "action": ["python", Var("root_dir") + "/tools/create_supplement_gypi.py",
andrew@webrtc.org14b43be2012-10-22 18:19:23 +0000127 Var("root_dir") + "/webrtc/supplement.gypi"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000128 },
129 {
130 # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes
131 # zero seconds to run. If something changed, it downloads a prebuilt clang.
132 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000133 "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py",
134 "--mac-only"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000135 },
136 {
stefan@webrtc.orgc3115832012-08-17 06:57:58 +0000137 # Update the cygwin mount on Windows.
138 # This is necessary to get the correct mapping between e.g. /bin and the
139 # cygwin path on Windows. Without it we can't run bash scripts in actions.
140 # Ideally this should be solved in "pylib/gyp/msvs_emulation.py".
141 "pattern": ".",
142 "action": ["python", Var("root_dir") + "/build/win/setup_cygwin_mount.py",
143 "--win-only"],
144 },
145 {
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000146 # Download test resources, i.e. video and audio files. If the latest
147 # version is already downloaded, this takes zero seconds to run.
148 # If a newer version or no current download exists, it will download
149 # the resources and extract them.
150 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000151 "action": ["python", Var("root_dir") + "/tools/resources/update.py"],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000152 },
153 {
154 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
155 "pattern": ".",
andrew@webrtc.org9a3f83f2012-08-07 06:03:22 +0000156 "action": ["python", Var("root_dir") + "/build/gyp_chromium",
andrew@webrtc.orgea5d0e52012-08-09 17:37:03 +0000157 "--depth=" + Var("root_dir"), Var("root_dir") + "/webrtc.gyp",
158 Var("extra_gyp_flag")],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000159 },
160]
161