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

Function main

scripts/update_deps.py:793–979  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

791
792
793def main():
794 parser = argparse.ArgumentParser(
795 description='Get and build dependent repos at known-good commits')
796 parser.add_argument(
797 '--known_good_dir',
798 dest='known_good_dir',
799 help="Specify directory for known_good.json file.")
800 parser.add_argument(
801 '--dir',
802 dest='dir',
803 default='.',
804 help="Set target directory for repository roots. Default is \'.\'.")
805 parser.add_argument(
806 '--ref',
807 dest='ref',
808 default='',
809 help="Override 'commit' with git reference. E.g., 'origin/main'")
810 parser.add_argument(
811 '--no-build',
812 dest='do_build',
813 action='store_false',
814 help=
815 "Clone/update repositories and generate build files without performing compilation",
816 default=True)
817 parser.add_argument(
818 '--clean',
819 dest='do_clean',
820 action='store_true',
821 help="Clean files generated by compiler and linker before building",
822 default=False)
823 parser.add_argument(
824 '--clean-repo',
825 dest='do_clean_repo',
826 action='store_true',
827 help="Delete repository directory before building",
828 default=False)
829 parser.add_argument(
830 '--clean-build',
831 dest='do_clean_build',
832 action='store_true',
833 help="Delete build directory before building",
834 default=False)
835 parser.add_argument(
836 '--clean-install',
837 dest='do_clean_install',
838 action='store_true',
839 help="Delete install directory before building",
840 default=False)
841 parser.add_argument(
842 '--skip-existing-install',
843 dest='skip_existing_install',
844 action='store_true',
845 help="Skip build if install directory exists",
846 default=False)
847 parser.add_argument(
848 '--arch',
849 dest='arch',
850 choices=['32', '64', 'x86', 'x64', 'win32', 'win64', 'arm64'],

Callers 1

update_deps.pyFile · 0.70

Calls 9

GetDefaultArchFunction · 0.85
make_or_exist_dirsFunction · 0.85
GetGoodReposFunction · 0.85
CreateHelperFunction · 0.85
IsOptionalMethod · 0.80
CheckoutMethod · 0.80
splitMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected