blob: 7a4abe57bc7b67d079f01ab427373f457406fa59 [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',
kjellander29451532016-02-08 04:17:38 -08009 'chromium_revision': '3a90ecfeb74acfc47de7df8b531ef30aa743f296',
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000010}
11
12# NOTE: Prefer revision numbers to tags for svn deps. Use http rather than
13# https; the latter can cause problems for users behind proxies.
14deps = {
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000015 # When rolling gflags, also update
16 # https://chromium.googlesource.com/chromium/deps/webrtc/webrtc.DEPS
17 'src/third_party/gflags/src':
18 Var('chromium_git') + '/external/gflags/src@e7390f9185c75f8d902c05ed7d20bb94eb914d0c', # from svn revision 82
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000019}
20
21deps_os = {
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000022 'win': {
23 'src/third_party/winsdk_samples/src':
kjellander7cae30c2015-12-16 14:05:29 -080024 Var('chromium_git') + '/external/webrtc/deps/third_party/winsdk_samples_v71@e71b549167a665d7424d6f1dadfbff4b4aad1589',
henrike@webrtc.org8d27a1c2013-07-23 18:15:11 +000025 },
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000026}
27
kjellander@webrtc.orgafefed52014-10-01 06:03:47 +000028# Define rules for which include paths are allowed in our source.
kjellander@webrtc.org3bd41562014-09-01 11:06:37 +000029include_rules = [
30 # Base is only used to build Android APK tests and may not be referenced by
31 # WebRTC production code.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000032 '-base',
33 '-chromium',
Ivo Creusen747d5f62015-06-23 10:08:11 +020034 '+external/webrtc/webrtc', # Android platform build.
kjellander@webrtc.orgafefed52014-10-01 06:03:47 +000035 '+gflags',
kjellander@webrtc.orgd7e34e12015-01-26 19:17:26 +000036 '+libyuv',
kjellander@webrtc.org561a9ec2014-09-02 09:39:35 +000037 '+net',
38 '+talk',
39 '+testing',
kjellander@webrtc.orgafefed52014-10-01 06:03:47 +000040 '+third_party',
Henrik Kjellander35259542015-04-23 08:58:21 +020041 '+unicode',
kjellandera96e2d72016-02-04 23:52:28 -080042 '+usrsctplib',
kjellander@webrtc.org561a9ec2014-09-02 09:39:35 +000043 '+webrtc',
Henrik Boström9695d852015-05-06 10:42:15 +020044 '+vpx',
kjellander@webrtc.org561a9ec2014-09-02 09:39:35 +000045]
46
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +000047hooks = [
48 {
kjellander@webrtc.org0b0ac822014-10-09 09:11:27 +000049 # Check for legacy named top-level dir (named 'trunk').
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000050 'name': 'check_root_dir_name',
51 'pattern': '.',
52 'action': ['python','-c',
53 ('import os,sys;'
54 'script = os.path.join("trunk","check_root_dir.py");'
55 '_ = os.system("%s %s" % (sys.executable,script)) '
56 'if os.path.exists(script) else 0')],
kjellander@webrtc.org0b0ac822014-10-09 09:11:27 +000057 },
58 {
kjellander@webrtc.org89256622014-08-20 12:10:11 +000059 # Clone chromium and its deps.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000060 'name': 'sync chromium',
61 'pattern': '.',
62 'action': ['python', '-u', 'src/sync_chromium.py',
63 '--target-revision', Var('chromium_revision')],
wjia@webrtc.org03cfde22014-01-14 17:48:34 +000064 },
kjellander@webrtc.org11bea892014-07-03 17:04:12 +000065 {
kjellander@webrtc.org89256622014-08-20 12:10:11 +000066 # Create links to shared dependencies in Chromium.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000067 'name': 'setup_links',
68 'pattern': '.',
69 'action': ['python', 'src/setup_links.py'],
kjellander@webrtc.org27ab19d2014-06-21 19:30:29 +000070 },
71 {
Henrik Kjellander27576e02015-10-15 14:24:09 +020072 # This clobbers when necessary (based on get_landmines.py). It should be
73 # an early hook but it will need to be run after syncing Chromium and
74 # setting up the links, so the script actually exists.
75 'name': 'landmines',
76 'pattern': '.',
77 'action': [
78 'python',
79 'src/build/landmines.py',
80 '--landmine-scripts',
81 'src/webrtc/build/get_landmines.py',
82 '--src-dir',
83 'src',
84 ],
85 },
86 {
Henrik Kjellandera49f5152015-03-25 13:48:55 +010087 # Pull sanitizer-instrumented third-party libraries if requested via
88 # GYP_DEFINES. This could be done as part of sync_chromium.py above
89 # but then we would need to run all the Chromium hooks each time,
90 # which will slow things down a lot.
91 'name': 'instrumented_libraries',
92 'pattern': '\\.sha1',
93 'action': ['python', 'src/third_party/instrumented_libraries/scripts/download_binaries.py'],
94 },
95 {
kjellander@webrtc.org80174582013-11-04 12:07:57 +000096 # Download test resources, i.e. video and audio files from Google Storage.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +000097 'pattern': '.',
98 'action': ['download_from_google_storage',
99 '--directory',
100 '--recursive',
101 '--num_threads=10',
102 '--no_auth',
kjellander4ff818e2015-12-18 12:29:28 -0800103 '--quiet',
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000104 '--bucket', 'chromium-webrtc-resources',
105 'src/resources'],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000106 },
107 {
108 # A change to a .gyp, .gypi, or to GYP itself should run the generator.
kjellander@webrtc.org8e5c8142014-12-03 07:11:44 +0000109 'name': 'gyp',
110 'pattern': '.',
111 'action': ['python', 'src/webrtc/build/gyp_webrtc',
112 Var('extra_gyp_flag')],
andrew@webrtc.org4ce52bb2012-07-31 21:54:13 +0000113 },
114]
115