-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309 from dpaulat/feature/conan-2
Conan 2
- Loading branch information
Showing
36 changed files
with
246 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,55 @@ | ||
from conans import ConanFile | ||
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.0", | ||
"fontconfig/2.15.0", | ||
"freetype/2.13.3", | ||
"freetype/2.13.2", | ||
"geographiclib/2.4", | ||
"geos/3.13.0", | ||
"glew/2.2.0", | ||
"glm/cci.20230113", | ||
"gtest/1.15.0", | ||
"libcurl/8.10.1", | ||
"libpng/1.6.44", | ||
"libxml2/2.12.7", | ||
"openssl/3.3.2", | ||
"re2/20240702", | ||
"spdlog/1.14.1", | ||
"sqlite3/3.46.1", | ||
"vulkan-loader/1.3.243.0", | ||
"zlib/1.3.1") | ||
generators = ("cmake", | ||
"cmake_find_package", | ||
"cmake_paths") | ||
default_options = {"geos:shared" : True, | ||
"libiconv:shared" : True, | ||
"openssl:no_module": True, | ||
"openssl:shared" : True} | ||
generators = ("CMakeDeps") | ||
default_options = {"geos/*:shared" : True, | ||
"libiconv/*:shared" : True, | ||
"openssl/*:no_module": True, | ||
"openssl/*:shared" : True} | ||
|
||
def requirements(self): | ||
if self.settings.os == "Linux": | ||
self.requires("onetbb/2021.12.0") | ||
|
||
def imports(self): | ||
self.copy("*.dll", dst="bin", src="bin") | ||
self.copy("*.dylib", dst="bin", src="lib") | ||
self.copy("license*", dst="licenses", src=".", folder=True, ignore_case=True) | ||
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule aws-sdk-cpp
updated
from d5eb42 to c95e71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule cmake-conan
updated
48 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
cmake_minimum_required(VERSION 3.24) | ||
set(PROJECT_NAME scwx-stb) | ||
|
||
set(STB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/stb PARENT_SCOPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
cmake_minimum_required(VERSION 3.24) | ||
set(PROJECT_NAME scwx-textflowcpp) | ||
|
||
set(TEXTFLOWCPP_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/textflowcpp PARENT_SCOPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
cmake_minimum_required(VERSION 3.24) | ||
set(PROJECT_NAME scwx-units) | ||
|
||
add_subdirectory(units) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.21) | ||
cmake_minimum_required(VERSION 3.24) | ||
|
||
set_property(DIRECTORY | ||
APPEND | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.21) | ||
cmake_minimum_required(VERSION 3.24) | ||
|
||
project(scwx-qt LANGUAGES CXX) | ||
|
||
|
Oops, something went wrong.