2018-09-10 13:16:10 +00:00
|
|
|
use_relative_paths = True
|
|
|
|
|
2020-07-14 15:53:34 +00:00
|
|
|
gclient_gn_args_file = 'build/config/gclient_args.gni'
|
|
|
|
gclient_gn_args = [
|
|
|
|
'mac_xcode_version',
|
|
|
|
]
|
|
|
|
|
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',
|
2019-11-26 18:21:51 +00:00
|
|
|
'swiftshader_git': 'https://swiftshader.googlesource.com',
|
2018-07-31 16:50:03 +00:00
|
|
|
|
|
|
|
'dawn_standalone': True,
|
2020-07-14 15:53:34 +00:00
|
|
|
|
|
|
|
# This can be overridden, e.g. with custom_vars, to download a nonstandard
|
|
|
|
# Xcode version in build/mac_toolchain.py instead of downloading the
|
|
|
|
# prebuilt pinned revision.
|
|
|
|
'mac_xcode_version': 'default',
|
2018-07-31 16:50:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
deps = {
|
|
|
|
# Dependencies required to use GN/Clang in standalone
|
2018-09-10 13:16:10 +00:00
|
|
|
'build': {
|
2020-09-01 18:14:18 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/build@c10077be589bfb5151ebcd923928898a89ab33b8',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'buildtools': {
|
2020-09-01 18:14:18 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/buildtools@ff93f3ea1a7f033d3caf8f60ec1937cc71351419',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'tools/clang': {
|
2020-09-01 18:14:18 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/tools/clang@fcef86e30a0ab061b982b5c9d91bb060df8f5269',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2020-04-06 22:27:02 +00:00
|
|
|
'tools/clang/dsymutil': {
|
|
|
|
'packages': [
|
|
|
|
{
|
|
|
|
'package': 'chromium/llvm-build-tools/dsymutil',
|
|
|
|
'version': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC',
|
|
|
|
}
|
|
|
|
],
|
|
|
|
'condition': 'checkout_mac or checkout_ios',
|
|
|
|
'dep_type': 'cipd',
|
|
|
|
},
|
2018-07-31 16:50:03 +00:00
|
|
|
|
2018-08-03 13:57:43 +00:00
|
|
|
# Testing, GTest and GMock
|
2018-09-10 13:16:10 +00:00
|
|
|
'testing': {
|
2020-04-15 20:06:27 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/testing@e5ced5141379ee8ae28b4f93d3c02df039d2b052',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/googletest': {
|
2020-05-11 15:37:11 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/google/googletest@a09ea700d32bab83325aff9ff34d0582e50e3997',
|
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': {
|
2020-09-18 23:19:21 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@8891bd35120ca91c252a66ccfdc3f9a9d03c70cd',
|
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': {
|
2020-09-18 23:19:21 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@60ce96e2ff10677c52ee5892519cb74d078d1592',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/spirv-headers': {
|
2020-09-18 23:19:21 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@060627f0b0d2fa8581b5acb939f46e3b9e500593',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/glslang': {
|
2020-09-18 23:19:21 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@4dcc12d1a441b29d5901bc708bb1343d29d6459f',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/shaderc': {
|
2020-09-03 15:36:37 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/google/shaderc@011139094ec790ff7f32ea2d80286255fc9ed18b',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
|
2020-05-06 23:15:54 +00:00
|
|
|
# WGSL support
|
|
|
|
'third_party/tint': {
|
2020-10-06 23:41:12 +00:00
|
|
|
'url': '{dawn_git}/tint@488d7a9346ff8b63fdba22574ccff1688870e2f3',
|
2020-05-06 23:15:54 +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': {
|
2020-01-23 15:10:58 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/glfw/glfw@d973acc123826666ecc9e6fd475682e3d84c54a6',
|
2018-08-13 06:23:27 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
|
2019-05-18 03:14:46 +00:00
|
|
|
# Dependencies for samples: GLM
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/glm': {
|
2020-04-14 16:20:14 +00:00
|
|
|
'url': '{github_git}/g-truc/glm.git@bf71a834948186f4097caa076cd2663c69a10e1e',
|
2018-08-13 06:23:27 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-08-27 08:10:28 +00:00
|
|
|
|
2020-04-17 08:22:25 +00:00
|
|
|
# Khronos Vulkan headers, validation layers and loader.
|
2019-11-07 12:13:27 +00:00
|
|
|
'third_party/vulkan-headers': {
|
2020-09-01 18:14:18 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@ced848d699b5673a7df900bcfe0b1a6ba9e989ce',
|
2019-11-07 12:13:27 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
'third_party/vulkan-validation-layers': {
|
2020-07-07 14:28:41 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@e8b96e86fe2edfaee274b98fbbe1bd65579b0904',
|
2019-11-07 12:13:27 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2020-04-17 08:22:25 +00:00
|
|
|
'third_party/vulkan-loader': {
|
2020-09-01 18:14:18 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@d846ea5a2427eb0119cf98288aa337eced10edbd',
|
2020-04-17 08:22:25 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2019-11-26 18:21:51 +00:00
|
|
|
|
|
|
|
'third_party/swiftshader': {
|
2020-09-28 21:53:14 +00:00
|
|
|
'url': '{swiftshader_git}/SwiftShader@2014e7b9290e36808589eecb5539ab4c1a4843f8',
|
2019-11-26 18:21:51 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
|
|
|
|
2018-07-31 16:50:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
hooks = [
|
|
|
|
# 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-11-19 10:13:31 +00:00
|
|
|
# Update build/util/LASTCHANGE.
|
|
|
|
{
|
|
|
|
'name': 'lastchange',
|
|
|
|
'pattern': '.',
|
2020-07-01 05:08:36 +00:00
|
|
|
'condition': 'dawn_standalone',
|
2018-11-19 10:13:31 +00:00
|
|
|
'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
|
|
|
]
|