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