From 2fd29fd24caa75e0675ebf0d0942fb40014c68d7 Mon Sep 17 00:00:00 2001 From: deekshith-elear <45193416+deekshith-elear@users.noreply.github.com> Date: Mon, 29 Apr 2019 07:00:07 +0530 Subject: [PATCH] Provides conan recipe file to build artifacts (#3) --- conanfile.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 conanfile.py diff --git a/conanfile.py b/conanfile.py new file mode 100644 index 0000000..d7b7fab --- /dev/null +++ b/conanfile.py @@ -0,0 +1,28 @@ +from conans import ConanFile, AutoToolsBuildEnvironment, tools + +class JsonclibConan(ConanFile): + name = "json-c" + version = "0.1" + license = "" + author = " " + url = "" + description = "" + topics = ("", "", "") + settings = "os", "compiler", "build_type", "arch" + options = { "shared": [True, False] } + default_options = "shared=False" + generators = "make" + + def build(self): + autotools = AutoToolsBuildEnvironment(self) + self.run("cd .. && autoreconf -fsi ") + autotools.configure(configure_dir="..",args=["--prefix=${PWD}"]) + autotools.make() + autotools.install() + + def package(self): + self.copy("*.h", dst="include", src="include") + self.copy("*", dst="lib", src="lib", keep_path=False) + + def package_info(self): + self.cpp_info.libs = [ "json-c" ]