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

Method CMakeBuild

scripts/update_deps.py:658–669  ·  view source on GitHub ↗

Build CMake command for the build phase and execute it

(self)

Source from the content-addressed store, hash-verified

656 run_cmake_command(cmake_cmd)
657
658 def CMakeBuild(self):
659 """Build CMake command for the build phase and execute it"""
660 cmake_cmd = ['cmake', '--build', self.build_dir, '--target', 'install', '--config', CONFIG_MAP[self._args.config]]
661 if self._args.do_clean:
662 cmake_cmd.append('--clean-first')
663
664 # Xcode / Ninja are parallel by default.
665 if self._args.generator != "Ninja" or self._args.generator != "Xcode":
666 cmake_cmd.append('--parallel')
667 cmake_cmd.append(format(multiprocessing.cpu_count()))
668
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"""

Callers 1

BuildMethod · 0.95

Calls 2

formatFunction · 0.85
run_cmake_commandFunction · 0.85

Tested by

no test coverage detected