def grab_and_prepare(name: str, spec: PackageSpec, params: DependencyParameters) -> SourceState: if spec.recipe != 'custom': return grab_and_prepare_regular_package(name, spec) assert name == 'v8' return grab_and_prepare_v8_package(spec, params.get_package_spec("depot_tools"))
def synchronize(packages: List[Package], params: DependencyParameters): toolchain_state = ensure_bootstrap_toolchain(params.bootstrap_version) if toolchain_state == SourceState.MODIFIED: wipe_build_state() check_environment() for name, _, _ in packages: pkg_state = grab_and_prepare(name, params.get_package_spec(name), params) if pkg_state == SourceState.MODIFIED: wipe_build_state()
def build(packages: List[Package], params: DependencyParameters): for name, role, extra_options in packages: build_package(name, role, params.get_package_spec(name), extra_options)