Lines Matching defs:build

343     build = pkg.build_system()
344 if not build:
345 raise Exception(f"Unable to find build system for {name}.")
347 for dep in set(build.dependencies()):
379 not os.path.exists(os.path.join("build", "compile_commands.json"))
399 "--project=build/compile_commands.json",
400 f"--cppcheck-build-dir={cpp_dir}",
476 # https://github.com/openbmc/openbmc-build-scripts/issues/31
537 Build systems generally provide the means to configure, build, install and
539 which Autotools, Meson, CMake and possibly other build system drivers can
545 """Initialise the driver with properties independent of the build
558 """Test if the build system driver can be applied to the package
560 Return True if the driver can drive the package's build system,
564 build system's configuration file(s).
575 data from the build system configuration.
588 implies that the package will be configured to build
592 Generally configure() is implemented by invoking the build system
597 def build(self):
600 Should raise an exception if the build fails
602 Generally build() is implemented by invoking `make` or `ninja`.
611 Like build(), install() is generally implemented by invoking `make` or
619 Should raise an exception if the build or testing fails.
631 Some analysis tools such as scan-build need injection into the build
633 behaviour. Analyzers independent of the build system can also be
635 the build system driver implementations.
730 def build(self):
784 def build(self):
787 "--build",
804 with TemporaryDirectory(prefix="build", dir=".") as build_dir:
805 # clang-tidy needs to run on a clang-specific build
837 return os.path.isfile(os.path.join(self.path, "meson.build"))
840 meson_build = os.path.join(self.path, "meson.build")
846 if "meson.build" not in files:
848 with open(os.path.join(root, "meson.build"), "rt") as f:
940 # is supported by meson's build types. Configure it manually.
971 "meson", "setup", "--reconfigure", "build", *meson_flags
974 shutil.rmtree("build", ignore_errors=True)
975 check_call_cmd("meson", "setup", "build", *meson_flags)
977 self.package = Meson._project_name("build")
979 def build(self):
980 check_call_cmd("ninja", "-C", "build")
983 check_call_cmd("sudo", "-n", "--", "ninja", "-C", "build", "install")
987 # It is useful to check various settings of the meson.build file
996 test_args = ("--repeat", str(args.repeat), "-C", "build")
1004 Returns whether the meson build supports the named test setup.
1016 "build",
1032 configurations by utilizing add_test_setup() in a meson.build
1045 "build",
1058 "build",
1081 with TemporaryDirectory(prefix="build", dir=".") as build_dir:
1107 check_call_cmd("ninja", "-C", "build", "scan-build")
1112 # in the build process to ensure we don't have undefined
1119 "meson", "setup", "--reconfigure", "build", *meson_flags
1122 shutil.rmtree("build", ignore_errors=True)
1123 check_call_cmd("meson", "setup", "build", *meson_flags)
1128 "build",
1134 # check_call_cmd('meson', 'configure', 'build',
1136 # check_call_cmd('meson', 'test', '-C', 'build'
1146 "meson", "setup", "--reconfigure", "build", *meson_flags
1149 shutil.rmtree("build", ignore_errors=True)
1150 check_call_cmd("meson", "setup", "build", *meson_flags)
1155 check_call_cmd("meson", "configure", "build", "-Db_coverage=true")
1157 # Only build coverage HTML if coverage files were produced
1158 for root, dirs, files in os.walk("build"):
1160 check_call_cmd("ninja", "-C", "build", "coverage-html")
1162 check_call_cmd("meson", "configure", "build", "-Db_coverage=false")
1166 with open(os.path.join(self.path, "meson.build"), "rt") as f:
1178 # get a meson.build missing this.
1185 "C++20 support requires specifying in meson.build: "
1191 # get a meson.build missing this.
1198 "C++23 support requires specifying in meson.build: "
1247 system.build()
1252 system.build()
1451 WORKSPACE, "openbmc-build-scripts", "scripts", "format-code.sh"
1464 print("No valid build system, exit")