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 = { |
andrew@webrtc.org | ea5d0e5 | 2012-08-09 17:37:03 +0000 | [diff] [blame] | 7 | "extra_gyp_flag": "-Dextra_gyp_flag=0", |
andrew@webrtc.org | 9a3f83f | 2012-08-07 06:03:22 +0000 | [diff] [blame] | 8 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 9 | # Use this googlecode_url variable only if there is an internal mirror for it. |
| 10 | # If you do not know, use the full path while defining your new deps entry. |
| 11 | "googlecode_url": "http://%s.googlecode.com/svn", |
kjellander@webrtc.org | 84515f8 | 2014-12-02 08:48:08 +0000 | [diff] [blame] | 12 | "chromium_revision": "24b4c7372a4e6a59c151909a5889906e57fb71c4", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than |
| 16 | # https; the latter can cause problems for users behind proxies. |
| 17 | deps = { |
kjellander@webrtc.org | cbdb9d1 | 2013-08-20 16:18:35 +0000 | [diff] [blame] | 18 | # When rolling gflags, also update deps/third_party/webrtc/webrtc.DEPS/DEPS |
| 19 | # in Chromium's repo. |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 20 | "src/third_party/gflags/src": |
fischman@webrtc.org | dde7d4c | 2013-08-15 23:31:30 +0000 | [diff] [blame] | 21 | (Var("googlecode_url") % "gflags") + "/trunk/src@84", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 22 | |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 23 | "src/third_party/junit/": |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 +0000 | [diff] [blame] | 24 | (Var("googlecode_url") % "webrtc") + "/deps/third_party/junit@3367", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | deps_os = { |
| 28 | "win": { |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 29 | "src/third_party/winsdk_samples/src": |
andrew@webrtc.org | 8cd18c5 | 2012-11-21 18:46:45 +0000 | [diff] [blame] | 30 | (Var("googlecode_url") % "webrtc") + "/deps/third_party/winsdk_samples_v71@3145", |
henrike@webrtc.org | 8d27a1c | 2013-07-23 18:15:11 +0000 | [diff] [blame] | 31 | }, |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 32 | } |
| 33 | |
kjellander@webrtc.org | afefed5 | 2014-10-01 06:03:47 +0000 | [diff] [blame] | 34 | # Define rules for which include paths are allowed in our source. |
kjellander@webrtc.org | 3bd4156 | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 35 | include_rules = [ |
| 36 | # Base is only used to build Android APK tests and may not be referenced by |
| 37 | # WebRTC production code. |
| 38 | "-base", |
kjellander@webrtc.org | 561a9ec | 2014-09-02 09:39:35 +0000 | [diff] [blame] | 39 | "-chromium", |
kjellander@webrtc.org | afefed5 | 2014-10-01 06:03:47 +0000 | [diff] [blame] | 40 | '+gflags', |
kjellander@webrtc.org | 561a9ec | 2014-09-02 09:39:35 +0000 | [diff] [blame] | 41 | '+net', |
| 42 | '+talk', |
| 43 | '+testing', |
kjellander@webrtc.org | afefed5 | 2014-10-01 06:03:47 +0000 | [diff] [blame] | 44 | '+third_party', |
kjellander@webrtc.org | 561a9ec | 2014-09-02 09:39:35 +0000 | [diff] [blame] | 45 | '+webrtc', |
| 46 | ] |
| 47 | |
| 48 | # checkdeps.py shouldn't check include paths for files in these dirs: |
| 49 | skip_child_includes = [ |
pbos@webrtc.org | dc8dcb4 | 2014-09-17 07:44:33 +0000 | [diff] [blame] | 50 | 'webrtc/overrides', |
kjellander@webrtc.org | 3bd4156 | 2014-09-01 11:06:37 +0000 | [diff] [blame] | 51 | ] |
| 52 | |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 53 | hooks = [ |
| 54 | { |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 55 | # Check for legacy named top-level dir (named 'trunk'). |
| 56 | "name": "check_root_dir_name", |
| 57 | "pattern": ".", |
kjellander@webrtc.org | 1bada48 | 2014-10-09 10:53:02 +0000 | [diff] [blame] | 58 | "action": ["python","-c", |
kjellander@webrtc.org | c5593ef | 2014-10-10 07:16:05 +0000 | [diff] [blame] | 59 | ("import os,sys;" |
| 60 | "script = os.path.join('trunk','check_root_dir.py');" |
| 61 | "_ = os.system('%s %s' % (sys.executable,script)) " |
kjellander@webrtc.org | 1bada48 | 2014-10-09 10:53:02 +0000 | [diff] [blame] | 62 | "if os.path.exists(script) else 0")], |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 63 | }, |
| 64 | { |
kjellander@webrtc.org | 8925662 | 2014-08-20 12:10:11 +0000 | [diff] [blame] | 65 | # Clone chromium and its deps. |
| 66 | "name": "sync chromium", |
wjia@webrtc.org | 03cfde2 | 2014-01-14 17:48:34 +0000 | [diff] [blame] | 67 | "pattern": ".", |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 68 | "action": ["python", "-u", "src/sync_chromium.py", |
kjellander@webrtc.org | 8925662 | 2014-08-20 12:10:11 +0000 | [diff] [blame] | 69 | "--target-revision", Var("chromium_revision")], |
wjia@webrtc.org | 03cfde2 | 2014-01-14 17:48:34 +0000 | [diff] [blame] | 70 | }, |
kjellander@webrtc.org | 11bea89 | 2014-07-03 17:04:12 +0000 | [diff] [blame] | 71 | { |
kjellander@webrtc.org | 8925662 | 2014-08-20 12:10:11 +0000 | [diff] [blame] | 72 | # Create links to shared dependencies in Chromium. |
| 73 | "name": "setup_links", |
kjellander@webrtc.org | 11bea89 | 2014-07-03 17:04:12 +0000 | [diff] [blame] | 74 | "pattern": ".", |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 75 | "action": ["python", "src/setup_links.py"], |
kjellander@webrtc.org | 27ab19d | 2014-06-21 19:30:29 +0000 | [diff] [blame] | 76 | }, |
| 77 | { |
kjellander@webrtc.org | 8017458 | 2013-11-04 12:07:57 +0000 | [diff] [blame] | 78 | # Download test resources, i.e. video and audio files from Google Storage. |
kjellander@webrtc.org | 8925662 | 2014-08-20 12:10:11 +0000 | [diff] [blame] | 79 | "pattern": ".", |
kjellander@webrtc.org | 8017458 | 2013-11-04 12:07:57 +0000 | [diff] [blame] | 80 | "action": ["download_from_google_storage", |
| 81 | "--directory", |
| 82 | "--recursive", |
| 83 | "--num_threads=10", |
wjia@webrtc.org | 776d8df | 2014-01-27 19:55:16 +0000 | [diff] [blame] | 84 | "--no_auth", |
kjellander@webrtc.org | 8017458 | 2013-11-04 12:07:57 +0000 | [diff] [blame] | 85 | "--bucket", "chromium-webrtc-resources", |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 86 | "src/resources"], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 87 | }, |
| 88 | { |
| 89 | # A change to a .gyp, .gypi, or to GYP itself should run the generator. |
kjellander@webrtc.org | 6b0cbcb | 2014-03-10 09:51:17 +0000 | [diff] [blame] | 90 | "name": "gyp", |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 91 | "pattern": ".", |
kjellander@webrtc.org | 0b0ac82 | 2014-10-09 09:11:27 +0000 | [diff] [blame] | 92 | "action": ["python", "src/webrtc/build/gyp_webrtc", |
andrew@webrtc.org | ea5d0e5 | 2012-08-09 17:37:03 +0000 | [diff] [blame] | 93 | Var("extra_gyp_flag")], |
andrew@webrtc.org | 4ce52bb | 2012-07-31 21:54:13 +0000 | [diff] [blame] | 94 | }, |
| 95 | ] |
| 96 | |