Lines Matching +full:cmake +full:- +full:args
8 # https://www.apache.org/licenses/LICENSE-2.0
17 # - Python3 (apt-get install -y python3.x)
18 # - GO (apt-get install -y golang-go)
19 # - cmake (version 3.13 or later)
20 # - ninja (apt-get install -y ninja-build)
21 # - git (sudo apt-get install -y git)
24 # - crypto/openpgp (go get -u golang.org/x/crypto/openpgp...)
43 "-d",
44 "--directory",
48 default=str(Path(tempfile.gettempdir()) / "deqp-swiftshader")
51 "-u",
52 "--url",
59 "-l",
60 "--vlayer_url",
64 default="https://github.com/KhronosGroup/Vulkan-ValidationLayers.git",
67 "-b",
68 "--sws_build_type",
76 "-q",
77 "--deqp_vk",
80 help="Path to deqp-vk binary.",
83 "-v",
84 "--vk_gl_cts",
87 help="Path to vk-gl-cts source directory.",
90 "-w",
91 "--vk_gl_cts_build",
94 help="Path to vk-gl-cts build directory.",
95 default=str(Path(tempfile.gettempdir()) / "deqp-swiftshader" / "vk-gl-cts-build"),
98 "-t",
99 "--vk_gl_cts_build_type",
102 help="vk-gl-cts build type.",
107 "-r",
108 "--recipe",
112 choices=["run-deqp", "check-comparison"],
113 default="run-deqp",
116 "-f",
117 "--files",
124 "-a",
125 "--validation",
133 "-o",
134 "--result_output",
141 ARGS = AP.parse_args() variable
143 # Check that we have everything needed to run the script when using recipe run-deqp.
144 if ARGS.recipe == "run-deqp":
146 raise RuntimeError("go not found. (apt-get install -y golang-go)")
147 if which("cmake") is None:
148 raise RuntimeError("CMake not found. (version 3.13 or later needed)")
150 raise RuntimeError("Ninja not found. (apt-get install -y ninja-build)")
152 raise RuntimeError("Git not found. (apt-get install -y git)")
153 if ARGS.vk_gl_cts is None:
154 raise RuntimeError("vk-gl-cts source directory must be provided. Use --help for more info.")
156 PARENT_DIR = Path(ARGS.directory).resolve()
160 SWIFTSHADER_URL = ARGS.url
162 LAYERS_PARENT_DIR = Path(ARGS.directory).resolve()
164 LAYERS_URL = ARGS.vlayer_url
172 VK_GL_CTS_ROOT_DIR = Path(ARGS.vk_gl_cts)
173 VK_GL_CTS_BUILD_DIR = Path(ARGS.vk_gl_cts_build)
174 MUSTPASS_LIST = VK_GL_CTS_ROOT_DIR / "external" / "vulkancts" / "mustpass" / "main" / "vk-default.t…
175 if ARGS.deqp_vk is None:
176 … DEQP_VK_BINARY = VK_GL_CTS_BUILD_DIR / "external" / "vulkancts" / "modules" / "vulkan" / "deqp-vk"
178 DEQP_VK_BINARY = str(ARGS.deqp_vk)
218 if line.find(test) != -1:
227 # Run deqp-vk with regres.
229 deqpVkParam = "--deqp-vk=" + deqp_path
230 validationLayerParam = "--validation=" + ARGS.validation
231 testListParam = "--test-list=" + testlist_path
235 def run(command: str, working_dir: str = Path.cwd()) -> None:
396 # Build VK-GL-CTS
403 # Build VK-GL-CTS
404 buildType = "-DCMAKE_BUILD_TYPE=" + ARGS.vk_gl_cts_build_type
405 …run([which("cmake"), "-GNinja", str(VK_GL_CTS_ROOT_DIR), buildType], working_dir=VK_GL_CTS_BUILD_D…
406 run([which("ninja"), "deqp-vk"], working_dir=VK_GL_CTS_BUILD_DIR)
407 print(f"vk-gl-cts built to: {VK_GL_CTS_BUILD_DIR}")
419 run([which("cmake"),
420 "-GNinja",
422 "-DSWIFTSHADER_BUILD_EGL:BOOL=OFF",
423 "-DSWIFTSHADER_BUILD_GLESv2:BOOL=OFF",
424 "-DSWIFTSHADER_BUILD_TESTS:BOOL=OFF",
425 "-DINSTALL_GTEST=OFF",
426 "-DBUILD_TESTING:BOOL=OFF",
427 "-DENABLE_CTEST:BOOL=OFF",
428 "-DCMAKE_BUILD_TYPE=" + ARGS.sws_build_type],
430 run([which("cmake"), "--build", ".", "--target", "vk_swiftshader"], working_dir=SWS_BUILD_DIR)
433 if ARGS.validation == "true":
445 run([which("cmake"),
446 "-GNinja",
447 "-C",
448 "helper.cmake",
451 run([which("cmake"), "--build", "."], working_dir=LAYERS_BUILD_DIR)
464 copyfile(str(REGRES_DIR / "results.json"), str(RESULT_DIR / ARGS.result_output))
470 if ARGS.recipe == "run-deqp":
472 if ARGS.deqp_vk is None:
477 if ARGS.recipe == "check-comparison":
478 if ARGS.files is None:
479 …meError("No comparable files provided. Please provide them with flag --files. Use --help for more …
480 newFile, oldFile = ARGS.files