diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-07-17 13:53:15 -0400 |
---|---|---|
committer | David Neto <dneto@google.com> | 2018-07-24 11:31:14 -0400 |
commit | a114e1f30c34c51f0c6418efe2efaa499389a18d (patch) | |
tree | 932265444b2d6a3be23fde5b84cf59fe63a1165f /DEPS | |
parent | b49f76fd62f5840d848f8891c599ef91e6fa57bb (diff) |
Add support for Chromium GN build
Build test
Add Fuzzer group
Add libfuzzer
Diffstat (limited to 'DEPS')
-rw-r--r-- | DEPS | 89 |
1 files changed, 89 insertions, 0 deletions
@@ -4,15 +4,20 @@ vars = { 'chromium_git': 'https://chromium.googlesource.com', 'github': 'https://github.com', + 'build_revision': '037f38ae0fe5e11b4f7c33b750fd7a1e9634a606', 'buildtools_revision': 'ab7b6a7b350dd15804c87c20ce78982811fdd76f', 'clang_revision': 'abe5e4f9dc0f1df848c7a0efa05256253e77a7b7', 'effcee_revision': '04b624799f5a9dbaf3fa1dbed2ba9dce2fc8dcf2', 'googletest_revision': '98a0d007d7092b72eea0e501bb9ad17908a1a036', + 'libfuzzer_revision': 'c24c2cd3f4d6130e815b6baff8165e4df440d442', 're2_revision': '6cf8ccd82dbaab2668e9b13596c68183c9ecd13f', 'spirv_headers_revision': 'ff684ffc6a35d2a58f0f63108877d0064ea33feb', } deps = { + "build": + Var('chromium_git') + "/chromium/src/build.git@" + Var('build_revision'), + 'buildtools': Var('chromium_git') + '/chromium/buildtools.git@' + Var('buildtools_revision'), @@ -30,6 +35,10 @@ deps = { 'external/re2': Var('github') + '/google/re2.git@' + Var('re2_revision'), + 'testing/libfuzzer': + Var('chromium_git') + '/chromium/src/testing/libfuzzer@' + + Var('libfuzzer_revision'), + 'tools/clang': Var('chromium_git') + '/chromium/src/tools/clang@' + Var('clang_revision') } @@ -40,6 +49,38 @@ recursedeps = [ ] hooks = [ + { + 'name': 'gn_win', + 'action': [ 'download_from_google_storage', + '--no_resume', + '--platform=win32', + '--no_auth', + '--bucket', 'chromium-gn', + '-s', 'SPIRV-Tools/buildtools/win/gn.exe.sha1', + ], + }, + { + 'name': 'gn_mac', + 'pattern': '.', + 'action': [ 'download_from_google_storage', + '--no_resume', + '--platform=darwin', + '--no_auth', + '--bucket', 'chromium-gn', + '-s', 'SPIRV-Tools/buildtools/mac/gn.sha1', + ], + }, + { + 'name': 'gn_linux64', + 'pattern': '.', + 'action': [ 'download_from_google_storage', + '--no_resume', + '--platform=linux*', + '--no_auth', + '--bucket', 'chromium-gn', + '-s', 'SPIRV-Tools/buildtools/linux64/gn.sha1', + ], + }, # Pull clang-format binaries using checked-in hashes. { 'name': 'clang_format_win', @@ -82,4 +123,52 @@ hooks = [ 'SPIRV-Tools/tools/clang/scripts/update.py' ], }, + { + 'name': 'sysroot_arm', + 'pattern': '.', + 'condition': 'checkout_linux and checkout_arm', + 'action': ['python', 'SPIRV-Tools/build/linux/sysroot_scripts/install-sysroot.py', + '--arch=arm'], + }, + { + 'name': 'sysroot_arm64', + 'pattern': '.', + 'condition': 'checkout_linux and checkout_arm64', + 'action': ['python', 'SPIRV-Tools/build/linux/sysroot_scripts/install-sysroot.py', + '--arch=arm64'], + }, + { + 'name': 'sysroot_x86', + 'pattern': '.', + 'condition': 'checkout_linux and (checkout_x86 or checkout_x64)', + 'action': ['python', 'SPIRV-Tools/build/linux/sysroot_scripts/install-sysroot.py', + '--arch=x86'], + }, + { + 'name': 'sysroot_mips', + 'pattern': '.', + 'condition': 'checkout_linux and checkout_mips', + 'action': ['python', 'SPIRV-Tools/build/linux/sysroot_scripts/install-sysroot.py', + '--arch=mips'], + }, + { + 'name': 'sysroot_x64', + 'pattern': '.', + 'condition': 'checkout_linux and checkout_x64', + 'action': ['python', 'SPIRV-Tools/build/linux/sysroot_scripts/install-sysroot.py', + '--arch=x64'], + }, + { + # Update the Windows toolchain if necessary. + 'name': 'win_toolchain', + 'pattern': '.', + 'condition': 'checkout_win', + 'action': ['python', 'SPIRV-Tools/build/vs_toolchain.py', 'update', '--force'], + }, + { + # Update the Mac toolchain if necessary. + 'name': 'mac_toolchain', + 'pattern': '.', + 'action': ['python', 'SPIRV-Tools/build/mac_toolchain.py'], + }, ] |