You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started the package using Conan v1 and I'm not sure if I should migrate to v2... also seems that bintray is now jfrog... I will back to this later then.
conanfile.py
fromconansimportConanFile, AutoToolsBuildEnvironmentfromconansimporttoolsclassWebuiConan(ConanFile):
name="webui"version="2.4.2"license="MIT License"url="<https://github.com/webui-dev/webui, https://github.com/webui-dev/webui/issues>"description="<Use any web browser as GUI, with your preferred language in the backend and HTML5 in the frontend, all in a lightweight portable lib.>"settings="os", "compiler", "build_type", "arch"exports_sources="src/*", "include/*", "bridge/webui_bridge.h", "Makefile", "GNUmakefile"generators="make"defbuild(self):
autotools=AutoToolsBuildEnvironment(self)
ifself.settings.os=="Windows":
# `nmake` or `mingw32-make` on Windowsifself.settings.compiler=="gcc":
autotools.make(args=["-f", "Makefile"], make_program="mingw32-make")
elifself.settings.compiler=="Visual Studio":
autotools.make(args=["-f", "Makefile"], make_program="nmake")
else:
# Default to 'make' on Linux and macOSautotools.make(args=["-f", "Makefile"])
defpackage(self):
self.copy("*.h", dst="include", src="include")
self.copy("webui_bridge.h", dst="bridge", src="bridge")
self.copy("*webui-2*.dll", dst="bin", keep_path=False)
self.copy("*webui-2*.so", dst="bin", keep_path=False)
self.copy("*webui-2*.dynlib", dst="bin", keep_path=False)
self.copy("*webui-2-static.lib", dst="lib", keep_path=False)
self.copy("*libwebui-2-static.a", dst="lib", keep_path=False)
defpackage_info(self):
self.cpp_info.libs=tools.collect_libs(self)
It would be much easier to use conan in C/C++ environment through package
The text was updated successfully, but these errors were encountered: