2021-02-12 12:26:27 +01:00
|
|
|
from conans import ConanFile, CMake, tools
|
|
|
|
|
|
|
|
|
2021-02-12 14:15:23 +01:00
|
|
|
class QtKeychainConan(ConanFile):
|
2021-02-12 12:26:27 +01:00
|
|
|
name = "QtKeychain"
|
|
|
|
version = "0.12.90"
|
|
|
|
license = "MIT"
|
|
|
|
author = "Edgar Edgar@AnotherFoxGuy.com"
|
|
|
|
url = "https://github.com/Chatterino/chatterino2"
|
|
|
|
description = "QtKeychain is a Qt API to store passwords and other secret data securely"
|
|
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
|
|
generators = "cmake"
|
|
|
|
|
|
|
|
def source(self):
|
|
|
|
git = tools.Git()
|
|
|
|
git.clone("https://github.com/Chatterino/qtkeychain.git")
|
|
|
|
git.checkout("308ea7e709113dc277be1653fe2044bb20236836")
|
|
|
|
|
|
|
|
def build(self):
|
|
|
|
cmake = CMake(self)
|
2021-02-13 17:22:46 +01:00
|
|
|
cmake.definitions['BUILD_TRANSLATIONS'] = 'OFF'
|
|
|
|
cmake.definitions['BUILD_TEST_APPLICATION'] = 'OFF'
|
|
|
|
cmake.definitions['QTKEYCHAIN_STATIC'] = 'ON'
|
2021-02-12 12:26:27 +01:00
|
|
|
cmake.configure()
|
|
|
|
cmake.build()
|
|
|
|
|
|
|
|
def package(self):
|
|
|
|
cmake = CMake(self)
|
|
|
|
cmake.install()
|
|
|
|
|
|
|
|
def package_info(self):
|
|
|
|
self.cpp_info.libs = tools.collect_libs(self)
|