Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. from conans import ConanFile, CMake, tools
  2.  
  3.  
  4. class CatchConan(ConanFile):
  5. name = "easy_profiler"
  6. version = "2.1.0"
  7. settings = "os", "compiler", "build_type", "arch"
  8. options = {"shared": [True, False]}
  9. default_options = "shared=False"
  10. generators = "cmake"
  11. short_paths = True
  12.  
  13. def requirements(self):
  14. try:
  15. user = self.user
  16. channel = self.channel
  17. except:
  18. user = "master"
  19. channel = "turboit"
  20.  
  21. #self.requires("qt/5.13.1@%s/%s" % (user, channel))
  22.  
  23.  
  24. def source(self):
  25. self.run("git clone https://github.com/yse/easy_profiler.git")
  26. self.run("cd easy_profiler && git checkout develop")
  27.  
  28. def build(self):
  29. cmake = CMake(self)
  30. #cmake.definitions ["CMAKE_PREFIX_PATH"] = self.deps_cpp_info["qt"].rootpath
  31. #cmake.configure(source_folder="easy_profiler")
  32. cmake.build()
  33. cmake.install()
  34.  
  35. def package_info(self):
  36. self.libs = ['easy_profiler']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement