kjellander@webrtc.org | 8925662 | 2014-08-20 12:10:11 +0000 | [diff] [blame] | 1 | # 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.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 6 | vars = { |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 7 | 'extra_gyp_flag': '-Dextra_gyp_flag=0', |
| 8 | 'chromium_git': 'https://chromium.googlesource.com', |
kjellander | a713a40 | 2016-02-04 20:04:36 -0800 | [diff] [blame] | 9 | 'chromium_revision': '6e376b88131f333698f95eb35842c98aff051a9d', |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 10 | } |
| 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. |
| 14 | deps = { |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 15 | # 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.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 19 | |
Henrik Kjellander | 10ba3ee | 2015-04-29 14:47:53 +0200 | [diff] [blame] | 20 | 'src/third_party/junit-jar': |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 21 | Var('chromium_git') + '/external/webrtc/deps/third_party/junit@f35596b476aa6e62fd3b3857b9942ddcd13ce35e', # from svn revision 3367 |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | deps_os = { |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 25 | 'win': { |
| 26 | 'src/third_party/winsdk_samples/src': |
kjellander | 7cae30c | 2015-12-16 14:05:29 -0800 | [diff] [blame] | 27 | Var('chromium_git') + '/external/webrtc/deps/third_party/winsdk_samples_v71@e71b549167a665d7424d6f1dadfbff4b4aad1589', |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 +0000 | [diff] [blame] | 28 | }, |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 29 | } |
| 30 | |
kjellander@webrtc.org | afefed5 | 2014-10-01 06:03:47 +0000 | [diff] [blame] | 31 | # Define rules for which include paths are allowed in our source. |
kjellander@webrtc.org | 3bd4156 | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 32 | include_rules = [ |
| 33 | # Base is only used to build Android APK tests and may not be referenced by |
| 34 | # WebRTC production code. |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 35 | '-base', |
| 36 | '-chromium', |
Ivo Creusen | 747d5f6 | 2015-06-23 10:08:11 +0200 | [diff] [blame] | 37 | '+external/webrtc/webrtc', # Android platform build. |
kjellander@webrtc.org | afefed5 | 2014-10-01 06:03:47 +0000 | [diff] [blame] | 38 | '+gflags', |
kjellander@webrtc.org | d7e34e1 | 2015-01-26 19:17:26 +0000 | [diff] [blame] | 39 | '+libyuv', |
kjellander@webrtc.org | 561a9ec | 2014-09-02 09:39:35 +0000 | [diff] [blame] | 40 | '+net', |
| 41 | '+talk', |
| 42 | '+testing', |
kjellander@webrtc.org | afefed5 | 2014-10-01 06:03:47 +0000 | [diff] [blame] | 43 | '+third_party', |
Henrik Kjellander | 3525954 | 2015-04-23 08:58:21 +0200 | [diff] [blame] | 44 | '+unicode', |
kjellander | a96e2d7 | 2016-02-04 23:52:28 -0800 | [diff] [blame^] | 45 | '+usrsctplib', |
kjellander@webrtc.org | 561a9ec | 2014-09-02 09:39:35 +0000 | [diff] [blame] | 46 | '+webrtc', |
Henrik Boström | 9695d85 | 2015-05-06 10:42:15 +0200 | [diff] [blame] | 47 | '+vpx', |
kjellander@webrtc.org | 561a9ec | 2014-09-02 09:39:35 +0000 | [diff] [blame] | 48 | ] |
| 49 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 50 | hooks = [ |
| 51 | { |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 52 | # Check for legacy named top-level dir (named 'trunk'). |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 53 | 'name': 'check_root_dir_name', |
| 54 | 'pattern': '.', |
| 55 | 'action': ['python','-c', |
| 56 | ('import os,sys;' |
| 57 | 'script = os.path.join("trunk","check_root_dir.py");' |
| 58 | '_ = os.system("%s %s" % (sys.executable,script)) ' |
| 59 | 'if os.path.exists(script) else 0')], |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 60 | }, |
| 61 | { |
kjellander@webrtc.org | 8925662 | 2014-08-20 12:10:11 +0000 | [diff] [blame] | 62 | # Clone chromium and its deps. |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 63 | 'name': 'sync chromium', |
| 64 | 'pattern': '.', |
| 65 | 'action': ['python', '-u', 'src/sync_chromium.py', |
| 66 | '--target-revision', Var('chromium_revision')], |
wjia@webrtc.org | 03cfde2 | 2014-01-14 17:48:34 +0000 | [diff] [blame] | 67 | }, |
kjellander@webrtc.org | 11bea89 | 2014-07-03 17:04:12 +0000 | [diff] [blame] | 68 | { |
kjellander@webrtc.org | 8925662 | 2014-08-20 12:10:11 +0000 | [diff] [blame] | 69 | # Create links to shared dependencies in Chromium. |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 70 | 'name': 'setup_links', |
| 71 | 'pattern': '.', |
| 72 | 'action': ['python', 'src/setup_links.py'], |
kjellander@webrtc.org | 27ab19d | 2014-06-21 19:30:29 +0000 | [diff] [blame] | 73 | }, |
| 74 | { |
Henrik Kjellander | 27576e0 | 2015-10-15 14:24:09 +0200 | [diff] [blame] | 75 | # This clobbers when necessary (based on get_landmines.py). It should be |
| 76 | # an early hook but it will need to be run after syncing Chromium and |
| 77 | # setting up the links, so the script actually exists. |
| 78 | 'name': 'landmines', |
| 79 | 'pattern': '.', |
| 80 | 'action': [ |
| 81 | 'python', |
| 82 | 'src/build/landmines.py', |
| 83 | '--landmine-scripts', |
| 84 | 'src/webrtc/build/get_landmines.py', |
| 85 | '--src-dir', |
| 86 | 'src', |
| 87 | ], |
| 88 | }, |
| 89 | { |
Henrik Kjellander | a49f515 | 2015-03-25 13:48:55 +0100 | [diff] [blame] | 90 | # Pull sanitizer-instrumented third-party libraries if requested via |
| 91 | # GYP_DEFINES. This could be done as part of sync_chromium.py above |
| 92 | # but then we would need to run all the Chromium hooks each time, |
| 93 | # which will slow things down a lot. |
| 94 | 'name': 'instrumented_libraries', |
| 95 | 'pattern': '\\.sha1', |
| 96 | 'action': ['python', 'src/third_party/instrumented_libraries/scripts/download_binaries.py'], |
| 97 | }, |
| 98 | { |
kjellander@webrtc.org | 8017458 | 2013-11-04 12:07:57 +0000 | [diff] [blame] | 99 | # Download test resources, i.e. video and audio files from Google Storage. |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 100 | 'pattern': '.', |
| 101 | 'action': ['download_from_google_storage', |
| 102 | '--directory', |
| 103 | '--recursive', |
| 104 | '--num_threads=10', |
| 105 | '--no_auth', |
kjellander | 4ff818e | 2015-12-18 12:29:28 -0800 | [diff] [blame] | 106 | '--quiet', |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 107 | '--bucket', 'chromium-webrtc-resources', |
| 108 | 'src/resources'], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 109 | }, |
| 110 | { |
| 111 | # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 112 | 'name': 'gyp', |
| 113 | 'pattern': '.', |
| 114 | 'action': ['python', 'src/webrtc/build/gyp_webrtc', |
| 115 | Var('extra_gyp_flag')], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 116 | }, |
| 117 | ] |
| 118 | |