MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / Build

Method Build

scripts/update_deps.py:671–695  ·  view source on GitHub ↗

Build the dependent repo and time how long it took

(self, repos, repo_dict)

Source from the content-addressed store, hash-verified

669 run_cmake_command(cmake_cmd)
670
671 def Build(self, repos, repo_dict):
672 """Build the dependent repo and time how long it took"""
673 if VERBOSE:
674 print('Building {n} in {d}'.format(n=self.name, d=self.repo_dir))
675 print('Build dir = {b}'.format(b=self.build_dir))
676 print('Install dir = {i}\n'.format(i=self.install_dir))
677
678 start = time.time()
679
680 # Run any prebuild commands
681 self.PreBuild()
682
683 if self.build_step == 'custom':
684 self.CustomBuild(repo_dict)
685 return
686
687 # Build and execute CMake command for creating build files
688 self.CMakeConfig(repos)
689
690 # Build and execute CMake command for the build
691 self.CMakeBuild()
692
693 total_time = time.time() - start
694
695 print(f"Installed {self.name} ({self.commit}) in {total_time:.3f} seconds", flush=True)
696
697 def AcquireReleaseArtifacts(self):
698 """Process acquiring the release artifacts and time how long it took"""

Callers 1

mainFunction · 0.45

Calls 4

PreBuildMethod · 0.95
CustomBuildMethod · 0.95
CMakeConfigMethod · 0.95
CMakeBuildMethod · 0.95

Tested by

no test coverage detected