Lines Matching defs:build

341     build = pkg.build_system()
342 if not build:
343 raise Exception(f"Unable to find build system for {name}.")
345 for dep in set(build.dependencies()):
376 if not os.path.exists(os.path.join("build", "compile_commands.json")):
394 "--project=build/compile_commands.json",
395 f"--cppcheck-build-dir={cpp_dir}",
467 # https://github.com/openbmc/openbmc-build-scripts/issues/31
528 Build systems generally provide the means to configure, build, install and
530 which Autotools, Meson, CMake and possibly other build system drivers can
536 """Initialise the driver with properties independent of the build
549 """Test if the build system driver can be applied to the package
551 Return True if the driver can drive the package's build system,
555 build system's configuration file(s).
566 data from the build system configuration.
579 implies that the package will be configured to build
583 Generally configure() is implemented by invoking the build system
588 def build(self):
591 Should raise an exception if the build fails
593 Generally build() is implemented by invoking `make` or `ninja`.
602 Like build(), install() is generally implemented by invoking `make` or
610 Should raise an exception if the build or testing fails.
622 Some analysis tools such as scan-build need injection into the build
624 behaviour. Analyzers independent of the build system can also be
626 the build system driver implementations.
721 def build(self):
775 def build(self):
778 "--build",
795 with TemporaryDirectory(prefix="build", dir=".") as build_dir:
796 # clang-tidy needs to run on a clang-specific build
828 return os.path.isfile(os.path.join(self.path, "meson.build"))
831 meson_build = os.path.join(self.path, "meson.build")
837 if "meson.build" not in files:
839 with open(os.path.join(root, "meson.build"), "rt") as f:
930 # is supported by meson's build types. Configure it manually.
961 "meson", "setup", "--reconfigure", "build", *meson_flags
964 shutil.rmtree("build", ignore_errors=True)
965 check_call_cmd("meson", "setup", "build", *meson_flags)
967 self.package = Meson._project_name("build")
969 def build(self):
970 check_call_cmd("ninja", "-C", "build")
973 check_call_cmd("sudo", "-n", "--", "ninja", "-C", "build", "install")
977 # It is useful to check various settings of the meson.build file
986 test_args = ("--repeat", str(args.repeat), "-C", "build")
994 Returns whether the meson build supports the named test setup.
1006 "build",
1022 configurations by utilizing add_test_setup() in a meson.build
1035 "build",
1047 "build",
1061 with TemporaryDirectory(prefix="build", dir=".") as build_dir:
1074 check_call_cmd("ninja", "-C", "build", "scan-build")
1079 # in the build process to ensure we don't have undefined
1086 "meson", "setup", "--reconfigure", "build", *meson_flags
1089 shutil.rmtree("build", ignore_errors=True)
1090 check_call_cmd("meson", "setup", "build", *meson_flags)
1095 "build",
1102 # check_call_cmd('meson', 'configure', 'build',
1104 # check_call_cmd('meson', 'test', '-C', 'build'
1106 check_call_cmd("meson", "configure", "build", "-Db_sanitize=none")
1111 check_call_cmd("meson", "configure", "build", "-Db_coverage=true")
1113 # Only build coverage HTML if coverage files were produced
1114 for root, dirs, files in os.walk("build"):
1116 check_call_cmd("ninja", "-C", "build", "coverage-html")
1118 check_call_cmd("meson", "configure", "build", "-Db_coverage=false")
1122 with open(os.path.join(self.path, "meson.build"), "rt") as f:
1134 # get a meson.build missing this.
1141 "C++20 support requires specifying in meson.build: "
1147 # get a meson.build missing this.
1154 "C++23 support requires specifying in meson.build: "
1195 system.build()
1200 system.build()
1390 WORKSPACE, "openbmc-build-scripts", "scripts", "format-code.sh"
1403 print("No valid build system, exit")