from conans import ConanFile, CMake


class TargetConan(ConanFile):
    name = "tests"
    version = "1.0.0"
    settings = "os", "compiler", "build_type", "arch"
    options = {
        "shared": [True, False],
        "fPIC": [True, False],
        "ezored_name": "ANY",
        "ezored_version": "ANY",
        "ezored_arch": "ANY",
    }
    default_options = {
        "shared": False,
        "fPIC": True,
        "ezored_name": "ezored",
        "ezored_version": "ANY",
        "ezored_arch": "ANY",
        "sqlite3:threadsafe": 1,
        "sqlite3:build_executable": False,
        "poco:enable_apacheconnector": False,
        "poco:enable_activerecord": False,
        "poco:enable_cppparser": False,
        "poco:enable_crypto": True,
        "poco:enable_data": False,
        "poco:enable_data_mysql": False,
        "poco:enable_data_postgresql": False,
        "poco:enable_data_sqlite": False,
        "poco:enable_data_odbc": False,
        "poco:enable_encodings": False,
        "poco:enable_json": True,
        "poco:enable_jwt": True,
        "poco:enable_mongodb": False,
        "poco:enable_net": True,
        "poco:enable_pdf": False,
        "poco:enable_pagecompiler": False,
        "poco:enable_pagecompiler_file2page": False,
        "poco:enable_pocodoc": False,
        "poco:enable_redis": False,
        "poco:enable_sevenzip": False,
        "poco:enable_util": True,
        "poco:enable_xml": True,
        "poco:enable_zip": False,
        "poco:enable_active_record": False,
        "date:header_only": True,
    }
    exports_sources = "*"
    generators = "cmake"

    def build(self):
        cmake = CMake(self)
        cmake.definitions["CMAKE_BUILD_TYPE"] = self.settings.build_type
        cmake.definitions["PROJECT_CONFIG_NAME"] = self.options.get_safe("ezored_name")
        cmake.definitions["PROJECT_CONFIG_VERSION"] = self.options.get_safe(
            "ezored_version"
        )
        cmake.definitions["PROJECT_CONFIG_ARCH"] = self.options.get_safe("ezored_arch")
        cmake.definitions["CMAKE_OSX_DEPLOYMENT_TARGET"] = self.settings.get_safe(
            "os.version"
        )
        cmake.configure()
        cmake.build()

    def configure(self):
        if self.settings.os == "Windows":
            self.options["poco"].enable_netssl = False
            self.options["poco"].enable_netssl_win = True
        else:
            self.options["poco"].enable_netssl = True

    def requirements(self):
        self.requires("sqlite3/3.38.5")
        self.requires("rapidjson/1.1.0")
        self.requires("poco/1.11.3")
        self.requires("openssl/1.1.1o")
        self.requires("sqlitecpp/3.1.1")
        self.requires("date/3.0.1")
        self.requires("nlohmann_json/3.9.1")
        self.requires("gtest/1.11.0")

bfab121e0b6545312e7ef3dc874e8d50f9a2fe81
<mask token>


class TargetConan(ConanFile):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def configure(self):
        if self.settings.os == 'Windows':
            self.options['poco'].enable_netssl = False
            self.options['poco'].enable_netssl_win = True
        else:
            self.options['poco'].enable_netssl = True

    def requirements(self):
        self.requires('sqlite3/3.38.5')
        self.requires('rapidjson/1.1.0')
        self.requires('poco/1.11.3')
        self.requires('openssl/1.1.1o')
        self.requires('sqlitecpp/3.1.1')
        self.requires('date/3.0.1')
        self.requires('nlohmann_json/3.9.1')
        self.requires('gtest/1.11.0')

<mask token>


class TargetConan(ConanFile):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def build(self):
        cmake = CMake(self)
        cmake.definitions['CMAKE_BUILD_TYPE'] = self.settings.build_type
        cmake.definitions['PROJECT_CONFIG_NAME'] = self.options.get_safe(
            'ezored_name')
        cmake.definitions['PROJECT_CONFIG_VERSION'] = self.options.get_safe(
            'ezored_version')
        cmake.definitions['PROJECT_CONFIG_ARCH'] = self.options.get_safe(
            'ezored_arch')
        cmake.definitions['CMAKE_OSX_DEPLOYMENT_TARGET'
            ] = self.settings.get_safe('os.version')
        cmake.configure()
        cmake.build()

    def configure(self):
        if self.settings.os == 'Windows':
            self.options['poco'].enable_netssl = False
            self.options['poco'].enable_netssl_win = True
        else:
            self.options['poco'].enable_netssl = True

    def requirements(self):
        self.requires('sqlite3/3.38.5')
        self.requires('rapidjson/1.1.0')
        self.requires('poco/1.11.3')
        self.requires('openssl/1.1.1o')
        self.requires('sqlitecpp/3.1.1')
        self.requires('date/3.0.1')
        self.requires('nlohmann_json/3.9.1')
        self.requires('gtest/1.11.0')

