| use_relative_paths = True | 
 |  | 
 | vars = { | 
 |   # By default, we should check out everything needed to run on the main | 
 |   # chromium waterfalls. This var can be also be set to "small", in order | 
 |   # to skip things are not strictly needed to build chromium for development | 
 |   # purposes. | 
 |   'checkout_configuration': 'default', | 
 |  | 
 |   # TODO(dpranke): change to != "small" once != is supported. | 
 |   'checkout_instrumented_libraries': 'checkout_linux and checkout_configuration == "default"', | 
 |  | 
 |   'chromium_git': 'https://chromium.googlesource.com', | 
 |   'pdfium_git': 'https://pdfium.googlesource.com', | 
 |  | 
 |   'android_ndk_revision': '5cd86312e794bdf542a3685c6f10cbb96072990b', | 
 |   'binutils_revision': '4110e09197116a9c5dedd4c827bbe95c224f87ac', | 
 |   'build_revision': '81ffd00401995c9ae0b99557b82e319a2a0498d1', | 
 |   'buildtools_revision': 'fdce2ad26b26961629cb6bb2fc4757396d37f174', | 
 |   'catapult_revision': '5d5091665700495b0d212cc504fd48530565eecf', | 
 |   'clang_revision': '31f2d265b80ffaf698f41e2ef3e0e8f282f13285', | 
 |   'code_coverage_revision': '4191ea0675c4c133cb506316b6b974f31e600576', | 
 |   'cygwin_revision': 'c89e446b273697fadf3a10ff1007a97c0b7de6df', | 
 |   'depot_tools_revision': 'ddbeac1c06a9c0ffa100f6f2af672af83f980fcb', | 
 |   'freetype_revision': '3dd4e76b19f3cd4f706c3455d6ae01765d07eee5', | 
 |   'gtest_revision': '2e68926a9d4929e9289373cd49e40ddcb9a628f7', | 
 |   'icu_revision': '45f655f2feb7069a7b9b47d1b1a596807bfd4220', | 
 |   'instrumented_lib_revision': 'a959e4f0cb643003f2d75d179cede449979e3e77', | 
 |   'jinja2_revision': '45571de473282bd1d8b63a8dfcb1fd268d0635d2', | 
 |   'jpeg_turbo_revision': '61a2bbaa9aec89cb2c882d87ace6aba9aee49bb9', | 
 |   'markupsafe_revision': '8f45f5cfa0009d2a70589bcda0349b8cb2b72783', | 
 |   'pdfium_tests_revision': '5a68e87859476eb75d3e068bd406c4921a6be8e2', | 
 |   'skia_revision': '36b85be4944363139562664c964d6fde749babdb', | 
 |   'tools_memory_revision': 'f7b00daf4df7f6c469f5fbc68d7f40f6bd15d6e6', | 
 |   'trace_event_revision': '211b3ed9d0481b4caddbee1322321b86a483ca1f', | 
 |   'v8_revision': 'd5f263024407cc8363474f5770362caaf3d66c87', | 
 |   'yasm_source_revision': '720b70524a4424b15fc57e82263568c8ba0496ad', | 
 |   'zlib_revision': 'dde5ce526c84143fb931a5191dd4623ae6d197d6', | 
 | } | 
 |  | 
 | deps = { | 
 |   "base/trace_event/common": | 
 |     Var('chromium_git') + "/chromium/src/base/trace_event/common.git@" + | 
 |         Var('trace_event_revision'), | 
 |  | 
 |   "build": | 
 |     Var('chromium_git') + "/chromium/src/build.git@" + Var('build_revision'), | 
 |  | 
 |   "buildtools": | 
 |     Var('chromium_git') + "/chromium/buildtools.git@" + | 
 |         Var('buildtools_revision'), | 
 |  | 
 |   "testing/corpus": | 
 |     Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'), | 
 |  | 
 |   "third_party/binutils": | 
 |     Var('chromium_git') + "/chromium/src/third_party/binutils.git@" + | 
 |         Var('binutils_revision'), | 
 |  | 
 |   'third_party/depot_tools': | 
 |     Var('chromium_git') + '/chromium/tools/depot_tools.git' + '@' + | 
 |         Var('depot_tools_revision'), | 
 |  | 
 |   "third_party/freetype/src": | 
 |     Var('chromium_git') + '/chromium/src/third_party/freetype2.git@' + | 
 |         Var('freetype_revision'), | 
 |  | 
 |   "third_party/googletest/src": | 
 |     Var('chromium_git') + '/external/github.com/google/googletest.git' + '@' + | 
 |         Var('gtest_revision'), | 
 |  | 
 |   "third_party/icu": | 
 |     Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'), | 
 |  | 
 |   "third_party/instrumented_libraries": | 
 |     Var('chromium_git') + | 
 |         "/chromium/src/third_party/instrumented_libraries.git@" + | 
 |         Var('instrumented_lib_revision'), | 
 |  | 
 |   "third_party/jinja2": | 
 |     Var('chromium_git') + "/chromium/src/third_party/jinja2.git@" + | 
 |         Var('jinja2_revision'), | 
 |  | 
 |   "third_party/markupsafe": | 
 |     Var('chromium_git') + "/chromium/src/third_party/markupsafe.git@" + | 
 |         Var('markupsafe_revision'), | 
 |  | 
 |   "third_party/libjpeg_turbo": | 
 |     Var('chromium_git') + "/chromium/deps/libjpeg_turbo.git@" + | 
 |         Var('jpeg_turbo_revision'), | 
 |  | 
 |   "third_party/skia": | 
 |     Var('chromium_git') + '/skia.git@' +  Var('skia_revision'), | 
 |  | 
 |   "third_party/zlib": | 
 |     Var('chromium_git') + "/chromium/src/third_party/zlib.git@" + | 
 |         Var('zlib_revision'), | 
 |  | 
 |   'third_party/yasm/source/patched-yasm': | 
 |     Var('chromium_git') + '/chromium/deps/yasm/patched-yasm.git@' + | 
 |         Var('yasm_source_revision'), | 
 |  | 
 |   "tools/clang": | 
 |     Var('chromium_git') + "/chromium/src/tools/clang@" +  Var('clang_revision'), | 
 |  | 
 |   "tools/code_coverage": | 
 |     Var('chromium_git') + "/chromium/src/tools/code_coverage.git@" + | 
 |         Var('code_coverage_revision'), | 
 |  | 
 |   "tools/memory": | 
 |     Var('chromium_git') + "/chromium/src/tools/memory@" + | 
 |         Var('tools_memory_revision'), | 
 |  | 
 |   "v8": | 
 |     Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'), | 
 | } | 
 |  | 
 | deps_os = { | 
 |   "android": { | 
 |     "third_party/android_ndk": | 
 |       Var('chromium_git') + "/android_ndk.git@" + Var('android_ndk_revision'), | 
 |     "third_party/catapult": | 
 |       Var('chromium_git') + | 
 |           "/external/github.com/catapult-project/catapult.git@" + | 
 |           Var('catapult_revision'), | 
 |   }, | 
 |   "win": { | 
 |     "v8/third_party/cygwin": | 
 |       Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'), | 
 |   }, | 
 | } | 
 |  | 
 | recursedeps = [ | 
 |   # buildtools provides clang_format, libc++, and libc++abi | 
 |   'buildtools', | 
 | ] | 
 |  | 
 | include_rules = [ | 
 |   # Basic stuff that everyone can use. | 
 |   # Note: public is not here because core cannot depend on public. | 
 |   '+constants', | 
 |   '+testing', | 
 |   '+third_party/base', | 
 | ] | 
 |  | 
 | specific_include_rules = { | 
 |   # Allow embedder tests to use public APIs. | 
 |   "(.*embeddertest\.cpp)": [ | 
 |       "+public", | 
 |   ] | 
 | } | 
 |  | 
 | hooks = [ | 
 |   { | 
 |     'name': 'gn_win', | 
 |     'action': [ 'download_from_google_storage', | 
 |                 '--no_resume', | 
 |                 '--platform=win32', | 
 |                 '--no_auth', | 
 |                 '--bucket', 'chromium-gn', | 
 |                 '-s', 'pdfium/buildtools/win/gn.exe.sha1', | 
 |     ], | 
 |   }, | 
 |   { | 
 |     'name': 'gn_mac', | 
 |     'pattern': '.', | 
 |     'action': [ 'download_from_google_storage', | 
 |                 '--no_resume', | 
 |                 '--platform=darwin', | 
 |                 '--no_auth', | 
 |                 '--bucket', 'chromium-gn', | 
 |                 '-s', 'pdfium/buildtools/mac/gn.sha1', | 
 |     ], | 
 |   }, | 
 |   { | 
 |     'name': 'gn_linux64', | 
 |     'pattern': '.', | 
 |     'action': [ 'download_from_google_storage', | 
 |                 '--no_resume', | 
 |                 '--platform=linux*', | 
 |                 '--no_auth', | 
 |                 '--bucket', 'chromium-gn', | 
 |                 '-s', 'pdfium/buildtools/linux64/gn.sha1', | 
 |     ], | 
 |   }, | 
 |   # Pull clang-format binaries using checked-in hashes. | 
 |   { | 
 |     'name': 'clang_format_win', | 
 |     'pattern': '.', | 
 |     'action': [ 'download_from_google_storage', | 
 |                 '--no_resume', | 
 |                 '--platform=win32', | 
 |                 '--no_auth', | 
 |                 '--bucket', 'chromium-clang-format', | 
 |                 '-s', 'pdfium/buildtools/win/clang-format.exe.sha1', | 
 |     ], | 
 |   }, | 
 |   { | 
 |     'name': 'clang_format_mac', | 
 |     'pattern': '.', | 
 |     'action': [ 'download_from_google_storage', | 
 |                 '--no_resume', | 
 |                 '--platform=darwin', | 
 |                 '--no_auth', | 
 |                 '--bucket', 'chromium-clang-format', | 
 |                 '-s', 'pdfium/buildtools/mac/clang-format.sha1', | 
 |     ], | 
 |   }, | 
 |   { | 
 |     'name': 'clang_format_linux', | 
 |     'pattern': '.', | 
 |     'action': [ 'download_from_google_storage', | 
 |                 '--no_resume', | 
 |                 '--platform=linux*', | 
 |                 '--no_auth', | 
 |                 '--bucket', 'chromium-clang-format', | 
 |                 '-s', 'pdfium/buildtools/linux64/clang-format.sha1', | 
 |     ], | 
 |   }, | 
 |   { | 
 |     # Pull clang | 
 |     'name': 'clang', | 
 |     'pattern': '.', | 
 |     'action': ['python', | 
 |                'pdfium/tools/clang/scripts/update.py' | 
 |     ], | 
 |   }, | 
 |   { | 
 |     'name': 'binutils', | 
 |     'pattern': 'src/third_party/binutils', | 
 |     'condition': 'host_os == "linux"', | 
 |     'action': [ | 
 |         'python', | 
 |         'pdfium/third_party/binutils/download.py', | 
 |     ], | 
 |   }, | 
 |   { | 
 |     'name': 'sysroot_arm', | 
 |     'pattern': '.', | 
 |     'condition': 'checkout_linux and checkout_arm', | 
 |     'action': ['python', 'pdfium/build/linux/sysroot_scripts/install-sysroot.py', | 
 |                '--arch=arm'], | 
 |   }, | 
 |   { | 
 |     'name': 'sysroot_arm64', | 
 |     'pattern': '.', | 
 |     'condition': 'checkout_linux and checkout_arm64', | 
 |     'action': ['python', 'pdfium/build/linux/sysroot_scripts/install-sysroot.py', | 
 |                '--arch=arm64'], | 
 |   }, | 
 |   { | 
 |     'name': 'sysroot_x86', | 
 |     'pattern': '.', | 
 |     'condition': 'checkout_linux and (checkout_x86 or checkout_x64)', | 
 |     'action': ['python', 'pdfium/build/linux/sysroot_scripts/install-sysroot.py', | 
 |                '--arch=x86'], | 
 |   }, | 
 |   { | 
 |     'name': 'sysroot_mips', | 
 |     'pattern': '.', | 
 |     'condition': 'checkout_linux and checkout_mips', | 
 |     'action': ['python', 'pdfium/build/linux/sysroot_scripts/install-sysroot.py', | 
 |                '--arch=mips'], | 
 |   }, | 
 |   { | 
 |     'name': 'sysroot_x64', | 
 |     'pattern': '.', | 
 |     'condition': 'checkout_linux and checkout_x64', | 
 |     'action': ['python', 'pdfium/build/linux/sysroot_scripts/install-sysroot.py', | 
 |                '--arch=x64'], | 
 |   }, | 
 |   { | 
 |     # Case-insensitivity for the Win SDK. Must run before win_toolchain below. | 
 |     'name': 'ciopfs_linux', | 
 |     'pattern': '.', | 
 |     'condition': 'checkout_win and host_os == "linux"', | 
 |     'action': [ 'python', | 
 |                 'pdfium/third_party/depot_tools/download_from_google_storage.py', | 
 |                 '--no_resume', | 
 |                 '--no_auth', | 
 |                 '--bucket', 'chromium-browser-clang/ciopfs', | 
 |                 '-s', 'pdfium/build/ciopfs.sha1', | 
 |     ] | 
 |   }, | 
 |   { | 
 |     # Update the Windows toolchain if necessary. | 
 |     'name': 'win_toolchain', | 
 |     'pattern': '.', | 
 |     'condition': 'checkout_win', | 
 |     'action': ['python', 'pdfium/build/vs_toolchain.py', 'update', '--force'], | 
 |   }, | 
 |   { | 
 |     # Update the Mac toolchain if necessary. | 
 |     'name': 'mac_toolchain', | 
 |     'pattern': '.', | 
 |     'action': ['python', 'pdfium/build/mac_toolchain.py'], | 
 |   }, | 
 |   { | 
 |     'name': 'msan_chained_origins', | 
 |     'pattern': '.', | 
 |     'condition': 'checkout_instrumented_libraries', | 
 |     'action': [ 'python', | 
 |                 'pdfium/third_party/depot_tools/download_from_google_storage.py', | 
 |                 "--no_resume", | 
 |                 "--no_auth", | 
 |                 "--bucket", "chromium-instrumented-libraries", | 
 |                 "-s", "pdfium/third_party/instrumented_libraries/binaries/msan-chained-origins-trusty.tgz.sha1", | 
 |               ], | 
 |   }, | 
 |   { | 
 |     'name': 'msan_no_origins', | 
 |     'pattern': '.', | 
 |     'condition': 'checkout_instrumented_libraries', | 
 |     'action': [ 'python', | 
 |                 'pdfium/third_party/depot_tools/download_from_google_storage.py', | 
 |                 "--no_resume", | 
 |                 "--no_auth", | 
 |                 "--bucket", "chromium-instrumented-libraries", | 
 |                 "-s", "pdfium/third_party/instrumented_libraries/binaries/msan-no-origins-trusty.tgz.sha1", | 
 |               ], | 
 |   }, | 
 |   { | 
 |     # Update LASTCHANGE. | 
 |     'name': 'lastchange', | 
 |     'pattern': '.', | 
 |     'action': ['python', 'pdfium/build/util/lastchange.py', | 
 |                '-o', 'pdfium/build/util/LASTCHANGE'], | 
 |   }, | 
 | ] |