mirror of
https://github.com/michaelrsweet/mxml.git
synced 2025-05-10 06:52:08 +00:00
Working conan build.
This commit is contained in:
parent
02a2f38550
commit
a62033f7ac
9
CMakeUserPresets.json
Normal file
9
CMakeUserPresets.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"version": 4,
|
||||||
|
"vendor": {
|
||||||
|
"conan": {}
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"build/Release/generators/CMakePresets.json"
|
||||||
|
]
|
||||||
|
}
|
16
conanfile.py
16
conanfile.py
@ -4,9 +4,25 @@ from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps
|
|||||||
class mxmlRecipe(ConanFile):
|
class mxmlRecipe(ConanFile):
|
||||||
name = "mxml"
|
name = "mxml"
|
||||||
version = "4.0.4"
|
version = "4.0.4"
|
||||||
|
description = "Mini-XML - Tiny XML Parsing Library v4"
|
||||||
|
homepage = "https://github.com/michaelrsweet/mxml.git"
|
||||||
|
url = "https://github.com/michaelrsweet/mxml.git"
|
||||||
|
topics = ("xml")
|
||||||
|
package_type = "library"
|
||||||
|
|
||||||
settings = "os", "compiler", "build_type", "arch"
|
settings = "os", "compiler", "build_type", "arch"
|
||||||
|
|
||||||
|
options = { "shared": [True, False] }
|
||||||
|
default_options = { "shared": False }
|
||||||
|
|
||||||
|
@property
|
||||||
|
def _msbuild_configuration(self):
|
||||||
|
return "Debug" if self.settings.build_type == "Debug" else "Release"
|
||||||
|
|
||||||
|
def generate(self):
|
||||||
|
tc = CMakeToolchain(self)
|
||||||
|
tc.generate()
|
||||||
|
|
||||||
def layout(self):
|
def layout(self):
|
||||||
cmake_layout(self)
|
cmake_layout(self)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user