<mask token>


class TargetConan(ConanFile):
    name = 'tests'
    version = '1.0.0'
    settings = 'os', 'compiler', 'build_type', 'arch'
    options = {'shared': [True, False], 'fPIC': [True, False],
        'ezored_name': 'ANY', 'ezored_version': 'ANY', 'ezored_arch': 'ANY'}
    default_options = {'shared': False, 'fPIC': True, 'ezored_name':
        'ezored', 'ezored_version': 'ANY', 'ezored_arch': 'ANY',
        'sqlite3:threadsafe': 1, 'sqlite3:build_executable': False,
        'poco:enable_apacheconnector': False, 'poco:enable_activerecord': 
        False, 'poco:enable_cppparser': False, 'poco:enable_crypto': True,
        'poco:enable_data': False, 'poco:enable_data_mysql': False,
        'poco:enable_data_postgresql': False, 'poco:enable_data_sqlite': 
        False, 'poco:enable_data_odbc': False, 'poco:enable_encodings': 
        False, 'poco:enable_json': True, 'poco:enable_jwt': True,
        'poco:enable_mongodb': False, 'poco:enable_net': True,
        'poco:enable_pdf': False, 'poco:enable_pagecompiler': False,
        'poco:enable_pagecompiler_file2page': False, 'poco:enable_pocodoc':
        False, 'poco:enable_redis': False, 'poco:enable_sevenzip': False,
        'poco:enable_util': True, 'poco:enable_xml': True,
        'poco:enable_zip': False, 'poco:enable_active_record': False,
        'date:header_only': True}
    exports_sources = '*'
    generators = 'cmake'

    def build(self):
        cmake = CMake(self)
        cmake.definitions['CMAKE_BUILD_TYPE'] = self.settings.build_type
        cmake.definitions['PROJECT_CONFIG_NAME'] = self.options.get_safe(
            'ezored_name')
        cmake.definitions['PROJECT_CONFIG_VERSION'] = self.options.get_safe(
            'ezored_version')
        cmake.definitions['PROJECT_CONFIG_ARCH'] = self.options.get_safe(
            'ezored_arch')
        cmake.definitions['CMAKE_OSX_DEPLOYMENT_TARGET'
            ] = self.settings.get_safe('os.version')
        cmake.configure()
        cmake.build()

    def configure(self):
        if self.settings.os == 'Windows':
            self.options['poco'].enable_netssl = False
            self.options['poco'].enable_netssl_win = True
        else:
            self.options['poco'].enable_netssl = True

    def requirements(self):
        self.requires('sqlite3/3.38.5')
        self.requires('rapidjson/1.1.0')
        self.requires('poco/1.11.3')
        self.requires('openssl/1.1.1o')
        self.requires('sqlitecpp/3.1.1')
        self.requires('date/3.0.1')
        self.requires('nlohmann_json/3.9.1')
        self.requires('gtest/1.11.0')

from conans import ConanFile, CMake


