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")
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"))
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 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"))
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'))
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))
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()
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()
def package(self): self.copy("LICENSE.txt", dst="licenses") self.copy("NOTICE.txt", dst="licenses") cmake = CMake(self) cmake.configure() cmake.install()
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"))
def package(self): self.copy("LICENSE.md", dst="licenses") cmake = CMake(self) cmake.install() tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
def package(self): cmake = CMake(self) cmake.install()
def package(self): copy(self, "LICENSE", self.source_folder, os.path.join(self.package_folder, "licenses")) cmake = CMake(self) cmake.install()
def build(self): cmake = CMake(self) cmake.configure() cmake.build() self.run(f"ctest -C {self.settings.build_type} --output-on-failure") cmake.install()