conanfile.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Range v3 library
  2. #
  3. # Copyright Luis Martinez de Bartolome Izquierdo 2016
  4. #
  5. # Use, modification and distribution is subject to the
  6. # Boost Software License, Version 1.0. (See accompanying
  7. # file LICENSE_1_0.txt or copy at
  8. # http://www.boost.org/LICENSE_1_0.txt)
  9. #
  10. # Project home: https://github.com/ericniebler/range-v3
  11. #
  12. from conans import ConanFile, CMake
  13. class Rangev3Conan(ConanFile):
  14. name = "range-v3"
  15. version = "0.12.0"
  16. license = "Boost Software License - Version 1.0 - August 17th, 2003"
  17. url = "https://github.com/ericniebler/range-v3"
  18. description = """Experimental range library for C++14/17/20"""
  19. # No settings/options are necessary, this is header only
  20. exports_sources = "include*", "LICENSE.txt", "CMakeLists.txt", "cmake/*", "Version.cmake", "version.hpp.in"
  21. no_copy_source = True
  22. def package(self):
  23. cmake = CMake(self)
  24. cmake.definitions["RANGE_V3_TESTS"] = "OFF"
  25. cmake.definitions["RANGE_V3_EXAMPLES"] = "OFF"
  26. cmake.definitions["RANGE_V3_PERF"] = "OFF"
  27. cmake.definitions["RANGE_V3_DOCS"] = "OFF"
  28. cmake.definitions["RANGE_V3_HEADER_CHECKS"] = "OFF"
  29. cmake.configure()
  30. cmake.install()
  31. self.copy("LICENSE.txt", dst="licenses", ignore_case=True, keep_path=False)