conanfile.py 882 B

123456789101112131415161718192021222324252627
  1. from conan import ConanFile
  2. class App(ConanFile):
  3. settings = "os", "compiler", "build_type", "arch"
  4. default_options = {"libiconv:shared": "True"}
  5. def requirements(self):
  6. self.requires("libiconv/1.15")
  7. def build_requirements(self):
  8. self.tool_requires("bison/3.8.2")
  9. self.tool_requires("m4/1.4.19")
  10. self.tool_requires("ragel/6.10")
  11. self.tool_requires("yasm/1.3.0")
  12. generators = "cmake_find_package", "cmake_paths"
  13. def imports(self):
  14. self.copy(pattern="*yasm*", src="bin", dst="./bin")
  15. self.copy(pattern="bison*", src="bin", dst="./bin/bison/bin")
  16. self.copy(pattern="m4*", src="bin", dst="./bin/m4/bin")
  17. self.copy(pattern="ragel*", src="bin", dst="./bin")
  18. self.copy(pattern="ytasm*", src="bin", dst="./bin")
  19. self.copy(pattern="*", src="res", dst="./bin/bison/res")