2018-09-10 13:16:10 +00:00
|
|
|
use_relative_paths = True
|
|
|
|
use_relative_hooks = True
|
|
|
|
|
2018-07-31 16:50:03 +00:00
|
|
|
vars = {
|
|
|
|
'chromium_git': 'https://chromium.googlesource.com',
|
2018-08-27 08:10:28 +00:00
|
|
|
'dawn_git': 'https://dawn.googlesource.com',
|
2018-07-31 16:50:03 +00:00
|
|
|
'github_git': 'https://github.com',
|
|
|
|
|
|
|
|
'dawn_standalone': True,
|
|
|
|
}
|
|
|
|
|
|
|
|
deps = {
|
|
|
|
# Dependencies required to use GN/Clang in standalone
|
2018-09-10 13:16:10 +00:00
|
|
|
'build': {
|
2018-12-12 09:39:00 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/build@e439f6082423106f1fe2afa7e22f8fd4c00691df',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'buildtools': {
|
2018-11-19 10:13:31 +00:00
|
|
|
'url': '{chromium_git}/chromium/buildtools@24ebce4578745db15274e180da1938ebc1358243',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'tools/clang': {
|
2018-11-19 10:13:31 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/tools/clang@1d879cee563167a2b18baffb096cf9e29f2f9376',
|
2018-09-03 09:55:58 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/binutils': {
|
2018-11-19 10:13:31 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/third_party/binutils@2be73f7fbf783d7a0b288e174a5773b67c7656bc',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
|
2018-08-03 13:57:43 +00:00
|
|
|
# Testing, GTest and GMock
|
2018-09-10 13:16:10 +00:00
|
|
|
'testing': {
|
2018-08-13 15:48:16 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/testing@b07830f6905ce9e33034ad14820bc0a58b6e9e41',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/googletest': {
|
2019-02-21 09:26:20 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/google/googletest@5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-07-31 16:50:03 +00:00
|
|
|
|
2018-08-13 15:47:44 +00:00
|
|
|
# Jinja2 and MarkupSafe for the code generator
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/jinja2': {
|
2018-08-13 15:47:44 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/third_party/jinja2@b41863e42637544c2941b574c7877d3e1f663e25',
|
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/markupsafe': {
|
2018-08-13 15:47:44 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/third_party/markupsafe@8f45f5cfa0009d2a70589bcda0349b8cb2b72783',
|
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
|
2018-07-31 16:50:03 +00:00
|
|
|
# SPIRV-Cross
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/spirv-cross': {
|
2019-04-11 14:52:55 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@f07a4e16a60e1d0231dda5d3883550761bd70a47',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
2018-07-31 16:50:03 +00:00
|
|
|
},
|
2018-08-03 13:57:43 +00:00
|
|
|
|
|
|
|
# SPIRV compiler dependencies: SPIRV-Tools, SPIRV-headers, glslang and shaderc
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/SPIRV-Tools': {
|
2019-04-11 14:52:55 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@12e4a7b649e6fe28683de9fc352200c82948a1f0',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/spirv-headers': {
|
2019-04-11 14:52:55 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@111a25e4ae45e2b4d7c18415e1d6884712b958c4',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/glslang': {
|
2019-04-11 14:52:55 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@ef807f4bc543e061f25dbbee6cb64dd5053b2adc',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/shaderc': {
|
2019-04-11 14:52:55 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/google/shaderc@ff9ae40e3734a264a56bba02191f5ae18c7e5e03',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
|
2018-08-13 06:23:27 +00:00
|
|
|
# GLFW for tests and samples
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/glfw': {
|
2018-11-19 10:21:23 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/glfw/glfw@2de2589f910b1a85905f425be4d32f33cec092df',
|
2018-08-13 06:23:27 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
|
|
|
|
# Dependencies for samples: stb and GLM
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/stb': {
|
2018-08-13 06:23:27 +00:00
|
|
|
'url': '{github_git}/nothings/stb.git@c7110588a4d24c4bb5155c184fbb77dd90b3116e',
|
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/glm': {
|
2018-08-13 06:23:27 +00:00
|
|
|
'url': '{github_git}/g-truc/glm.git@06f084063fd6d9aa2ef6904517650700ae47b63d',
|
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-08-27 08:10:28 +00:00
|
|
|
|
|
|
|
# Our own pre-compiled Linux clang-format 7.0 for presubmit
|
|
|
|
'third_party/clang-format': {
|
|
|
|
'url': '{dawn_git}/clang-format@2451c56cd368676cdb230fd5ad11731ab859f1a3',
|
|
|
|
'condition': 'dawn_standalone and checkout_linux',
|
|
|
|
},
|
2018-07-31 16:50:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
hooks = [
|
|
|
|
# Pull clang-format binaries using checked-in hashes.
|
|
|
|
{
|
|
|
|
'name': 'clang_format_win',
|
|
|
|
'pattern': '.',
|
|
|
|
'condition': 'host_os == "win" and dawn_standalone',
|
|
|
|
'action': [ 'download_from_google_storage',
|
|
|
|
'--no_resume',
|
|
|
|
'--platform=win32',
|
|
|
|
'--no_auth',
|
|
|
|
'--bucket', 'chromium-clang-format',
|
2018-09-10 13:16:10 +00:00
|
|
|
'-s', 'buildtools/win/clang-format.exe.sha1',
|
2018-07-31 16:50:03 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'clang_format_mac',
|
|
|
|
'pattern': '.',
|
|
|
|
'condition': 'host_os == "mac" and dawn_standalone',
|
|
|
|
'action': [ 'download_from_google_storage',
|
|
|
|
'--no_resume',
|
|
|
|
'--platform=darwin',
|
|
|
|
'--no_auth',
|
|
|
|
'--bucket', 'chromium-clang-format',
|
2018-09-10 13:16:10 +00:00
|
|
|
'-s', 'buildtools/mac/clang-format.sha1',
|
2018-07-31 16:50:03 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'clang_format_linux',
|
|
|
|
'pattern': '.',
|
|
|
|
'condition': 'host_os == "linux" and dawn_standalone',
|
|
|
|
'action': [ 'download_from_google_storage',
|
|
|
|
'--no_resume',
|
|
|
|
'--platform=linux*',
|
|
|
|
'--no_auth',
|
|
|
|
'--bucket', 'chromium-clang-format',
|
2018-09-10 13:16:10 +00:00
|
|
|
'-s', 'buildtools/linux64/clang-format.sha1',
|
2018-07-31 16:50:03 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
# Pull GN binaries using checked-in hashes.
|
|
|
|
{
|
|
|
|
'name': 'gn_win',
|
|
|
|
'pattern': '.',
|
|
|
|
'condition': 'host_os == "win" and dawn_standalone',
|
|
|
|
'action': [ 'download_from_google_storage',
|
|
|
|
'--no_resume',
|
|
|
|
'--platform=win32',
|
|
|
|
'--no_auth',
|
|
|
|
'--bucket', 'chromium-gn',
|
2018-09-10 13:16:10 +00:00
|
|
|
'-s', 'buildtools/win/gn.exe.sha1',
|
2018-07-31 16:50:03 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'gn_mac',
|
|
|
|
'pattern': '.',
|
|
|
|
'condition': 'host_os == "mac" and dawn_standalone',
|
|
|
|
'action': [ 'download_from_google_storage',
|
|
|
|
'--no_resume',
|
|
|
|
'--platform=darwin',
|
|
|
|
'--no_auth',
|
|
|
|
'--bucket', 'chromium-gn',
|
2018-09-10 13:16:10 +00:00
|
|
|
'-s', 'buildtools/mac/gn.sha1',
|
2018-07-31 16:50:03 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'gn_linux64',
|
|
|
|
'pattern': '.',
|
|
|
|
'condition': 'host_os == "linux" and dawn_standalone',
|
|
|
|
'action': [ 'download_from_google_storage',
|
|
|
|
'--no_resume',
|
|
|
|
'--platform=linux*',
|
|
|
|
'--no_auth',
|
|
|
|
'--bucket', 'chromium-gn',
|
2018-09-10 13:16:10 +00:00
|
|
|
'-s', 'buildtools/linux64/gn.sha1',
|
2018-07-31 16:50:03 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
# Pull the compilers and system libraries for hermetic builds
|
|
|
|
{
|
|
|
|
'name': 'sysroot_x86',
|
|
|
|
'pattern': '.',
|
|
|
|
'condition': 'checkout_linux and ((checkout_x86 or checkout_x64) and dawn_standalone)',
|
2018-09-10 13:16:10 +00:00
|
|
|
'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
|
2018-07-31 16:50:03 +00:00
|
|
|
'--arch=x86'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'sysroot_x64',
|
|
|
|
'pattern': '.',
|
|
|
|
'condition': 'checkout_linux and (checkout_x64 and dawn_standalone)',
|
2018-09-10 13:16:10 +00:00
|
|
|
'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
|
2018-07-31 16:50:03 +00:00
|
|
|
'--arch=x64'],
|
|
|
|
},
|
|
|
|
{
|
2018-08-13 15:48:16 +00:00
|
|
|
# Update the Windows toolchain if necessary. Must run before 'clang' below.
|
2018-07-31 16:50:03 +00:00
|
|
|
'name': 'win_toolchain',
|
|
|
|
'pattern': '.',
|
|
|
|
'condition': 'checkout_win and dawn_standalone',
|
2018-09-10 13:16:10 +00:00
|
|
|
'action': ['python', 'build/vs_toolchain.py', 'update', '--force'],
|
2018-07-31 16:50:03 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
# Note: On Win, this should run after win_toolchain, as it may use it.
|
|
|
|
'name': 'clang',
|
|
|
|
'pattern': '.',
|
2018-09-10 13:16:10 +00:00
|
|
|
'action': ['python', 'tools/clang/scripts/update.py'],
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
# Pull rc binaries using checked-in hashes.
|
|
|
|
'name': 'rc_win',
|
|
|
|
'pattern': '.',
|
|
|
|
'condition': 'checkout_win and (host_os == "win" and dawn_standalone)',
|
|
|
|
'action': [ 'download_from_google_storage',
|
|
|
|
'--no_resume',
|
|
|
|
'--no_auth',
|
|
|
|
'--bucket', 'chromium-browser-clang/rc',
|
2018-09-10 13:16:10 +00:00
|
|
|
'-s', 'build/toolchain/win/rc/win/rc.exe.sha1',
|
2018-07-31 16:50:03 +00:00
|
|
|
],
|
|
|
|
},
|
2018-09-03 09:55:58 +00:00
|
|
|
# Pull binutils for linux hermetic builds
|
|
|
|
{
|
|
|
|
'name': 'binutils',
|
|
|
|
'pattern': 'src/third_party/binutils',
|
|
|
|
'condition': 'host_os == "linux"',
|
|
|
|
'action': [
|
|
|
|
'python',
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/binutils/download.py',
|
2018-09-03 09:55:58 +00:00
|
|
|
],
|
|
|
|
},
|
2018-11-19 10:13:31 +00:00
|
|
|
# Update build/util/LASTCHANGE.
|
|
|
|
{
|
|
|
|
'name': 'lastchange',
|
|
|
|
'pattern': '.',
|
|
|
|
'action': ['python', 'build/util/lastchange.py',
|
|
|
|
'-o', 'build/util/LASTCHANGE'],
|
|
|
|
},
|
2018-09-03 09:55:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
recursedeps = [
|
|
|
|
# buildtools provides clang_format, libc++, and libc++abi
|
2018-09-10 13:16:10 +00:00
|
|
|
'buildtools',
|
2018-07-31 16:50:03 +00:00
|
|
|
]
|