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

38 satır
1.1KB

  1. import os
  2. from conans import ConanFile, CMake, tools
  3. class ScopeguardConan(ConanFile):
  4. name = "scope-guard"
  5. version = "0.3.5"
  6. license = "MIT"
  7. author = "offa <offa@github>"
  8. url = "https://github.com.offa/scope-guard"
  9. description = "Implementation of Scoped Guards and Unique Resource as proposed in P0052."
  10. homepage = "https://github.com/mrtazz/restclient-cpp"
  11. topics = ("cpp", "cpp17", "p0052", "scope-guard",
  12. "scope-exit", "scope-fail", "scope-success", "unique-resource", "cmake")
  13. no_copy_source = True
  14. _source_dir = "{}-{}".format(name, version)
  15. scm = {
  16. "type": "git",
  17. "subfolder": _source_dir,
  18. "url": "{}.git".format(homepage),
  19. "revision": version
  20. }
  21. requires = (
  22. "Catch2/2.9.2@catchorg/stable",
  23. "trompeloeil/v34@rollbear/stable"
  24. )
  25. def _configure_cmake(self):
  26. cmake = CMake(self)
  27. cmake.configure(source_folder=self._source_dir, build_folder="build")
  28. return cmake
  29. def package(self):
  30. cmake = self._configure_cmake()
  31. cmake.install()