aboutsummaryrefslogtreecommitdiff
path: root/find-modules
AgeCommit message (Collapse)Author
2016-11-07Print path to Qtcoremod.sip file if there is a problemStephen Kelly
2016-10-31Add the PythonModuleGeneration moduleStephen Kelly
This can be used by KF5 libraries to generate python 2 and 3 bindings.
2016-10-31Add a sip wrapperStephen Kelly
When sip is executed it is passed one .sip file. However, it uses that to generate multiple cpp source files, one per class in the sip file. Buildsystems need to know the outputs of commands, so this does not work well as the output can't easily be predicted. So, create a unity build of all files to compile into the python module.
2016-10-31Add Qt5 Ruleset.Stephen Kelly
The ruleset is used to transform or omit artifacts in C++ header files when determining the SIP content to generate. Some content common to all Qt-using libraries can be processed by using the rule set present here. For example, most Q_METATYPE internal declarations should be discarded.
2016-10-31Add the rules_engine and sip_generatorShaheed Haque
These files process C++ headers with libclang and python-clang bindings, using the AST to generate SIP files for PyQt binding library generation. The design allows for further extensions which can process other artifacts found in headers. This iteration of the design is a simple minimum which suffices to generate headers for KItemModels and some other libraries.
2016-02-11Fix the 'Since' tag.Christophe Giboudeaux
FindPoppler wasn't available in ecm < 5.19 CCMAIL:faure@kde.org
2016-01-13Add a FindPoppler moduleAlex Richardson
At least Okular and KBibTex include a FindPoppler.cmake module but this one uses the new ECMFindModuleHelpers and has imported targets. REVIEW: 126183
2015-12-18CMake: Cleanup: Strip text from endif/elseKevin Funk
REVIEW: 126414
2015-11-17Do not find XCB's XINPUT library by default.Alex Merry
The XINPUT library is unlikely to be available on many systems, including a lot of Linux distributions. This will warn developers in advance by (a) not searching for XINPUT unless it was explicitly requested, and (b) printing a warning if they do request it. REVIEW: 125935
2015-04-26Port remaining find modules to ecm_find_package_version_check.v5.10.0-rc1v5.10.0Michael Palimaka
REVIEW: 123470
2015-04-19real fix for png2ico, pipe error stream also to result variablePatrick von Reth
2015-04-19execute png2icon --help with ERROR_QUIET, to prevent printing of banner from ↵Patrick von Reth
http://www.winterdrache.de/freeware/png2ico/
2015-03-09Fix tab characters in regexes.Alex Merry
There is no "\t" in CMake's regular expression syntax; we need to make the character be interpreted when CMake parses it as a string.
2015-02-11Add Debian path to search path for qtwaylandscannerJonathan Riddell
Debian likes to install qt binaries into an obscure path, search here as well REVIEW: 122526
2015-02-06Document when modules were added to ECM.Alex Merry
2015-02-01Minor documentation syntax fixes.Alex Merry
2015-01-24Add ecm_add_app_icon function.Alex Merry
This adds an application icon to an executable from PNG files for Windows and Mac OS X. Unlike the similar kde4_add_app_icon macro from kdelibs, this requires icons to be explicitly listed as arguments (meaning CMake can tell when ones are added or deleted and reconfigure as appropriate), and it works with Matthias Benkmann's png2ico tool, as well as the KDE-Win tool of the same name. Currently missing unit tests. Also completely untested (except that `make test` runs on Linux, so there are no obvious syntax errors). With thanks to Ralf Habacker for the inital work on porting kde4_add_app_icon. CHANGELOG: Add ECMAddAppIcon module to add icons to executable targets on Windows and Mac OS X.
2014-11-07Do not skip searching for X11 and Wayland on WindowsAlex Merry
While the search is unlikely to succeed on Windows, having different behaviour between the platforms (eg: find_package(Wayland REQUIRED) was not fatal on Windows, even though Wayland_FOUND would always be FALSE) is not ideal, and if someone did port them to Windows for some reason, the find modules should support that. If applications actually want different behaviour between platforms (like requiring a module on Unix, but not on Windows), they should implement that logic themselves (since they will have to deal with targets not being defined, etc, anyway). REVIEW: 120481
2014-10-19Wayland and QtWayland protocol scannersPier Luigi Fiorini
Add a couple of find modules for wayland-scanner and qtwaylandscanner. These modules find the respective executables and create a target that points to the executable. Targets are respectively Wayland::Scanner and Wayland::QtScanner. There are also macros to generate C protocols with wayland-scanner and C++ wrappers with qtwaylandscanner. REVIEW: 120034
2014-09-15add support for detecting libgit2 (with version check, API changes a lot)Christoph Cullmann
add FindLibGit2.cmake + doc link scripts tries to detect version not by pkgconfig to work on windows without pkgconfig, too REVIEW: 120196
2014-04-26Add a FindKF5.cmake moduleAlex Merry
REVIEW: 117780
2014-04-25Add a stub for ECMFindModuleHelpers to the find-modules dirAlex Merry
ECMUseFindModules allows find modules to be copied to a local directory. These find modules may use ECMFindModuleHelpers, but they will not be in the same relative location to ECMFindModuleHelpers.cmake and there is no guarantee that ECMFindModulesHelpers.cmake will be in the CMake module path. To solve this, we make sure there is always a stub file in the same directory as the find modules that includes the real ECMFindModuleHelpers.cmake. The one installed with ECM just includes "../modules/ECMFindModuleHelpers.cmake", while ecm_use_find_modules generates a stub that uses an absolute path. REVIEW 117658
2014-04-25ECMFindModuleHelpers: set traditional variablesAlex Merry
The traditional *_LIBRARIES, *_INCLUDE_DIRS and *_DEFINITIONS do have some uses - they make it easier to create package config files that use found libraries in their link interface. So this makes sure these variables are set by ecm_find_package_handle_library_components() (and hence by FindWayland.cmake and FindXCB.cmake). REVIEW: 117585
2014-04-24Rework FindX11_XCB.cmakeAlex Merry
Imported target, version handling, package description etc. REVIEW: 117491
2014-04-14Improve FindEGL.cmakeAlex Merry
- Add version handling - Improve the docs - mark cache variables as advanced - make the pkg-config call actually work REVIEW: 117490
2014-04-11Add documentation generation using SphinxAlex Merry
This is deliberately modelled very closely on CMake's documentation system. It's a hefty patch, because it involved changing all the documentation to be in reStructuredText format. I also cleaned up the copyright/license statements at the same time. Note that the find modules contain the full license, due to the fact that ecm_use_find_module() copies them out of the ECM distribution.
2014-03-17Create ECMFindModuleHelpers module for common find-module codeAlex Merry
This currently mostly contains macros for handling components; FindWayland and FindXCB are ported to use this module, which comes with various improvements for them. REVIEW: 116653
2014-03-11Import FindOpenEXR.cmake from kimageformatsAurélien Gâteau
The thumbnail: ioslave from kde-runtime needs it. Reviewed-By: Alex Merry
2014-03-06Remove unused find-modules back to the atticAlex Merry
REVIEW: 116616
2014-03-05Check versions for individual componentsAurélien Gâteau
First part of the diff makes sure find_package_handle_standard_args() gets a version number to check against. Second part ensures we get proper results from pkg-config even if not all components are available. find_package(Wayland COMPONENTS Client Egl) was failing for me because I have Client installed but not Egl, causing pkg_check_modules() to not set any PKG_Wayland_${comp} variable. REVIEW: 116598
2014-02-25Remove FindDocBook*.cmakeAlex Merry
These are only really useful to kdoctools, so they may as well live there. REVIEW: 115897
2014-02-25Improve FindXCBMartin Gräßlin
* define imported targets for all components * add version information * print message on Windows * add package properties * use handle components REVIEW: 116046
2014-02-25Add a FindWayland moduleMartin Gräßlin
Inspired by the FindXCB module it's using components to simplify finding just the parts which are really required. REVIEW: 116018
2014-02-25Add a FindEGL moduleMartin Gräßlin
This module finds the egl library through pkg-config. REVIEW: 116014
2014-02-15Add a cleaned up version of FindSharedMimeInfo.cmakeAlex Merry
This is used by many projects (including any that install any extra mime info). REVIEW: 115749
2013-11-02Remove FindKF5.cmake.Stephen Kelly
The functionality of it is now provided by a KF5Config.cmake file. Remember to remove it from your install prefix to avoid future confusion. CCMAIL: kde-frameworks-devel@kde.org
2013-10-29Add KDED in tier3 (where it will be)Àlex Fiestas
2013-10-28KNewStuff is in Tier 3Kevin Ottens
2013-10-28KEmoticons is in Tier 3Kevin Ottens
2013-10-28Cleanup FindKF5 to reflect the current stateKevin Ottens
2013-10-28Adapt to the latest framework movesKevin Ottens
2013-10-22KJobWidgets is moving to Tier 2Kevin Ottens
2013-10-22KDE4Attic has been removedKevin Ottens
2013-10-22Register KDeclarative with FindKF5 so we can build plasma-framework.Ben Cooksley
2013-10-12Simplify the method of finding only common-origin packages.Stephen Kelly
There is no need for the package to tell us its install dir.
2013-10-12Remove the check for the LIBRARIES variable.Stephen Kelly
It is redundant and obsolete. Some frameworks can have erroneous values (eg KConfigWidgets currently sets FooBar_LIBRARIES). Downstreams are expected to use the imported target name instead. CCMAIL: kde-frameworks-devel@kde.org
2013-10-12Remove the check for the INCLUDE_DIRS variable.Stephen Kelly
It is redundant and obsolete. The framework template does not set it.
2013-10-08There's only 1 KIO Config.cmake fileAleix Pol
2013-10-07We now have a Kross frameworkKevin Ottens
2013-10-07Add KPty to Tier3David Edmundson