Browse Source

Provides conan recipe file to build artifacts (#3)

pull/866/head
deekshith-elear GitHub 6 years ago
parent
commit
2fd29fd24c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions
  1. +28
    -0
      conanfile.py

+ 28
- 0
conanfile.py View File

@@ -0,0 +1,28 @@
from conans import ConanFile, AutoToolsBuildEnvironment, tools

class JsonclibConan(ConanFile):
name = "json-c"
version = "0.1"
license = "<Put the package license here>"
author = "<Put your name here> <And your email here>"
url = "<Package recipe repository url here, for issues about the package>"
description = "<Description of jsonclib here>"
topics = ("<Put some tag here>", "<here>", "<and here>")
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" ]

Loading…
Cancel
Save