示例#1
0
 def package(self):
     cmake = CMake(self)
     cmake.install()
     tools.files.rmdir(conanfile=self,
                       path=os.path.join(self.package_folder, "lib",
                                         "cmake"))
     self.copy("LICENSE", src=self.source_folder, dst="licenses")
示例#2
0
    def package(self):
        cmake = CMake(self)
        cmake.install()
        self.copy(pattern="License.md", dst="licenses")

        tools.rmdir(os.path.join(self.package_folder, "cmake"))
        tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
示例#3
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()
示例#4
0
 def package(self):
     copy(self, "COPYING", self.build_folder,
          os.path.join(self.package_folder, "licenses"))
     cmake = CMake(self)
     cmake.install()
     rmdir(self, os.path.join(self.package_folder, "lib", "pkgconfig"))
     rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
     rmdir(self, os.path.join(self.package_folder, "share"))
示例#5
0
 def package(self):
     tools.files.copy(self, "GPLv2_license.txt", self.source_folder,
                      os.path.join(self.package_folder, "licenses"))
     tools.files.copy(self, "LICENSE.txt", self.source_folder,
                      os.path.join(self.package_folder, "licenses"))
     cmake = CMake(self)
     cmake.install()
     shutil.move(os.path.join(self.package_folder, 'import'),
                 os.path.join(self.package_folder, 'bin', 'import'))
示例#6
0
    def package(self):
        cmake = CMake(self)
        cmake.install()

        if self.settings.os == "Linux":
            pass
        if self.settings.os == "Windows":
            bin_dir = os.path.join(self.package_folder, 'bin')
            vars_dict = tools.vcvars_dict(self.settings)

            windows_sdk_dir = vars_dict['WindowsSdkDir']
            windows_sdk_version = vars_dict['WindowsSDKVersion']
            ucrt_redist_dir = os.path.join(windows_sdk_dir, 'Redist',
                                           windows_sdk_version, 'ucrt', 'DLLs',
                                           'x64')
            if not os.path.exists(ucrt_redist_dir):
                raise ConanInvalidConfiguration(
                    "ucrt redist dir does not exist: %s" % (ucrt_redist_dir))
            self.copy('*.dll', dst=bin_dir, src=ucrt_redist_dir)

            vctoolsredist_dir = vars_dict['VCToolsRedistDir']
            vcredist_dir = os.path.join(vctoolsredist_dir, 'x64',
                                        'Microsoft.VC142.CRT')
            if not os.path.exists(vcredist_dir):
                raise ConanInvalidConfiguration(
                    "ucrt redist dir does not exist: %s" % (ucrt_redist_dir))
            self.copy('*.dll', dst=bin_dir, src=vcredist_dir)

            qt_path_bin = self._get_qt_bin_paths()
            with tools.environment_append({"PATH": qt_path_bin}):
                with tools.chdir(bin_dir):
                    qml_dir = os.path.join(self.source_folder, 'fubble', 'app')
                    # dont do -no-widgets # widgets is needed for svg
                    self.run(
                        'windeployqt.exe fubble.exe --no-compiler-runtime --qmldir "%s"'
                        % (qml_dir))
示例#7
0
 def package(self):
     self.copy(pattern="LICENSE.md", dst="licenses")
     cmake = CMake(self)
     cmake.configure(source_folder=None if self._run_tests else "src")
     cmake.install()
示例#8
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()
示例#9
0
 def package(self):
     self.copy("LICENSE.txt", dst="licenses")
     self.copy("NOTICE.txt", dst="licenses")
     cmake = CMake(self)
     cmake.configure()
     cmake.install()
示例#10
0
 def package(self):
     self.copy("LICENSE", dst="licenses", src=self._source_subfolder)
     cmake = CMake(self)
     cmake.install()
     tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
示例#11
0
文件: conanfile.py 项目: mpusz/units
 def package(self):
     self.copy("LICENSE.md", dst="licenses")
     cmake = CMake(self)
     cmake.install()
     tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
示例#12
0
 def package(self):
     cmake = CMake(self)
     cmake.install()
示例#13
0
 def package(self):
     copy(self, "LICENSE", self.source_folder,
          os.path.join(self.package_folder, "licenses"))
     cmake = CMake(self)
     cmake.install()
示例#14
0
 def build(self):
     cmake = CMake(self)
     cmake.configure()
     cmake.build()
     self.run(f"ctest -C {self.settings.build_type} --output-on-failure")
     cmake.install()