class TargetConan(ConanFile):
    name = 'tests'
    version = '1.0.0'
    settings = 'os', 'compiler', 'build_type', 'arch'
    options = {'shared': [True, False], 'fPIC': [True, False],
        'ezored_name': 'ANY', 'ezored_version': 'ANY', 'ezored_arch': 'ANY'}
    default_options = {'shared': False, 'fPIC': True, 'ezored_name':
        'ezored', 'ezored_version': 'ANY', 'ezored_arch': 'ANY',
        'sqlite3:threadsafe': 1, 'sqlite3:build_executable': False,
        'poco:enable_apacheconnector': False, 'poco:enable_activerecord': 
        False, 'poco:enable_cppparser': False, 'poco:enable_crypto': True,
        'poco:enable_data': False, 'poco:enable_data_mysql': False,
        'poco:enable_data_postgresql': False, 'poco:enable_data_sqlite': 
        False, 'poco:enable_data_odbc': False, 'poco:enable_encodings': 
        False, 'poco:enable_json': True, 'poco:enable_jwt': True,
        'poco:enable_mongodb': False, 'poco:enable_net': True,
        'poco:enable_pdf': False, 'poco:enable_pagecompiler': False,
        'poco:enable_pagecompiler_file2page': False, 'poco:enable_pocodoc':
        False, 'poco:enable_redis': False, 'poco:enable_sevenzip': False,
        'poco:enable_util': True, 'poco:enable_xml': True,
        'poco:enable_zip': False, 'poco:enable_active_record': False,
        'date:header_only': True}
    exports_sources = '*'
    generators = 'cmake'

    def build(self):
        cmake = CMake(self)
        cmake.definitions['CMAKE_BUILD_TYPE'] = self.settings.build_type
        cmake.definitions['PROJECT_CONFIG_NAME'] = self.options.get_safe(
            'ezored_name')
        cmake.definitions['PROJECT_CONFIG_VERSION'] = self.options.get_safe(
            'ezored_version')
        cmake.definitions['PROJECT_CONFIG_ARCH'] = self.options.get_safe(
            'ezored_arch')
        cmake.definitions['CMAKE_OSX_DEPLOYMENT_TARGET'
            ] = self.settings.get_safe('os.version')
        cmake.configure()
        cmake.build()

    def configure(self):
        if self.settings.os == 'Windows':
            self.options['poco'].enable_netssl = False
            self.options['poco'].enable_netssl_win = True
        else:
            self.options['poco'].enable_netssl = True

    def requirements(self):
        self.requires('sqlite3/3.38.5')
        self.requires('rapidjson/1.1.0')
        self.requires('poco/1.11.3')
        self.requires('openssl/1.1.1o')
        self.requires('sqlitecpp/3.1.1')
        self.requires('date/3.0.1')
        self.requires('nlohmann_json/3.9.1')
        self.requires('gtest/1.11.0')

from conans import ConanFile, CMake


class TargetConan(ConanFile):
    name = "tests"
    version = "1.0.0"
    settings = "os", "compiler", "build_type", "arch"
    options = {
        "shared": [True, False],
        "fPIC": [True, False],
        "ezored_name": "ANY",
        "ezored_version": "ANY",
        "ezored_arch": "ANY",
    }
    default_options = {
        "shared": False,
        "fPIC": True,
        "ezored_name": "ezored",
        "ezored_version": "ANY",
        "ezored_arch": "ANY",
        "sqlite3:threadsafe": 1,
        "sqlite3:build_executable": False,
        "poco:enable_apacheconnector": False,
        "poco:enable_activerecord": False,
        "poco:enable_cppparser": False,
        "poco:enable_crypto": True,
        "poco:enable_data": False,
        "poco:enable_data_mysql": False,
        "poco:enable_data_postgresql": False,
        "poco:enable_data_sqlite": False,
        "poco:enable_data_odbc": False,
        "poco:enable_encodings": False,
        "poco:enable_json": True,
        "poco:enable_jwt": True,
        "poco:enable_mongodb": False,
        "poco:enable_net": True,
        "poco:enable_pdf": False,
        "poco:enable_pagecompiler": False,
        "poco:enable_pagecompiler_file2page": False,
        "poco:enable_pocodoc": False,
        "poco:enable_redis": False,
        "poco:enable_sevenzip": False,
        "poco:enable_util": True,
        "poco:enable_xml": True,
        "poco:enable_zip": False,
        "poco:enable_active_record": False,
        "date:header_only": True,
    }
    exports_sources = "*"
    generators = "cmake"

    def build(self):
        cmake = CMake(self)
        cmake.definitions["CMAKE_BUILD_TYPE"] = self.settings.build_type
        cmake.definitions["PROJECT_CONFIG_NAME"] = self.options.get_safe("ezored_name")
        cmake.definitions["PROJECT_CONFIG_VERSION"] = self.options.get_safe(
            "ezored_version"
        )
        cmake.definitions["PROJECT_CONFIG_ARCH"] = self.options.get_safe("ezored_arch")
        cmake.definitions["CMAKE_OSX_DEPLOYMENT_TARGET"] = self.settings.get_safe(
            "os.version"
        )
        cmake.configure()
        cmake.build()

    def configure(self):
        if self.settings.os == "Windows":
            self.options["poco"].enable_netssl = False
            self.options["poco"].enable_netssl_win = True
        else:
            self.options["poco"].enable_netssl = True

    def requirements(self):
        self.requires("sqlite3/3.38.5")
        self.requires("rapidjson/1.1.0")
        self.requires("poco/1.11.3")
        self.requires("openssl/1.1.1o")
        self.requires("sqlitecpp/3.1.1")
        self.requires("date/3.0.1")
        self.requires("nlohmann_json/3.9.1")
        self.requires("gtest/1.11.0")
