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', |
Henrik Kjellander | 9f52448 | 2015-03-30 09:26:33 +0200 | [diff] [blame] | 9 | 'chromium_revision': '719b83983be9613eb80e99a0bc645776d59b76b3', |
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 | |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 20 | 'src/third_party/junit': |
| 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@webrtc.org | 8649fed | 2015-01-08 21:22:01 +0000 | [diff] [blame] | 27 | Var('chromium_git') + '/external/webrtc/deps/third_party/winsdk_samples_v71@c0cbedd854cb610a53226d9817416c4ab9a7d1e9', # from svn revision 7951 |
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', |
kjellander@webrtc.org | afefed5 | 2014-10-01 06:03:47 +0000 | [diff] [blame] | 37 | '+gflags', |
kjellander@webrtc.org | d7e34e1 | 2015-01-26 19:17:26 +0000 | [diff] [blame] | 38 | '+libyuv', |
kjellander@webrtc.org | 561a9ec | 2014-09-02 09:39:35 +0000 | [diff] [blame] | 39 | '+net', |
| 40 | '+talk', |
| 41 | '+testing', |
kjellander@webrtc.org | afefed5 | 2014-10-01 06:03:47 +0000 | [diff] [blame] | 42 | '+third_party', |
kjellander@webrtc.org | 561a9ec | 2014-09-02 09:39:35 +0000 | [diff] [blame] | 43 | '+webrtc', |
| 44 | ] |
| 45 | |
| 46 | # checkdeps.py shouldn't check include paths for files in these dirs: |
| 47 | skip_child_includes = [ |
pbos@webrtc.org | dc8dcb4 | 2014-09-17 07:44:33 +0000 | [diff] [blame] | 48 | 'webrtc/overrides', |
kjellander@webrtc.org | 3bd4156 | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 49 | ] |
| 50 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 51 | hooks = [ |
| 52 | { |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 53 | # Check for legacy named top-level dir (named 'trunk'). |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 54 | 'name': 'check_root_dir_name', |
| 55 | 'pattern': '.', |
| 56 | 'action': ['python','-c', |
| 57 | ('import os,sys;' |
| 58 | 'script = os.path.join("trunk","check_root_dir.py");' |
| 59 | '_ = os.system("%s %s" % (sys.executable,script)) ' |
| 60 | 'if os.path.exists(script) else 0')], |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 61 | }, |
| 62 | { |
kjellander@webrtc.org | 8925662 | 2014-08-20 12:10:11 +0000 | [diff] [blame] | 63 | # Clone chromium and its deps. |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 64 | 'name': 'sync chromium', |
| 65 | 'pattern': '.', |
| 66 | 'action': ['python', '-u', 'src/sync_chromium.py', |
| 67 | '--target-revision', Var('chromium_revision')], |
wjia@webrtc.org | 03cfde2 | 2014-01-14 17:48:34 +0000 | [diff] [blame] | 68 | }, |
kjellander@webrtc.org | 11bea89 | 2014-07-03 17:04:12 +0000 | [diff] [blame] | 69 | { |
kjellander@webrtc.org | 8925662 | 2014-08-20 12:10:11 +0000 | [diff] [blame] | 70 | # Create links to shared dependencies in Chromium. |
kjellander@webrtc.org | 8e5c814 | 2014-12-03 07:11:44 +0000 | [diff] [blame] | 71 | 'name': 'setup_links', |
| 72 | 'pattern': '.', |
| 73 | 'action': ['python', 'src/setup_links.py'], |
kjellander@webrtc.org | 27ab19d | 2014-06-21 19:30:29 +0000 | [diff] [blame] | 74 | }, |
| 75 | { |
Henrik Kjellander | a49f515 | 2015-03-25 13:48:55 +0100 | [diff] [blame] | 76 | # Pull sanitizer-instrumented third-party libraries if requested via |
| 77 | # GYP_DEFINES. This could be done as part of sync_chromium.py above |
| 78 | # but then we would need to run all the Chromium hooks each time, |
| 79 | # which will slow things down a lot. |
| 80 | 'name': 'instrumented_libraries', |
| 81 | 'pattern': '\\.sha1', |
| 82 | 'action': ['python', 'src/third_party/instrumented_libraries/scripts/download_binaries.py'], |
| 83 | }, |
| 84 | { |
kjellander@webrtc.org | 8017458 | 2013-11-04 12:07:57 +0000 | [diff] [blame] | 85 | # 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] | 86 | 'pattern': '.', |
| 87 | 'action': ['download_from_google_storage', |
| 88 | '--directory', |
| 89 | '--recursive', |
| 90 | '--num_threads=10', |
| 91 | '--no_auth', |
| 92 | '--bucket', 'chromium-webrtc-resources', |
| 93 | 'src/resources'], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 94 | }, |
| 95 | { |
| 96 | # 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] | 97 | 'name': 'gyp', |
| 98 | 'pattern': '.', |
| 99 | 'action': ['python', 'src/webrtc/build/gyp_webrtc', |
| 100 | Var('extra_gyp_flag')], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 101 | }, |
| 102 | ] |
| 103 | |