valentina/conanfile.py

16 lines
420 B
Python
Raw Normal View History

import os
2023-02-24 13:36:40 +01:00
from conan import ConanFile
2023-02-20 15:40:38 +01:00
class Recipe(ConanFile):
settings = "os"
2023-02-24 13:36:40 +01:00
requires = "xerces-c/[~3.2]"
default_options = {"xerces-c/*:shared": True}
2023-02-20 15:40:38 +01:00
def configure(self):
if self.settings.os == "Linux":
self.options["xerces-c"].shared = False
if self.settings.os == "Macos" and "MACOS_DEPLOYMENT_TARGET" in os.environ:
self.settings.os.version = os.environ["MACOS_DEPLOYMENT_TARGET"]