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-07-14 15:53:34 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/build@b8f14c09b76ae3bd6edabe45105527a97e1e16bd',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'buildtools': {
|
2020-07-14 15:53:34 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/buildtools@eb3987ec709b39469423100c1e77f0446890e059',
|
2018-07-31 16:50:03 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'tools/clang': {
|
2020-07-14 15:53:34 +00:00
|
|
|
'url': '{chromium_git}/chromium/src/tools/clang@d027d75e8dd91140115a4cc9c7c3598c44bbf634',
|
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-07-29 10:10:21 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@f5e9f4a1722ecd383aa5b1877c3ada544edd8b00',
|
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-07-28 12:14:41 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@150be20d4334b66c31a8ed81230f85b814b14a9f',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/spirv-headers': {
|
2020-07-28 12:14:41 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@979924c8bc839e4cb1b69d03d48398551f369ce7',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/glslang': {
|
2020-07-28 12:14:41 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@3ee5f2f1d3316e228916788b300d786bb574d337',
|
2018-08-03 13:57:43 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2018-09-10 13:16:10 +00:00
|
|
|
'third_party/shaderc': {
|
2020-07-28 12:14:41 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/google/shaderc@cfacaaffd1fea5b413443a3b7c2f827c858de6bf',
|
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-07-28 21:57:18 +00:00
|
|
|
'url': '{dawn_git}/tint@c5cd8f5bd3823c7e4b0d1d26d5de3465a9159eec',
|
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-07-07 14:28:41 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@4c079bf40c2587220dbf157d825d3185c9adc896',
|
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-05-26 20:00:43 +00:00
|
|
|
'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@006586926adece57adea3e006140b5df19826371',
|
2020-04-17 08:22:25 +00:00
|
|
|
'condition': 'dawn_standalone',
|
|
|
|
},
|
2019-11-26 18:21:51 +00:00
|
|
|
|
|
|
|
'third_party/swiftshader': {
|
2020-07-16 15:09:55 +00:00
|
|
|
'url': '{swiftshader_git}/SwiftShader@e8dd233c7a85f3c689caf06c226a7f8405a480d3',
|
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
|
|
|
]
|