mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 13:44:58 +00:00
Add CMake presets and update conanfile for SDL3Cpp integration
This commit is contained in:
48
CMakePresets.json
Normal file
48
CMakePresets.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"version": 3,
|
||||
"vendor": {
|
||||
"conan": {}
|
||||
},
|
||||
"cmakeMinimumRequired": {
|
||||
"major": 3,
|
||||
"minor": 15,
|
||||
"patch": 0
|
||||
},
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "conan-release",
|
||||
"displayName": "'conan-release' config",
|
||||
"description": "'conan-release' configure using 'Unix Makefiles' generator",
|
||||
"generator": "Unix Makefiles",
|
||||
"cacheVariables": {
|
||||
"CMAKE_POLICY_DEFAULT_CMP0091": "NEW",
|
||||
"CMAKE_BUILD_TYPE": "Release"
|
||||
},
|
||||
"toolchainFile": "conan_toolchain.cmake",
|
||||
"binaryDir": "/home/rewrich/Documents/GitHub/SDL3CPlusPlus"
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
{
|
||||
"name": "conan-release",
|
||||
"configurePreset": "conan-release",
|
||||
"jobs": 12
|
||||
}
|
||||
],
|
||||
"testPresets": [
|
||||
{
|
||||
"name": "conan-release",
|
||||
"configurePreset": "conan-release",
|
||||
"execution": {
|
||||
"jobs": 12
|
||||
},
|
||||
"environment": {
|
||||
"PATH": "/home/rewrich/.conan2/p/b/pulse956d7717a389f/p/bin:$penv{PATH}",
|
||||
"LD_LIBRARY_PATH": "/home/rewrich/.conan2/p/b/pulse956d7717a389f/p/lib:/home/rewrich/.conan2/p/b/pulse956d7717a389f/p/lib/pulseaudio:/home/rewrich/.conan2/p/b/libsn4a568b96ef5e6/p/lib:/home/rewrich/.conan2/p/b/vulka459e548170e65/p/lib:/home/rewrich/.conan2/p/b/vulkaabeb917e25e94/p/lib:$penv{LD_LIBRARY_PATH}",
|
||||
"DYLD_LIBRARY_PATH": "/home/rewrich/.conan2/p/b/pulse956d7717a389f/p/lib:/home/rewrich/.conan2/p/b/pulse956d7717a389f/p/lib/pulseaudio:/home/rewrich/.conan2/p/b/libsn4a568b96ef5e6/p/lib:/home/rewrich/.conan2/p/b/vulka459e548170e65/p/lib:$penv{DYLD_LIBRARY_PATH}",
|
||||
"ALSA_CONFIG_DIR": "/home/rewrich/.conan2/p/b/libalc76bf0db68b4c/p/res/alsa",
|
||||
"VK_LAYER_PATH": "/home/rewrich/.conan2/p/b/vulkaabeb917e25e94/p/res/vulkan/explicit_layer.d:$penv{VK_LAYER_PATH}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -4,8 +4,6 @@
|
||||
"conan": {}
|
||||
},
|
||||
"include": [
|
||||
"build/CMakePresets.json",
|
||||
"build-ninja/CMakePresets.json",
|
||||
"build-ninja-msvc/CMakePresets.json"
|
||||
"build/Release/generators/CMakePresets.json"
|
||||
]
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
from conan import ConanFile
|
||||
from conan.tools.cmake import cmake_layout
|
||||
|
||||
class SDL3CppConan(ConanFile):
|
||||
name = "sdl3cpp"
|
||||
@@ -14,6 +15,9 @@ class SDL3CppConan(ConanFile):
|
||||
}
|
||||
generators = "CMakeDeps", "CMakeToolchain", "VirtualRunEnv"
|
||||
|
||||
def layout(self):
|
||||
cmake_layout(self)
|
||||
|
||||
def requirements(self):
|
||||
self.requires("lua/5.4.8")
|
||||
self.requires("sdl/3.2.20")
|
||||
|
||||
Reference in New Issue
Block a user