1 use_relative_paths = True 2 3 vars = { 4 'chromium_git': 'https://chromium.googlesource.com', 5 'pdfium_git': 'https://pdfium.googlesource.com', 6 7 'android_ndk_revision': '26d93ec07f3ce2ec2cdfeae1b21ee6f12ff868d8', 8 'build_revision': 'dd795a26b9e43ff3a0d761bfd509c2fa67a3a7a1', 9 'buildtools_revision': 'cf493f8b1ae59611b19b000d7af922559b6ae92a', 10 'catapult_revision': '86352b966b0245d6883e5f7df27687856978b6d7', 11 'clang_revision': '37d701b87a10a2bdee1a5c3523f754ebf64a7e66', 12 'cygwin_revision': 'c89e446b273697fadf3a10ff1007a97c0b7de6df', 13 'gen_library_loader_revision': '916d4acd8b2cde67a390737dfba90b3c37de23a1', 14 'gmock_revision': '29763965ab52f24565299976b936d1265cb6a271', 15 'gtest_revision': '8245545b6dc9c4703e6496d1efd19e975ad2b038', 16 'icu_revision': '73e24736676b4b438270fda44e5b2c83b49fdd80', 17 'instrumented_lib_revision': '45f5814b1543e41ea0be54c771e3840ea52cca4a', 18 'pdfium_tests_revision': 'd25a422ab03d6c3109370bc454c629575e969329', 19 'skia_revision': '90e3cd78991ef337dbd0023efb30ece864694308', 20 'tools_memory_revision': '427f10475e1a8d72424c29d00bf689122b738e5d', 21 'trace_event_revision': '06294c8a4a6f744ef284cd63cfe54dbf61eea290', 22 'v8_revision': '7a634798302b4ab1f1525a9a881629519c0c2a99', 23 } 24 25 deps = { 26 "base/trace_event/common": 27 Var('chromium_git') + "/chromium/src/base/trace_event/common.git@" + 28 Var('trace_event_revision'), 29 30 "build": 31 Var('chromium_git') + "/chromium/src/build.git@" + Var('build_revision'), 32 33 "buildtools": 34 Var('chromium_git') + "/chromium/buildtools.git@" + Var('buildtools_revision'), 35 36 "testing/corpus": 37 Var('pdfium_git') + "/pdfium_tests@" + Var('pdfium_tests_revision'), 38 39 "testing/gmock": 40 Var('chromium_git') + "/external/googlemock.git@" + Var('gmock_revision'), 41 42 "testing/gtest": 43 Var('chromium_git') + "/external/googletest.git@" + Var('gtest_revision'), 44 45 "third_party/icu": 46 Var('chromium_git') + "/chromium/deps/icu.git@" + Var('icu_revision'), 47 48 "third_party/instrumented_libraries": 49 Var('chromium_git') + "/chromium/src/third_party/instrumented_libraries.git@" + Var('instrumented_lib_revision'), 50 51 "third_party/skia": 52 Var('chromium_git') + '/skia.git' + '@' + Var('skia_revision'), 53 54 "tools/clang": 55 Var('chromium_git') + "/chromium/src/tools/clang@" + Var('clang_revision'), 56 57 "tools/generate_library_loader": 58 Var('chromium_git') + "/chromium/src/tools/generate_library_loader@" + 59 Var('gen_library_loader_revision'), 60 61 # TODO(GYP): Remove this when no tools rely on GYP anymore. 62 "tools/gyp": 63 Var('chromium_git') + '/external/gyp.git' + '@' + 'c61b0b35c8396bfd59efc6cfc11401d912b0f510', 64 65 "tools/memory": 66 Var('chromium_git') + "/chromium/src/tools/memory@" + 67 Var('tools_memory_revision'), 68 69 "v8": 70 Var('chromium_git') + "/v8/v8.git@" + Var('v8_revision'), 71 } 72 73 deps_os = { 74 "android": { 75 "third_party/android_ndk": 76 Var('chromium_git') + "/android_ndk.git@" + Var('android_ndk_revision'), 77 "third_party/catapult": 78 Var('chromium_git') + "/external/github.com/catapult-project/catapult.git@" + Var('catapult_revision'), 79 }, 80 "win": { 81 "v8/third_party/cygwin": 82 Var('chromium_git') + "/chromium/deps/cygwin@" + Var('cygwin_revision'), 83 }, 84 } 85 86 recursedeps = [ 87 # buildtools provides clang_format, libc++, and libc++abi 88 'buildtools', 89 ] 90 91 include_rules = [ 92 # Basic stuff that everyone can use. 93 # Note: public is not here because core cannot depend on public. 94 '+testing', 95 '+third_party/base', 96 ] 97 98 specific_include_rules = { 99 # Allow embedder tests to use public APIs. 100 "(.*embeddertest\.cpp)": [ 101 "+public", 102 ] 103 } 104 105 hooks = [ 106 # Pull GN binaries. This needs to be before running GYP below. 107 { 108 'name': 'gn_win', 109 'action': [ 'download_from_google_storage', 110 '--no_resume', 111 '--platform=win32', 112 '--no_auth', 113 '--bucket', 'chromium-gn', 114 '-s', 'pdfium/buildtools/win/gn.exe.sha1', 115 ], 116 }, 117 { 118 'name': 'gn_mac', 119 'pattern': '.', 120 'action': [ 'download_from_google_storage', 121 '--no_resume', 122 '--platform=darwin', 123 '--no_auth', 124 '--bucket', 'chromium-gn', 125 '-s', 'pdfium/buildtools/mac/gn.sha1', 126 ], 127 }, 128 { 129 'name': 'gn_linux64', 130 'pattern': '.', 131 'action': [ 'download_from_google_storage', 132 '--no_resume', 133 '--platform=linux*', 134 '--no_auth', 135 '--bucket', 'chromium-gn', 136 '-s', 'pdfium/buildtools/linux64/gn.sha1', 137 ], 138 }, 139 # Pull clang-format binaries using checked-in hashes. 140 { 141 'name': 'clang_format_win', 142 'pattern': '.', 143 'action': [ 'download_from_google_storage', 144 '--no_resume', 145 '--platform=win32', 146 '--no_auth', 147 '--bucket', 'chromium-clang-format', 148 '-s', 'pdfium/buildtools/win/clang-format.exe.sha1', 149 ], 150 }, 151 { 152 'name': 'clang_format_mac', 153 'pattern': '.', 154 'action': [ 'download_from_google_storage', 155 '--no_resume', 156 '--platform=darwin', 157 '--no_auth', 158 '--bucket', 'chromium-clang-format', 159 '-s', 'pdfium/buildtools/mac/clang-format.sha1', 160 ], 161 }, 162 { 163 'name': 'clang_format_linux', 164 'pattern': '.', 165 'action': [ 'download_from_google_storage', 166 '--no_resume', 167 '--platform=linux*', 168 '--no_auth', 169 '--bucket', 'chromium-clang-format', 170 '-s', 'pdfium/buildtools/linux64/clang-format.sha1', 171 ], 172 }, 173 { 174 # Pull clang 175 'name': 'clang', 176 'pattern': '.', 177 'action': ['python', 178 'pdfium/tools/clang/scripts/update.py' 179 ], 180 }, 181 { 182 # Update the Windows toolchain if necessary. 183 'name': 'win_toolchain', 184 'pattern': '.', 185 'action': ['python', 'pdfium/build/vs_toolchain.py', 'update'], 186 }, 187 { 188 # Update the Mac toolchain if necessary. 189 'name': 'mac_toolchain', 190 'pattern': '.', 191 'action': ['python', 'pdfium/build/mac_toolchain.py'], 192 }, 193 { 194 # Pull sanitizer-instrumented third-party libraries if requested via 195 # GYP_DEFINES. 196 'name': 'instrumented_libraries', 197 'pattern': '\\.sha1', 198 'action': ['python', 'pdfium/third_party/instrumented_libraries/scripts/download_binaries.py'], 199 }, 200 201 ] 202