blob: 7446956792ea04c3d98debcf01ab9a72bd8f9843 [file] [log] [blame]
kjellander@webrtc.org89256622014-08-20 12:10:11 +00001# This file contains dependencies for WebRTC that are not shared with Chromium.
2# If you wish to add a dependency that is present in Chromium's src/DEPS or a
3# directory from the Chromium checkout, you should add it to setup_links.py
4# instead.
5
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +00006vars = {
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +00007 'extra_gyp_flag': '-Dextra_gyp_flag=0',
8 'chromium_git': 'https://chromium.googlesource.com',
kjellander519da002016-09-20 13:23:04 -07009 'chromium_revision': 'cede888c27275835e5aaadf5dac49379eb3ac106',
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000010}
11
kjellander4bba35f2016-02-09 06:47:39 -080012# NOTE: Use http rather than https; the latter can cause problems for users
13# behind proxies.
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000014deps = {
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000015 'src/third_party/gflags/src':
kjellander4bba35f2016-02-09 06:47:39 -080016 Var('chromium_git') + '/external/github.com/gflags/gflags@03bebcb065c83beff83d50ae025a55a4bf94dfca',
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000017}
18
19deps_os = {
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000020 'win': {
21 'src/third_party/winsdk_samples/src':
kjellander7cae30c2015-12-16 14:05:29 -080022 Var('chromium_git') + '/external/webrtc/deps/third_party/winsdk_samples_v71@e71b549167a665d7424d6f1dadfbff4b4aad1589',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000023 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000024}
25
26hooks = [
27 {
kjellander@webrtc.org0b0ac822014-10-09 09:11:27 +000028 # Check for legacy named top-level dir (named 'trunk').
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000029 'name': 'check_root_dir_name',
30 'pattern': '.',
31 'action': ['python','-c',
32 ('import os,sys;'
33 'script = os.path.join("trunk","check_root_dir.py");'
34 '_ = os.system("%s %s" % (sys.executable,script)) '
35 'if os.path.exists(script) else 0')],
kjellander@webrtc.org0b0ac822014-10-09 09:11:27 +000036 },
37 {
kjellander@webrtc.org89256622014-08-20 12:10:11 +000038 # Clone chromium and its deps.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000039 'name': 'sync chromium',
40 'pattern': '.',
41 'action': ['python', '-u', 'src/sync_chromium.py',
42 '--target-revision', Var('chromium_revision')],
wjia@webrtc.org03cfde22014-01-14 17:48:34 +000043 },
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000044 {
kjellander@webrtc.org89256622014-08-20 12:10:11 +000045 # Create links to shared dependencies in Chromium.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000046 'name': 'setup_links',
47 'pattern': '.',
48 'action': ['python', 'src/setup_links.py'],
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +000049 },
50 {
Henrik Kjellander27576e02015-10-15 14:24:09 +020051 # This clobbers when necessary (based on get_landmines.py). It should be
52 # an early hook but it will need to be run after syncing Chromium and
53 # setting up the links, so the script actually exists.
54 'name': 'landmines',
55 'pattern': '.',
56 'action': [
57 'python',
58 'src/build/landmines.py',
59 '--landmine-scripts',
60 'src/webrtc/build/get_landmines.py',
61 '--src-dir',
62 'src',
63 ],
64 },
65 {
Henrik Kjellandera49f5152015-03-25 13:48:55 +010066 # Pull sanitizer-instrumented third-party libraries if requested via
67 # GYP_DEFINES. This could be done as part of sync_chromium.py above
68 # but then we would need to run all the Chromium hooks each time,
69 # which will slow things down a lot.
70 'name': 'instrumented_libraries',
71 'pattern': '\\.sha1',
72 'action': ['python', 'src/third_party/instrumented_libraries/scripts/download_binaries.py'],
73 },
74 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +000075 # Download test resources, i.e. video and audio files from Google Storage.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000076 'pattern': '.',
77 'action': ['download_from_google_storage',
78 '--directory',
79 '--recursive',
80 '--num_threads=10',
81 '--no_auth',
kjellander4ff818e2015-12-18 12:29:28 -080082 '--quiet',
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000083 '--bucket', 'chromium-webrtc-resources',
84 'src/resources'],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000085 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000086]
87