示例#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)
示例#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()
示例#3
0
 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")
示例#4
0
文件: conanfile.py 项目: perryiv/usul
 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()
示例#5
0
    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()
示例#6
0
 def build(self):
     cmake = CMake(self)
     cmake.verbose = True
     cmake.configure()
     cmake.build()
示例#7
0
 def build(self):
     cmake = CMake(self)
     cmake.configure(build_script_folder="src")
     cmake.build()
示例#8
0
 def build(self):
     cmake = CMake(self)
     cmake.configure(build_script_folder=self._source_subfolder)
     cmake.build()
示例#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()
示例#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()
示例#11
0
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     if self.options.build_tests:
         cmake.test(output_on_failure=True)
示例#12
0
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     if self.settings.arch == "x86_64":
         cmake.test()
示例#13
0
文件: conanfile.py 项目: mpusz/units
 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()
示例#14
0
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     self.run(f"ctest -C {self.settings.build_type} --output-on-failure")
示例#15
0
 def build(self):
     apply_conandata_patches(self)
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
示例#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)
示例#17
0
 def build(self):
     cmake = CMake(self)
     cmake.configure("src")
     cmake.build()
示例#18
0
 def build(self):
     cmake = CMake(self)
     cmake.configure(source_folder="src")
     cmake.build()