First Commit
This commit is contained in:
21
3rdparty/kddockwidgets/conan/README.txt
vendored
Normal file
21
3rdparty/kddockwidgets/conan/README.txt
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
In the following example we assume you have the kddockwidgets source available in
|
||||
/path/to/kddockwidgets-source. replace '/path/to/kddockwidgets-source' to fit your needs.
|
||||
|
||||
$ conan create -s build_type=Release -o kddockwidgets:build_examples=True -o kddockwidgets:build_tests=True /path/to/kddockwidgets-source/conan kdab/stable
|
||||
|
||||
Configuration options:
|
||||
* build_static
|
||||
Builds static versions of the libraries. Default=False
|
||||
|
||||
* build_tests
|
||||
Build the test harness. Default=False
|
||||
|
||||
* build_examples
|
||||
Build the examples. Default=True
|
||||
|
||||
* build_python_bindings
|
||||
Build/Generate python bindings (always false for Debug or static builds). Default=False
|
||||
|
||||
* build_for_qt6
|
||||
Build against Qt6 rather than Qt5. Default=false (Qt5 will be used even if Qt6 is available)
|
||||
(Make sure the Qt6 bin directory is found in your execute PATH)
|
||||
70
3rdparty/kddockwidgets/conan/conanfile.py
vendored
Normal file
70
3rdparty/kddockwidgets/conan/conanfile.py
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
# This file is part of KDDockWidgets.
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
#
|
||||
# Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
#
|
||||
|
||||
from conans import ConanFile, CMake, tools
|
||||
|
||||
|
||||
class KDDockWidgetsConan(ConanFile):
|
||||
name = "kddockwidgets"
|
||||
version = "2.1.0"
|
||||
default_user = "kdab"
|
||||
default_channel = "stable"
|
||||
license = ("https://raw.githubusercontent.com/KDAB/KDDockWidgets/master/LICENSES/GPL-2.0-only.txt",
|
||||
"https://raw.githubusercontent.com/KDAB/KDDockWidgets/master/LICENSES/GPL-3.0-only.txt")
|
||||
author = "Klaralvdalens Datakonsult AB (KDAB) info@kdab.com"
|
||||
url = "https://github.com/KDAB/KDDockWidgets"
|
||||
description = "Advanced Dock Widget Framework for Qt"
|
||||
generators = "cmake"
|
||||
topics = ("qt", "dockwidget", "kdab")
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
options = {
|
||||
"qt_version": "ANY",
|
||||
"build_static": [True, False],
|
||||
"build_examples": [True, False],
|
||||
"build_tests": [True, False],
|
||||
"build_python_bindings": [True, False],
|
||||
"build_for_qt6": [True, False],
|
||||
}
|
||||
|
||||
default_options = {
|
||||
"qt_version": "qt/[>5.12.0]@kdab/stable",
|
||||
"build_static": False,
|
||||
"build_examples": True,
|
||||
"build_tests": False,
|
||||
"build_python_bindings": False,
|
||||
"build_for_qt6": False,
|
||||
}
|
||||
|
||||
def requirements(self):
|
||||
# Check https://docs.conan.io/en/latest/reference/conanfile/attributes.html#version-ranges for more info about versioning
|
||||
self.requires(str(self.options.qt_version))
|
||||
|
||||
def source(self):
|
||||
git = tools.Git(folder="")
|
||||
git.clone(self.url)
|
||||
|
||||
def build(self, build_type="Release"):
|
||||
self.cmake = CMake(self, generator='Ninja', build_type=build_type)
|
||||
self.cmake.definitions["KDDockWidgets_STATIC"] = self.options.build_static
|
||||
self.cmake.definitions["KDDockWidgets_EXAMPLES"] = self.options.build_examples
|
||||
self.cmake.definitions["KDDockWidgets_TESTS"] = self.options.build_tests
|
||||
self.cmake.definitions["KDDockWidgets_PYTHON_BINDINGS"] = self.options.build_python_bindings
|
||||
self.cmake.definitions["KDDockWidgets_QT6"] = self.options.build_for_qt6
|
||||
self.cmake.configure()
|
||||
self.cmake.build()
|
||||
|
||||
def package(self):
|
||||
self.cmake.install()
|
||||
|
||||
def package_info(self):
|
||||
self.env_info.CMAKE_PREFIX_PATH.append(self.package_folder)
|
||||
|
||||
def package_id(self):
|
||||
# Check only the major and minor version!
|
||||
self.info.requires["qt"].minor_mode()
|
||||
Reference in New Issue
Block a user