diff options
Diffstat (limited to 'DEPS')
-rw-r--r-- | DEPS | 198 |
1 files changed, 88 insertions, 110 deletions
@@ -1,138 +1,116 @@ -use_relative_paths = True +# This file contains dependencies for WebRTC that are not shared with Chromium. +# If you wish to add a dependency that is present in Chromium's src/DEPS or a +# directory from the Chromium checkout, you should add it to setup_links.py +# instead. vars = { - # Override root_dir in your .gclient's custom_vars to specify a custom root - # folder name. - "root_dir": "trunk", - "extra_gyp_flag": "-Dextra_gyp_flag=0", - - # Use this googlecode_url variable only if there is an internal mirror for it. - # If you do not know, use the full path while defining your new deps entry. - "googlecode_url": "http://%s.googlecode.com/svn", - "chromium_trunk" : "http://src.chromium.org/svn/trunk", - "chromium_revision": "152335", - - # External resources like video and audio files used for testing purposes. - # Downloaded on demand when needed. - "webrtc_resources_revision": "10", + 'extra_gyp_flag': '-Dextra_gyp_flag=0', + 'chromium_git': 'https://chromium.googlesource.com', + 'chromium_revision': '657e8d9a9139da0735d73fc0fc6d90a05f980319', } # NOTE: Prefer revision numbers to tags for svn deps. Use http rather than # https; the latter can cause problems for users behind proxies. deps = { - "../chromium_deps": - File(Var("chromium_trunk") + "/src/DEPS@" + Var("chromium_revision")), - - "build": - Var("chromium_trunk") + "/src/build@" + Var("chromium_revision"), - - "testing": - Var("chromium_trunk") + "/src/testing@" + Var("chromium_revision"), - - "testing/gmock": - From("chromium_deps", "src/testing/gmock"), - - "testing/gtest": - From("chromium_deps", "src/testing/gtest"), - - "third_party/expat": - Var("chromium_trunk") + "/src/third_party/expat@" + Var("chromium_revision"), - - "third_party/google-gflags/src": - (Var("googlecode_url") % "google-gflags") + "/trunk/src@45", - - "third_party/libjpeg": - Var("chromium_trunk") + "/src/third_party/libjpeg@" + Var("chromium_revision"), - - "third_party/libjpeg_turbo": - From("chromium_deps", "src/third_party/libjpeg_turbo"), - - "third_party/libvpx/source/libvpx": - "http://git.chromium.org/webm/libvpx.git@c522217d", - - "third_party/libyuv": - (Var("googlecode_url") % "libyuv") + "/trunk@338", - - "third_party/protobuf": - Var("chromium_trunk") + "/src/third_party/protobuf@" + Var("chromium_revision"), + # When rolling gflags, also update + # https://chromium.googlesource.com/chromium/deps/webrtc/webrtc.DEPS + 'src/third_party/gflags/src': + Var('chromium_git') + '/external/gflags/src@e7390f9185c75f8d902c05ed7d20bb94eb914d0c', # from svn revision 82 - "third_party/yasm": - Var("chromium_trunk") + "/src/third_party/yasm@" + Var("chromium_revision"), - - "third_party/yasm/source/patched-yasm": - From("chromium_deps", "src/third_party/yasm/source/patched-yasm"), - - "tools/clang": - Var("chromium_trunk") + "/src/tools/clang@" + Var("chromium_revision"), - - "tools/gyp": - From("chromium_deps", "src/tools/gyp"), - - "tools/python": - Var("chromium_trunk") + "/src/tools/python@" + Var("chromium_revision"), - - "tools/valgrind": - Var("chromium_trunk") + "/src/tools/valgrind@" + Var("chromium_revision"), - - # Needed by build/common.gypi. - "tools/win/supalink": - Var("chromium_trunk") + "/src/tools/win/supalink@" + Var("chromium_revision"), + 'src/third_party/junit-jar': + Var('chromium_git') + '/external/webrtc/deps/third_party/junit@f35596b476aa6e62fd3b3857b9942ddcd13ce35e', # from svn revision 3367 } deps_os = { - "win": { - # Use our own, stripped down, version of Cygwin (required by GYP). - "third_party/cygwin": - (Var("googlecode_url") % "webrtc") + "/deps/third_party/cygwin@2672", - - # Used by libjpeg-turbo. - "third_party/yasm/binaries": - From("chromium_deps", "src/third_party/yasm/binaries"), - }, - "unix": { - "third_party/gold": - From("chromium_deps", "src/third_party/gold"), + 'win': { + 'src/third_party/winsdk_samples/src': + Var('chromium_git') + '/external/webrtc/deps/third_party/winsdk_samples_v71@c0cbedd854cb610a53226d9817416c4ab9a7d1e9', # from svn revision 7951 }, } +# Define rules for which include paths are allowed in our source. +include_rules = [ + # Base is only used to build Android APK tests and may not be referenced by + # WebRTC production code. + '-base', + '-chromium', + '+external/webrtc/webrtc', # Android platform build. + '+gflags', + '+libyuv', + '+net', + '+talk', + '+testing', + '+third_party', + '+unicode', + '+webrtc', + '+vpx', +] + hooks = [ { - # Create a supplement.gypi file under trunk/src. This file will be picked - # up by gyp and used to enable the standalone build. - "pattern": ".", - "action": ["python", Var("root_dir") + "/tools/create_supplement_gypi.py", - Var("root_dir") + "/src/supplement.gypi"], + # Check for legacy named top-level dir (named 'trunk'). + 'name': 'check_root_dir_name', + 'pattern': '.', + 'action': ['python','-c', + ('import os,sys;' + 'script = os.path.join("trunk","check_root_dir.py");' + '_ = os.system("%s %s" % (sys.executable,script)) ' + 'if os.path.exists(script) else 0')], }, { - # Pull clang on mac. If nothing changed, or on non-mac platforms, this takes - # zero seconds to run. If something changed, it downloads a prebuilt clang. - "pattern": ".", - "action": ["python", Var("root_dir") + "/tools/clang/scripts/update.py", - "--mac-only"], + # Clone chromium and its deps. + 'name': 'sync chromium', + 'pattern': '.', + 'action': ['python', '-u', 'src/sync_chromium.py', + '--target-revision', Var('chromium_revision')], }, { - # Update the cygwin mount on Windows. - # This is necessary to get the correct mapping between e.g. /bin and the - # cygwin path on Windows. Without it we can't run bash scripts in actions. - # Ideally this should be solved in "pylib/gyp/msvs_emulation.py". - "pattern": ".", - "action": ["python", Var("root_dir") + "/build/win/setup_cygwin_mount.py", - "--win-only"], + # Create links to shared dependencies in Chromium. + 'name': 'setup_links', + 'pattern': '.', + 'action': ['python', 'src/setup_links.py'], }, { - # Download test resources, i.e. video and audio files. If the latest - # version is already downloaded, this takes zero seconds to run. - # If a newer version or no current download exists, it will download - # the resources and extract them. - "pattern": ".", - "action": ["python", Var("root_dir") + "/tools/resources/update.py"], + # This clobbers when necessary (based on get_landmines.py). It should be + # an early hook but it will need to be run after syncing Chromium and + # setting up the links, so the script actually exists. + 'name': 'landmines', + 'pattern': '.', + 'action': [ + 'python', + 'src/build/landmines.py', + '--landmine-scripts', + 'src/webrtc/build/get_landmines.py', + '--src-dir', + 'src', + ], + }, + { + # Pull sanitizer-instrumented third-party libraries if requested via + # GYP_DEFINES. This could be done as part of sync_chromium.py above + # but then we would need to run all the Chromium hooks each time, + # which will slow things down a lot. + 'name': 'instrumented_libraries', + 'pattern': '\\.sha1', + 'action': ['python', 'src/third_party/instrumented_libraries/scripts/download_binaries.py'], + }, + { + # Download test resources, i.e. video and audio files from Google Storage. + 'pattern': '.', + 'action': ['download_from_google_storage', + '--directory', + '--recursive', + '--num_threads=10', + '--no_auth', + '--bucket', 'chromium-webrtc-resources', + 'src/resources'], }, { # A change to a .gyp, .gypi, or to GYP itself should run the generator. - "pattern": ".", - "action": ["python", Var("root_dir") + "/build/gyp_chromium", - "--depth=" + Var("root_dir"), Var("root_dir") + "/webrtc.gyp", - Var("extra_gyp_flag")], + 'name': 'gyp', + 'pattern': '.', + 'action': ['python', 'src/webrtc/build/gyp_webrtc', + Var('extra_gyp_flag')], }, ] |