Working conan build.

pull/330/head
Lance Wallis 2 weeks ago
parent 02a2f38550
commit a62033f7ac
No known key found for this signature in database
GPG Key ID: AE7847735CE374E4
  1. 9
      CMakeUserPresets.json
  2. 16
      conanfile.py

@ -0,0 +1,9 @@
{
"version": 4,
"vendor": {
"conan": {}
},
"include": [
"build/Release/generators/CMakePresets.json"
]
}

@ -4,9 +4,25 @@ from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps
class mxmlRecipe(ConanFile):
name = "mxml"
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"
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):
cmake_layout(self)

Loading…
Cancel
Save