Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

35 lines
1.1KB

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