| # 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 = { |
| 'chromium_git': 'https://chromium.googlesource.com', |
| 'chromium_revision': '5e821a778b85878bafcc8128f64333fd518c79a5', |
| } |
| |
| deps = { |
| 'src/third_party/gflags/src': |
| Var('chromium_git') + '/external/github.com/gflags/gflags@03bebcb065c83beff83d50ae025a55a4bf94dfca', |
| } |
| |
| deps_os = { |
| 'win': { |
| 'src/third_party/winsdk_samples/src': |
| Var('chromium_git') + '/external/webrtc/deps/third_party/winsdk_samples_v71@e71b549167a665d7424d6f1dadfbff4b4aad1589', |
| }, |
| } |
| |
| hooks = [ |
| { |
| # 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')], |
| }, |
| { |
| # Clone chromium and its deps. |
| 'name': 'sync chromium', |
| 'pattern': '.', |
| 'action': ['python', '-u', 'src/sync_chromium.py', |
| '--target-revision', Var('chromium_revision')], |
| }, |
| { |
| # Create links to shared dependencies in Chromium. |
| 'name': 'setup_links', |
| 'pattern': '.', |
| 'action': ['python', 'src/setup_links.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', |
| ], |
| }, |
| { |
| # Download Google Play Services SDK (without license prompt). |
| 'name': 'google_play_services_download', |
| 'pattern': '.', |
| 'action': ['python', 'src/webrtc/build/google_play_services_download.py'], |
| }, |
| # Android dependencies. Many are downloaded using Google Storage these days. |
| # They're copied from https://cs.chromium.org/chromium/src/DEPS for all |
| # such dependencies we share with Chromium. |
| { |
| 'name': 'intellij', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-intellij', |
| '-l', 'third_party/intellij' |
| ], |
| }, |
| { |
| 'name': 'javax_inject', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-javax-inject', |
| '-l', 'third_party/javax_inject' |
| ], |
| }, |
| { |
| 'name': 'hamcrest', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-hamcrest', |
| '-l', 'third_party/hamcrest' |
| ], |
| }, |
| { |
| 'name': 'guava', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-guava', |
| '-l', 'third_party/guava' |
| ], |
| }, |
| { |
| 'name': 'android_support_test_runner', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-android-support-test-runner', |
| '-l', 'third_party/android_support_test_runner' |
| ], |
| }, |
| { |
| 'name': 'byte_buddy', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-byte-buddy', |
| '-l', 'third_party/byte_buddy' |
| ], |
| }, |
| { |
| 'name': 'espresso', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-espresso', |
| '-l', 'third_party/espresso' |
| ], |
| }, |
| { |
| 'name': 'robolectric_libs', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-robolectric', |
| '-l', 'third_party/robolectric' |
| ], |
| }, |
| { |
| 'name': 'apache_velocity', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-apache-velocity', |
| '-l', 'third_party/apache_velocity' |
| ], |
| }, |
| { |
| 'name': 'ow2_asm', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-ow2-asm', |
| '-l', 'third_party/ow2_asm' |
| ], |
| }, |
| { |
| 'name': 'icu4j', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-icu4j', |
| '-l', 'third_party/icu4j' |
| ], |
| }, |
| { |
| 'name': 'accessibility_test_framework', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-accessibility-test-framework', |
| '-l', 'third_party/accessibility_test_framework' |
| ], |
| }, |
| { |
| 'name': 'bouncycastle', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-bouncycastle', |
| '-l', 'third_party/bouncycastle' |
| ], |
| }, |
| { |
| 'name': 'sqlite4java', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-sqlite4java', |
| '-l', 'third_party/sqlite4java' |
| ], |
| }, |
| { |
| 'name': 'objenesis', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/android/update_deps/update_third_party_deps.py', |
| 'download', |
| '-b', 'chromium-objenesis', |
| '-l', 'third_party/objenesis' |
| ], |
| }, |
| { |
| # Downloads the current stable linux sysroot to build/linux/ if needed. |
| # This sysroot updates at about the same rate that the chrome build deps |
| # change. This script is a no-op except for linux users who are doing |
| # official chrome builds or cross compiling. |
| 'name': 'sysroot', |
| 'pattern': '.', |
| 'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py', |
| '--running-as-hook'], |
| }, |
| { |
| # Update the Windows toolchain if necessary. |
| 'name': 'win_toolchain', |
| 'pattern': '.', |
| 'action': ['python', 'src/build/vs_toolchain.py', 'update'], |
| }, |
| # Pull binutils for linux, enabled debug fission for faster linking / |
| # debugging when used with clang on Ubuntu Precise. |
| # https://code.google.com/p/chromium/issues/detail?id=352046 |
| { |
| 'name': 'binutils', |
| 'pattern': 'src/third_party/binutils', |
| 'action': [ |
| 'python', |
| 'src/third_party/binutils/download.py', |
| ], |
| }, |
| { |
| # Pull clang if needed or requested via GYP_DEFINES. |
| # Note: On Win, this should run after win_toolchain, as it may use it. |
| 'name': 'clang', |
| 'pattern': '.', |
| 'action': ['python', 'src/tools/clang/scripts/update.py', '--if-needed'], |
| }, |
| # Pull GN binaries. |
| { |
| 'name': 'gn_win', |
| 'pattern': '.', |
| 'action': [ 'download_from_google_storage', |
| '--no_resume', |
| '--platform=win32', |
| '--no_auth', |
| '--bucket', 'chromium-gn', |
| '-s', 'src/buildtools/win/gn.exe.sha1', |
| ], |
| }, |
| { |
| 'name': 'gn_mac', |
| 'pattern': '.', |
| 'action': [ 'download_from_google_storage', |
| '--no_resume', |
| '--platform=darwin', |
| '--no_auth', |
| '--bucket', 'chromium-gn', |
| '-s', 'src/buildtools/mac/gn.sha1', |
| ], |
| }, |
| { |
| 'name': 'gn_linux64', |
| 'pattern': '.', |
| 'action': [ 'download_from_google_storage', |
| '--no_resume', |
| '--platform=linux*', |
| '--no_auth', |
| '--bucket', 'chromium-gn', |
| '-s', 'src/buildtools/linux64/gn.sha1', |
| ], |
| }, |
| # Pull clang-format binaries using checked-in hashes. |
| { |
| 'name': 'clang_format_win', |
| 'pattern': '.', |
| 'action': [ 'download_from_google_storage', |
| '--no_resume', |
| '--platform=win32', |
| '--no_auth', |
| '--bucket', 'chromium-clang-format', |
| '-s', 'src/buildtools/win/clang-format.exe.sha1', |
| ], |
| }, |
| { |
| 'name': 'clang_format_mac', |
| 'pattern': '.', |
| 'action': [ 'download_from_google_storage', |
| '--no_resume', |
| '--platform=darwin', |
| '--no_auth', |
| '--bucket', 'chromium-clang-format', |
| '-s', 'src/buildtools/mac/clang-format.sha1', |
| ], |
| }, |
| { |
| 'name': 'clang_format_linux', |
| 'pattern': '.', |
| 'action': [ 'download_from_google_storage', |
| '--no_resume', |
| '--platform=linux*', |
| '--no_auth', |
| '--bucket', 'chromium-clang-format', |
| '-s', 'src/buildtools/linux64/clang-format.sha1', |
| ], |
| }, |
| # Pull luci-go binaries (isolate, swarming) using checked-in hashes. |
| { |
| 'name': 'luci-go_win', |
| 'pattern': '.', |
| 'action': [ 'download_from_google_storage', |
| '--no_resume', |
| '--platform=win32', |
| '--no_auth', |
| '--bucket', 'chromium-luci', |
| '-d', 'src/tools/luci-go/win64', |
| ], |
| }, |
| { |
| 'name': 'luci-go_mac', |
| 'pattern': '.', |
| 'action': [ 'download_from_google_storage', |
| '--no_resume', |
| '--platform=darwin', |
| '--no_auth', |
| '--bucket', 'chromium-luci', |
| '-d', 'src/tools/luci-go/mac64', |
| ], |
| }, |
| { |
| 'name': 'luci-go_linux', |
| 'pattern': '.', |
| 'action': [ 'download_from_google_storage', |
| '--no_resume', |
| '--platform=linux*', |
| '--no_auth', |
| '--bucket', 'chromium-luci', |
| '-d', 'src/tools/luci-go/linux64', |
| ], |
| }, |
| # Pull the Syzygy binaries, used for optimization and instrumentation. |
| { |
| 'name': 'syzygy-binaries', |
| 'pattern': '.', |
| 'action': ['python', |
| 'src/build/get_syzygy_binaries.py', |
| '--output-dir=src/third_party/syzygy/binaries', |
| '--revision=a8456d9248a126881dcfb8707ca7dcdae56e1ac7', |
| '--overwrite', |
| ], |
| }, |
| { |
| # Pull sanitizer-instrumented third-party libraries if requested via |
| # GYP_DEFINES. |
| # See src/third_party/instrumented_libraries/scripts/download_binaries.py. |
| # TODO(kjellander): Update comment when GYP is completely cleaned up. |
| 'name': 'instrumented_libraries', |
| 'pattern': '\\.sha1', |
| 'action': ['python', 'src/third_party/instrumented_libraries/scripts/download_binaries.py'], |
| }, |
| { |
| 'name': 'clang_format_merge_driver', |
| 'pattern': '.', |
| 'action': [ 'python', |
| 'src/tools/clang_format_merge_driver/install_git_hook.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', |
| '--quiet', |
| '--bucket', 'chromium-webrtc-resources', |
| 'src/resources'], |
| }, |
| ] |
| |
| recursedeps = [ |
| # buildtools provides clang_format, libc++, and libc++abi. |
| 'src/buildtools', |
| # android_tools manages the NDK. |
| 'src/third_party/android_tools', |
| ] |
| |