2018-07-31 16:50:03 +00:00
|
|
|
vars = {
|
|
|
|
'chromium_git': 'https://chromium.googlesource.com',
|
|
|
|
'github_git': 'https://github.com',
|
|
|
|
|
|
|
|
'dawn_root': '.',
|
|
|
|
'dawn_standalone': True,
|
|
|
|
}
|
|
|
|
|
|
|
|
deps = {
|
|
|
|
# Dependencies required to use GN/Clang in standalone
|
|
|
|
'{dawn_root}/build': {
|
2018-09-03 09:55:58 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/build@ddcfe1a1c6428569cb8c900735be3567358bc6ee',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
'{dawn_root}/buildtools': {
|
2018-09-03 09:55:58 +00:00
|
|
|
'url': '{chromium_git}/chromium/buildtools@9a90d9aaadeb5e04327ed05775f45132e4b3523f',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
'{dawn_root}/tools/clang': {
|
2018-09-03 09:55:58 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/tools/clang@d299f069f8d1dca337354ced634df7a78e4512f7',
|
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
'{dawn_root}/third_party/binutils': {
|
|
|
|
'url': '{chromium_git}/chromium/src/third_party/binutils@4110e09197116a9c5dedd4c827bbe95c224f87ac',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
|
2018-08-03 13:57:43 +00:00
|
|
|
# Testing, GTest and GMock
|
2018-07-31 16:50:03 +00:00
|
|
|
'{dawn_root}/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-08-13 06:23:27 +00:00
|
|
|
'{dawn_root}/third_party/googletest': {
|
2018-08-24 12:57:13 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/google/googletest@98a0d007d7092b72eea0e501bb9ad17908a1a036',
|
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
|
|
|
|
'{dawn_root}/third_party/jinja2': {
|
|
|
|
'url': '{chromium_git}/chromium/src/third_party/jinja2@b41863e42637544c2941b574c7877d3e1f663e25',
|
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
'{dawn_root}/third_party/markupsafe': {
|
|
|
|
'url': '{chromium_git}/chromium/src/third_party/markupsafe@8f45f5cfa0009d2a70589bcda0349b8cb2b72783',
|
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
|
2018-07-31 16:50:03 +00:00
|
|
|
# SPIRV-Cross
|
|
|
|
'{dawn_root}/third_party/spirv-cross': {
|
2018-08-24 12:57:13 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@a7697446b12666da353bb2bdafa792d988fb268c',
|
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
|
|
|
|
'{dawn_root}/third_party/SPIRV-Tools': {
|
2018-09-03 09:55:58 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@eda2cfbe128e5b71e9a0131f816ade5186ad6420',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
'{dawn_root}/third_party/spirv-headers': {
|
2018-08-24 12:57:13 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@ff684ffc6a35d2a58f0f63108877d0064ea33feb',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
'{dawn_root}/third_party/glslang': {
|
2018-08-24 12:57:13 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/google/glslang@29619b2312f7bc862221749f3f4d37c3e6a0dee2',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
'{dawn_root}/third_party/shaderc': {
|
2018-08-24 12:57:13 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/google/shaderc@30af9f9899aefd018669e81a5b8e605d14d40431',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
|
2018-08-13 06:23:27 +00:00
|
|
|
# GLFW for tests and samples
|
|
|
|
'{dawn_root}/third_party/glfw': {
|
2018-08-24 12:57:13 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/glfw/glfw@096efdf798896cff80a0b2db08d7398b703406fe',
|
2018-08-13 06:23:27 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
|
|
|
|
# Dependencies for samples: stb and GLM
|
|
|
|
'{dawn_root}/third_party/stb': {
|
|
|
|
'url': '{github_git}/nothings/stb.git@c7110588a4d24c4bb5155c184fbb77dd90b3116e',
|
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
'{dawn_root}/third_party/glm': {
|
|
|
|
'url': '{github_git}/g-truc/glm.git@06f084063fd6d9aa2ef6904517650700ae47b63d',
|
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
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',
|
|
|
|
'-s', '{dawn_root}/buildtools/win/clang-format.exe.sha1',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'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',
|
|
|
|
'-s', '{dawn_root}/buildtools/mac/clang-format.sha1',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'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',
|
|
|
|
'-s', '{dawn_root}/buildtools/linux64/clang-format.sha1',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
# 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',
|
|
|
|
'-s', '{dawn_root}/buildtools/win/gn.exe.sha1',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'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',
|
|
|
|
'-s', '{dawn_root}/buildtools/mac/gn.sha1',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'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',
|
|
|
|
'-s', '{dawn_root}/buildtools/linux64/gn.sha1',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
# 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)',
|
|
|
|
'action': ['python', '{dawn_root}/build/linux/sysroot_scripts/install-sysroot.py',
|
|
|
|
'--arch=x86'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'sysroot_x64',
|
|
|
|
'pattern': '.',
|
|
|
|
'condition': 'checkout_linux and (checkout_x64 and dawn_standalone)',
|
|
|
|
'action': ['python', '{dawn_root}/build/linux/sysroot_scripts/install-sysroot.py',
|
|
|
|
'--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',
|
|
|
|
'action': ['python', '{dawn_root}/build/vs_toolchain.py', 'update', '--force'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
# Note: On Win, this should run after win_toolchain, as it may use it.
|
|
|
|
'name': 'clang',
|
|
|
|
'pattern': '.',
|
|
|
|
'action': ['python', '{dawn_root}/tools/clang/scripts/update.py'],
|
|
|
|
'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',
|
|
|
|
'-s', '{dawn_root}/build/toolchain/win/rc/win/rc.exe.sha1',
|
|
|
|
],
|
|
|
|
},
|
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',
|
|
|
|
'{dawn_root}/third_party/binutils/download.py',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
recursedeps = [
|
|
|
|
# buildtools provides clang_format, libc++, and libc++abi
|
|
|
|
'{dawn_root}/buildtools',
|
2018-07-31 16:50:03 +00:00
|
|
|
]
|