You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

conanfile.py 1.1 kB

123456789101112131415161718192021222324252627
  1. from conans import ConanFile, AutoToolsBuildEnvironment
  2. class JsonclibConan(ConanFile):
  3. name = "json-c"
  4. license = "<Put the package license here>"
  5. author = "<Put your name here> <And your email here>"
  6. url = "<Package recipe repository url here, for issues about the package>"
  7. description = "This recipe file used to build and package binaries of json-c repository"
  8. topics = ("<Put some tag here>", "<here>", "<and here>")
  9. settings = "os", "compiler", "build_type", "arch"
  10. options = { "shared": [True, False] }
  11. default_options = "shared=False"
  12. generators = "make"
  13. def build(self):
  14. autotools = AutoToolsBuildEnvironment(self)
  15. self.run("cd .. && autoreconf -fsi ")
  16. autotools.configure(configure_dir="..",args=["--prefix=${PWD}"])
  17. autotools.make()
  18. autotools.install()
  19. def package(self):
  20. self.copy("*.h", dst="include", src="include")
  21. self.copy("*", dst="lib", src="lib", keep_path=False)
  22. def package_info(self):
  23. self.cpp_info.libs = [ "json-c" ]