Lines Matching +full:build +full:- +full:args
1 # -*- coding: utf-8 -*-
3 #-------------------------------------------------------------------------
5 # --------------------------------------
13 # http://www.apache.org/licenses/LICENSE-2.0
21 #-------------------------------------------------------------------------
29 from ctsbuild.build import *
57 args = [pythonExecutable, os.path.join(env.srcDir, self.scriptPath)]
60 args += self.getExtraArgs(env)
62 execute(args)
66 return ["-DCMAKE_C_FLAGS=%s" % cflagsStr, "-DCMAKE_CXX_FLAGS=%s" % cflagsStr]
69 …return ["-DDEQP_TARGET=%s" % target, "-DCMAKE_C_COMPILER=%s" % cc, "-DCMAKE_CXX_COMPILER=%s" % cpp…
87 args = makeBuildArgs(self.target, self.cc, self.cpp, self.cflags)
88 return BuildConfig(buildDir, self.buildType, args, env.srcDir)
95 args = ["-DCMAKE_C_FLAGS=/WX -DCMAKE_CXX_FLAGS=/WX"]
96 return BuildConfig(buildDir, self.buildType, args, env.srcDir)
98 class Build(BuildTestStep): class
115 build(curConfig, self.generator)
123 execute(["git", "diff", "--exit-code"])
129 if which("clang-" + version) != None:
130 return "-" + version
141 COMMON_CFLAGS = ["-Werror", "-Wno-error=unused-function"]
142 COMMON_GCC_CFLAGS = COMMON_CFLAGS + ["-Wno-error=array-bounds"]
143 COMMON_CLANG_CFLAGS = COMMON_CFLAGS + ["-Wno-error=unused-command-line-argument"]
144 GCC_32BIT_CFLAGS = COMMON_GCC_CFLAGS + ["-m32"]
145 CLANG_32BIT_CFLAGS = COMMON_CLANG_CFLAGS + ["-m32"]
146 GCC_64BIT_CFLAGS = COMMON_GCC_CFLAGS + ["-m64"]
147 CLANG_64BIT_CFLAGS = COMMON_CLANG_CFLAGS + ["-m64"]
152 RunScript(os.path.join("external", "fetch_sources.py"), lambda env: ["--force"])
161 Build("clang-64-debug",
168 Build("gcc-32-debug",
175 Build("gcc-64-release",
182 Build("vs-64-debug",
188 ('gen-inl-files', [
193 …RunScript(os.path.join("external", "vulkancts", "scripts", "gen_framework.py"), lambda env: ["--ap…
194 …path.join("external", "vulkancts", "scripts", "gen_framework_c.py"), lambda env: ["--api", "SC"] ),
200 ('android-mustpass', [
202 lambda env: ["--build-dir", os.path.join(env.tmpDir, "android-mustpass")]),
204 ('vulkan-mustpass', [
206 lambda env: ["--build-dir", os.path.join(env.tmpDir, "vulkan-mustpass")]),
208 ('spirv-binaries', [
210 lambda env: ["--build-type", "Release",
211 "--build-dir", os.path.join(env.tmpDir, "spirv-binaries"),
212 "--dst-path", os.path.join(env.tmpDir, "spirv-binaries")]),
214 ('amber-verify', [
216 lambda env: ["--build-type", "Release",
217 "--build-dir", os.path.join(env.tmpDir, "amber-verify"),
218 "--dst-path", os.path.join(env.tmpDir, "amber-verify")]),
220 ('check-all', [
247 parser = argparse.ArgumentParser(description = "Build and test source",
249 parser.add_argument("-s",
250 "--src-dir",
254 parser.add_argument("-t",
255 "--tmp-dir",
257 default=os.path.join(tempfile.gettempdir(), "deqp-build-test"),
259 parser.add_argument("-r",
260 "--recipe",
264 help="Build / test recipe")
265 parser.add_argument("-d",
266 "--dump-recipes",
270 parser.add_argument("--skip-prerequisites",
274 parser.add_argument("--skip-post-checks",
282 args = parseArgs() variable
283 env = Environment(args.srcDir, args.tmpDir)
285 if args.dumpRecipes:
292 name, steps = getAllRecipe(RECIPES) if args.recipe == "all" \
293 else getRecipe(RECIPES, args.recipe)
297 …allSteps = (PREREQUISITES if (args.skipPrerequisites == False) else []) + steps + (POST_CHECKS if …