Commit 75097c1b authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Add conan tooling

parent f0b39239
......@@ -3,6 +3,11 @@ cmake_minimum_required(VERSION 3.5)
set(KF5_VERSION "5.61.0") # handled by release scripts
project(KCodecs VERSION ${KF5_VERSION})
if (EXISTS ${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)
endif()
include(FeatureSummary)
find_package(ECM 5.60.0 NO_MODULE)
set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules")
......
from conans import ConanFile, CMake, tools
class KcodecsConan(ConanFile):
name = "kcodecs"
version = "5.61.0"
license = "GPLv2"
url = "https://api.kde.org/frameworks/kcodecs/html/index.html"
description = "KCodecs provide a collection of methods to manipulate strings using various encodings"
settings = "os", "compiler", "build_type", "arch"
#options = {"no_karchive": [True, False]}
#default_options = { "no_karchive" : False }
requires = (
"extra-cmake-modules/[>=5.60.0]@kde/testing", # CMakeLists.txt requires 5.49.0
"qt/[>=5.11.0]@bincrafters/stable",
"gperf_installer/3.1@conan/stable"
)
generators = "cmake"
scm = {
"type": "git",
"url": "auto",
"revision": "auto"
}
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
cmake.install()
def package_info(self):
self.cpp_info.resdirs = ["share"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment