This repository has been archived by the owner on Jun 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake and template generator refactor for conan package (#35)
- Updated CMake file to install generated export header file - Updated installation procedure in root CMake file - Updated path to template generation command in root CMake - Updated regular expressions in `TemplateLoader` to include wider range of characters * Changed `Enjin-CPP-SDK` references to `enjin-cpp-sdk` in `README.md` - Updated `.gitignore` to ignore `conanfile.py` at project root - Moved `conanfile.py` to `.conan` folder - Updated windows workflow to run on 2019 instead of latest
- Loading branch information
1 parent
004f445
commit c908a0e
Showing
12 changed files
with
76 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from conans import ConanFile, CMake, tools | ||
|
||
|
||
class EnjinCPPSDK(ConanFile): | ||
settings = "os", "compiler", "arch", "build_type" | ||
generators = "cmake" | ||
options = { | ||
"with_default_http_client": [True, False], | ||
"with_default_ws_client": [True, False], | ||
} | ||
default_options = { | ||
"with_default_http_client": False, | ||
"with_default_ws_client": False, | ||
} | ||
|
||
def build(self): | ||
cmake = CMake(self) | ||
cmake.configure() | ||
cmake.build() | ||
if tools.get_env("CONAN_RUN_TESTS", True): | ||
cmake.test() | ||
|
||
def requirements(self): | ||
if self.options.with_default_http_client: | ||
self.requires("cpp-httplib/0.8.5") | ||
self.options["cpp-httplib"].with_openssl = True | ||
|
||
if self.options.with_default_ws_client: | ||
self.requires("ixwebsocket/11.0.4") | ||
|
||
self.requires("gtest/1.10.0") | ||
self.requires("rapidjson/1.1.0") | ||
self.requires("spdlog/1.8.2") | ||
self.options["spdlog"].header_only = True |
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
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,5 +1,5 @@ | ||
@PACKAGE_INIT@ | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/enjinsdk.cmake") | ||
include("${CMAKE_CURRENT_LIST_DIR}/enjinsdkTargets.cmake") | ||
|
||
check_required_components(enjinsdk) |
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 was deleted.
Oops, something went wrong.
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