Lines Matching +full:0 +full:- +full:all +full:- +full:deps
8 # http://www.apache.org/licenses/LICENSE-2.0
33 # The format for the deps below is the following:
40 # root (to avoid ending up with buildtools/protobuf/protobuf-1.2.3/... and have
42 # |target_os| is either 'darwin', 'linux', 'windows' or 'all'
43 # |target_arch| is either 'x64', 'arm64' or 'all'
45 # |target_arch| can be 'all' when 'target_os' is not 'all' for example in the
66 'buildtools/mac/clang-format',
69 'buildtools/linux64/clang-format',
72 'buildtools/win/clang-format.exe',
79 # GN. From https://chrome-infra-packages.appspot.com/dl/gn/gn/.
83 'https://storage.googleapis.com/perfetto/gn-mac-1968-0725d782',
88 'https://storage.googleapis.com/perfetto/gn-mac-arm64-1968-0725d782',
93 'https://storage.googleapis.com/perfetto/gn-linux64-1968-0725d782',
98 'https://storage.googleapis.com/perfetto/gn-win-1968-0725d782',
102 # clang-format
103 …# From https://chromium.googlesource.com/chromium/src/buildtools/+/refs/heads/master/mac/clang-for…
105 'third_party/clang-format/clang-format',
106 … 'https://storage.googleapis.com/chromium-clang-format/62bde1baa7196ad9df969fc1f06b66360b1a927b',
108 'darwin', 'all'),
109 …s://chromium.googlesource.com/chromium/src/buildtools/+/refs/heads/master/linux64/clang-format.sha1
111 'third_party/clang-format/clang-format',
112 … 'https://storage.googleapis.com/chromium-clang-format/1baf0089e895c989a311b6a38ed94d0e8be4c0a7',
115 …# From https://chromium.googlesource.com/chromium/src/buildtools/+/refs/heads/master/win/clang-for…
117 'third_party/clang-format/clang-format.exe',
118 … 'https://storage.googleapis.com/chromium-clang-format/d4afd4eba27022f5f6d518133aebde57281677c9',
122 # Keep the SHA1 in sync with |clang_format_rev| in chromium //buildtools/DEPS.
125 'https://chromium.googlesource.com/chromium/llvm-project/cfe/tools/clang-format.git',
126 '96636aa0e9f047f17447f2d45a094d0b59ed7917', 'all', 'all'),
131 'https://storage.googleapis.com/perfetto/ninja-mac-x64_and_arm64-182',
133 'darwin', 'all'),
136 'https://storage.googleapis.com/perfetto/ninja-linux64-182',
141 'https://storage.googleapis.com/perfetto/ninja-win-182',
149 …s://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/clang-llvmorg-16-init-8697-g…
154 …ttps://commondatastorage.googleapis.com/chromium-browser-clang/Win/clang-llvmorg-16-init-8697-g608…
164 '609281088cfefc76f9d0ce82e1ff6c30cc3591e5', 'all', 'all'),
171 'all',
172 'all'),
175 # lib from sources. Keep the SHA1s in sync with Chrome's src/buildtools/DEPS.
178 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxx.git',
179 'f8571eaba606bde2eb8cd34b30104ca33e7c207e', 'all', 'all'),
182 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libcxxabi.git',
183 '8dd405113a4f3694e910b79785dd7fb7535a888a', 'all', 'all'),
186 'https://chromium.googlesource.com/external/github.com/llvm/llvm-project/libunwind.git',
187 'aabcd8753678f1536e15eb6385a948470debdae4', 'all', 'all'),
189 # Keep in sync with chromium DEPS.
192 'https://chromium.googlesource.com/chromium/llvm-project/compiler-rt/lib/fuzzer.git',
193 'debe7d2d1982e540fbd6bd78604bf001753f9e74', 'linux', 'all'),
199 'e991355c02b93fe17713efe04cbc2e278e00fdbd', 'all', 'all'),
205 …'https://storage.googleapis.com/perfetto/libbacktrace-177940370e4a6b2509e92a0aaa9749184e64af43.zip…
207 'all', 'all'),
213 # If updating the version, also update bazel/deps.bzl.
216 'https://storage.googleapis.com/perfetto/sqlite-amalgamation-3390200.zip',
218 'all', 'all'),
222 '202b2a7b54ea2dd13a8a5adfd75523abe4dcf17f', # refs/tags/version-3.39.2.
223 'all',
224 'all'),
228 # If updating the version, also update bazel/deps.bzl.
231 'https://chromium.googlesource.com/external/github.com/open-source-parsers/jsoncpp.git',
233 'all',
234 'all'),
236 # Archive with only the demangling sources from llvm-project.
239 # sources, as hosted on https://llvm.googlesource.com/llvm-project.
240 # If updating the version, also update bazel/deps.bzl.
242 'buildtools/llvm-project.tgz',
243 …'https://storage.googleapis.com/perfetto/llvm-project-3b4c59c156919902c785ce3cbae0eee2ee53064d.tgz…
245 'all', 'all'),
248 Dependency('buildtools/android-core',
250 '9e6cef7f07d8c11b3ea820938aeb7ff2e9dbaa52', 'all', 'all'),
252 'buildtools/android-unwinding',
254 '11cf5564fbff659b5cdba9c3e977d4fc51bab4b3', 'all', 'all'),
255 Dependency('buildtools/android-logging',
257 '7b36b566c9113fc703d68f76e8f40c0c2432481c', 'all', 'all'),
258 Dependency('buildtools/android-libbase',
260 '78f1c2f83e625bdf66d55b48bdb3a301c20d2fb3', 'all', 'all'),
262 'buildtools/android-libprocinfo',
264 'fd214c13ededecae97a3b15b5fccc8925a749a84', 'all', 'all'),
267 '7851dce6f4ca17f5caa1c93a4e0a45686b1d56c3', 'all', 'all'),
270 '4b0e16bc72a82a63c699977376a7d6eadca1b206', 'all', 'all'),
274 # If updating the version, also update bazel/deps.bzl.
277 '6d3f6aa0f87c9791ca7724c279ef61384f331dfd', 'all', 'all'),
280 # If updating the version, also update bazel/deps.bzl.
283 'c894b9e59f02203dbe4e2be657572cf88c4230c3', 'all', 'all'),
288 …'https://storage.googleapis.com/perfetto/bloaty-1.1-b3b829de35babc2fe831b9488ad2e50bca939412-mac.z…
290 'darwin', 'all'),
295 # - https://dl.google.com/android/repository/repository-11.xml
296 # - https://dl.google.com/android/repository/sys-img/android/sys-img.xml
301 'https://dl.google.com/android/repository/android-ndk-r21e-darwin-x86_64.zip',
303 'darwin', 'all'),
306 'https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip',
315 'buildtools/aosp-arm.zip',
316 'https://storage.googleapis.com/perfetto/aosp-02022018-arm.zip',
318 'all', 'all'),
320 # platform-tools.zip contains adb binaries.
322 'buildtools/android_sdk/platform-tools.zip',
323 'https://dl.google.com/android/repository/platform-tools_r26.0.0-darwin.zip',
325 'darwin', 'all'),
327 'buildtools/android_sdk/platform-tools.zip',
328 'https://dl.google.com/android/repository/platform-tools_r26.0.0-linux.zip',
335 'https://android.googlesource.com/platform/prebuilts/android-emulator.git',
336 '4b260028dc27bc92c39bee9129cb2ba839970956', 'all', 'x64'),
339 # This variable is updated by tools/roll-catapult-trace-viewer.
347 … 'https://storage.googleapis.com/chromium-nodejs/16.13.0/31859fc1fa0994a95f44f09c367d6ff63607cfde',
352 … 'https://storage.googleapis.com/chromium-nodejs/16.13.0/16dfd094763b71988933a31735f9dea966f9abd6',
357 … 'https://storage.googleapis.com/chromium-nodejs/16.13.0/ab9544e24e752d3d17f335fb7b2055062e582d11',
362 'https://storage.googleapis.com/perfetto/emscripten-2.0.12-mac.tgz',
364 'darwin', 'all'),
367 'https://storage.googleapis.com/perfetto/emscripten-2.0.12-linux.tgz',
372 'https://storage.googleapis.com/perfetto/catapult_trace_viewer-%s.tar.gz'
373 % CATAPULT_SHA256, CATAPULT_SHA256, 'all', 'all'),
376 'https://storage.googleapis.com/perfetto/typefaces-%s.tar.gz' %
377 TYPEFACES_SHA256, TYPEFACES_SHA256, 'all', 'all')
385 '6943c1841f57cac4666b165aea4f618fe73b3ff1', 'all', 'all', True),
388 # Sysroots required to cross-compile Linux targets (linux-arm{,64}).
392 'buildtools/debian_sid_arm-sysroot.tgz',
393 …'https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/11d6f690ca49e8ba01a1d8c53…
395 'linux', 'all'),
397 'buildtools/debian_sid_arm64-sysroot.tgz',
398 …'https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/2befe8ce3e88be6080e4fb7e6…
400 'linux', 'all'),
429 CheckCallRetry(['curl', '-L', '-#', '-o', out_file, url])
469 min_acls = 0o755 if info.filename.endswith('/') else 0o644
478 # Git creates read-only files on windows, which cause failures with rmtree.
494 # rm -rf / or similar.
516 CheckCallRetry(['git', 'fetch', '--quiet', '--depth', '1', git_url, revision],
518 subprocess.check_call(['git', 'checkout', revision, '--quiet'], cwd=path)
520 ['git', 'submodule', 'update', '--init', '--recursive', '--quiet'],
530 subprocess.check_call(['git', 'clean', '-qxffd', node_modules],
532 logging.info("Running `npm ci` in {0}".format(UI_DIR))
533 # `npm ci` is like `npm install` but respects package-lock.json.
538 pbjs = [node_bin, 'node_modules/.bin/pbjs', '/dev/null', '-o', '/dev/null']
541 f.write(HashLocalFile(os.path.join(UI_DIR, 'package-lock.json')))
545 """Returns True if the modules are up-to-date.
548 just check if package-lock.json changed since the last `npm install` call.
554 expected = HashLocalFile(os.path.join(UI_DIR, 'package-lock.json'))
562 logging.info('Downloading %s for %s-%s', dep.source_url, dep.target_os,
570 logging.fatal('SHA-256 mismatch for {} expected {} was {}'.format(
579 cmd = ['git', '-C', dt_dir, 'merge-base', '--is-ancestor', 'a0cf4321', 'HEAD']
581 if git_ret == 0:
583 print('\033[91mYour depot_tools revision is too old. Please run:\033[0m')
584 print('git -C %s fetch origin && git -C %s checkout -B main -t origin/main' %
592 '--android',
596 '--linux-arm',
600 '--ui',
602 help='Node and NPM packages to Build the Web-based UI via ./ui/build')
604 '--grpc', action='store_true', help='Packages to build gRPC')
605 parser.add_argument('--check-only')
606 parser.add_argument('--filter', action='append')
607 parser.add_argument('--verify', help='Check all URLs', action='store_true')
609 '--no-toolchain', help='Do not download toolchain', action='store_true')
613 return 0
623 deps = BUILD_DEPS_HOST
625 deps += BUILD_DEPS_TOOLCHAIN_HOST
627 deps += BUILD_DEPS_ANDROID + TEST_DEPS_ANDROID
629 deps += BUILD_DEPS_LINUX_CROSS_SYSROOTS
631 deps += UI_DEPS
633 deps += GRPC_DEPS
640 for dep in deps:
642 matches_os = dep.target_os == 'all' or target_os == dep.target_os
643 matches_arch = dep.target_arch == 'all' or target_arch == dep.target_arch
654 zip_target_dir = local_path[:-4] if is_zip else None
668 os.chmod(download_path, 0o755)
672 logging.fatal('SHA-256 mismatch for {} expected {} was {}'.format(
689 subprocess.check_call(['tar', '-oxf', local_path], cwd=zip_target_dir)
695 # If the zip contains one root folder, rebase one level up moving all
699 subdir = os.path.join(zip_target_dir, subdir[0])
718 test_data_synced = 0 == subprocess.call([
719 cur_python_interpreter, TEST_DATA_SCRIPT, 'status', '--quiet',
720 '--ignore-new'
726 return 0
728 [x for x in sys.argv[1:] if not x.startswith('--check-only')])
729 print('\033[91mBuild deps are stale. ' +
730 'Please run tools/install-build-deps %s\033[0m' % argz)
736 cmd = [cur_python_interpreter, TEST_DATA_SCRIPT, 'download', '--overwrite']
738 cmd += ['--verbose'] # For CI bots