mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:00:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			59 lines
		
	
	
	
		
			2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
	
		
			2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| from conan import ConanFile
 | |
| from conan.tools.cmake import CMake
 | |
| from conan.tools.files import copy
 | |
| import os
 | |
| 
 | |
| class SupercellWxConan(ConanFile):
 | |
|     settings   = ("os", "compiler", "build_type", "arch")
 | |
|     requires   = ("boost/1.86.0",
 | |
|                   "cpr/1.11.1",
 | |
|                   "fontconfig/2.15.0",
 | |
|                   "freetype/2.13.2",
 | |
|                   "geographiclib/2.4",
 | |
|                   "geos/3.13.0",
 | |
|                   "glew/2.2.0",
 | |
|                   "glm/cci.20230113",
 | |
|                   "gtest/1.15.0",
 | |
|                   "libcurl/8.11.1",
 | |
|                   "libpng/1.6.45",
 | |
|                   "libxml2/2.12.7",
 | |
|                   "openssl/3.3.2",
 | |
|                   "re2/20240702",
 | |
|                   "spdlog/1.15.0",
 | |
|                   "sqlite3/3.47.1",
 | |
|                   "vulkan-loader/1.3.243.0",
 | |
|                   "zlib/1.3.1")
 | |
|     generators = ("CMakeDeps")
 | |
|     default_options = {"geos/*:shared"      : True,
 | |
|                        "libiconv/*:shared"  : True}
 | |
| 
 | |
|     def configure(self):
 | |
|         if self.settings.os == "Windows":
 | |
|             self.options["libcurl"].with_ssl = "schannel"
 | |
|         elif self.settings.os == "Linux":
 | |
|             self.options["openssl"].shared = True
 | |
| 
 | |
|     def requirements(self):
 | |
|         if self.settings.os == "Linux":
 | |
|             self.requires("onetbb/2021.12.0")
 | |
| 
 | |
|     def generate(self):
 | |
|         build_folder = os.path.join(self.build_folder,
 | |
|                                     "..",
 | |
|                                     str(self.settings.build_type),
 | |
|                                     self.cpp_info.bindirs[0])
 | |
| 
 | |
|         for dep in self.dependencies.values():
 | |
|             if dep.cpp_info.bindirs:
 | |
|                 copy(self, "*.dll", dep.cpp_info.bindirs[0], build_folder)
 | |
|             if dep.cpp_info.libdirs:
 | |
|                 copy(self, "*.dylib", dep.cpp_info.libdirs[0], build_folder)
 | |
| 
 | |
|     def build(self):
 | |
|         cmake = CMake(self)
 | |
|         cmake.configure()
 | |
|         cmake.build()
 | |
| 
 | |
|     def package(self):
 | |
|         cmake = CMake(self)
 | |
|         cmake.install()
 | 
