Beispiel #1
0
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     if self.options.run_tests:
         with tools.run_environment(self):
             cmake.test(output_on_failure=True)
Beispiel #2
0
 def build(self):
     cmake = CMake(self)
     if self.should_configure:
         cmake.configure()
     if self.should_build:
         cmake.build()
     if self.should_install and self.develop:
         cmake.install()
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     if not cross_building(self):
         pkg_config = PkgConfig(self, "wayland-scanner",
                                self.generators_folder)
         self.run('%s --version' % pkg_config.variables["wayland_scanner"],
                  env="conanrun")
Beispiel #4
0
 def build(self):
     cmake = CMake(self)
     with tools.run_environment(self):
         cmake.configure()
         cmake.build()
         if self.options.run_tests:
             with tools.environment_append({"CTEST_OUTPUT_ON_FAILURE":
                                            "1"}):
                 cmake.test()
    def build(self):
        # TODO: Add some test for the cross-building scenario

        if not cross_building(self):
            calc_wsdl = os.path.join(os.path.dirname(__file__), 'calc.wsdl')
            self.output.info("Generating code from WSDL '{}'".format(calc_wsdl))
            self.run("wsdl2h -o calc.h {}".format(calc_wsdl), run_environment=True)
            self.run("soapcpp2 -j -CL -I{} calc.h".format(os.path.join(self.deps_cpp_info["gsoap"].rootpath, 'bin', 'import')), run_environment=True)

            cmake = CMake(self)
            cmake.configure()
            cmake.build()
Beispiel #6
0
 def build(self):
     cmake = CMake(self)
     cmake.verbose = True
     cmake.configure()
     cmake.build()
Beispiel #7
0
 def build(self):
     cmake = CMake(self)
     cmake.configure(build_script_folder="src")
     cmake.build()
Beispiel #8
0
 def build(self):
     cmake = CMake(self)
     cmake.configure(build_script_folder=self._source_subfolder)
     cmake.build()
Beispiel #9
0
 def package(self):
     cmake = CMake(self)
     if self.settings.build_type == "Release" and not self.settings.os == "Windows":
         cmake.build(target="install/strip")
     else:
         cmake.install()
Beispiel #10
0
 def build(self):
     cmake = CMake(self)
     # Current dir is "test_package/build/<build_id>" and CMakeLists.txt is
     # in "test_package"
     cmake.configure()
     cmake.build()
Beispiel #11
0
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     if self.options.build_tests:
         cmake.test(output_on_failure=True)
Beispiel #12
0
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     if self.settings.arch == "x86_64":
         cmake.test()
Beispiel #13
0
 def build(self):
     cmake = CMake(self)
     cmake.configure(build_script_folder=None if self._run_tests else "src")
     cmake.build()
     if self._run_tests:
         cmake.test()
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     self.run(f"ctest -C {self.settings.build_type} --output-on-failure")
Beispiel #15
0
 def build(self):
     apply_conandata_patches(self)
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
Beispiel #16
0
 def build(self):
     cmake = CMake(self)
     cmake.configure(source_folder=None if self._run_tests else "src")
     cmake.build()
     if self._run_tests:
         cmake.test(output_on_failure=True)
Beispiel #17
0
 def build(self):
     cmake = CMake(self)
     cmake.configure("src")
     cmake.build()
Beispiel #18
0
 def build(self):
     cmake = CMake(self)
     cmake.configure(source_folder="src")
     cmake.build()