1vars = { 2 'chromium_git': 'https://chromium.googlesource.com', 3 'build_with_chromium': False, 4} 5 6deps = { 7 8 './build': { 9 'url': '{chromium_git}/chromium/src/build.git@a660b0b9174e3a808f620222017566e8d1b2669b', 10 'condition': 'not build_with_chromium', 11 }, 12 13 './buildtools': { 14 'url': '{chromium_git}/chromium/src/buildtools.git@459baaf66bee809f6eb288e0215cf524f4d2429a', 15 'condition': 'not build_with_chromium', 16 }, 17 18 './testing': { 19 'url': '{chromium_git}/chromium/src/testing@083d633e752e7a57cbe62a468a06e51e28c49ee9', 20 'condition': 'not build_with_chromium', 21 }, 22 23 './tools/clang': { 24 'url': '{chromium_git}/chromium/src/tools/clang.git@3114fbc11f9644c54dd0a4cdbfa867bac50ff983', 25 'condition': 'not build_with_chromium', 26 }, 27 28} 29 30hooks = [ 31 # Pull clang-format binaries using checked-in hashes. 32 { 33 'name': 'clang_format_linux', 34 'pattern': '.', 35 'condition': 'host_os == "linux" and not build_with_chromium', 36 'action': [ 'download_from_google_storage', 37 '--no_resume', 38 '--platform=linux*', 39 '--no_auth', 40 '--bucket', 'chromium-clang-format', 41 '-s', './buildtools/linux64/clang-format.sha1', 42 ], 43 }, 44 { 45 'name': 'sysroot_x64', 46 'pattern': '.', 47 'condition': 'checkout_linux and (checkout_x64 and not build_with_chromium)', 48 'action': ['python', './build/linux/sysroot_scripts/install-sysroot.py', 49 '--arch=x64'], 50 }, 51 { 52 # Note: On Win, this should run after win_toolchain, as it may use it. 53 'name': 'clang', 54 'pattern': '.', 55 'action': ['python', './tools/clang/scripts/update.py'], 56 'condition': 'not build_with_chromium', 57 }, 58] 59 60recursedeps = [ 61 # buildtools provides clang_format. 62 './buildtools', 63] 64