aboutsummaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2014-04-25ECMGeneratePriFile: Allow lib and include install dirs to be overriddenAlex Merry
Rather than blindly using ${LIB_INSTALL_DIR} and ${INCLUDE_INSTALL_DIR} (which assume the inclusion of KDEInstallDirs), this checks whether they exist, also checks for ${CMAKE_INSTALL_LIBDIR} and ${CMAKE_INSTALL_INCLUDEDIR} (set by GNUInstallDirs), provides hard-coded defaults and allows arguments to be used to override the values. This should make it useful to projects that aren't KDE Frameworks. REVIEW: 117593
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-23Only search for qttools if ECM_CREATE_QM_FROM_PO_FILES is called.Nicolás Alvarez
This means frameworks will only depend on qttools if you have a po directory when building them. Approved by agateau and alexmerry on IRC.
2014-04-22Improve plural handling for code using Qt translation systemAurélien Gâteau
- Always load "en" translation: This way if a plural string is not translated, we fallback to the correct english plural form. - Generate .ts files with correct plural settings REVIEW: 117629
2014-04-16Allow ecm_create_qm_loader() to be passed the _SRCS variableAlex Merry
This allows a more straightforward way of using it, which matches the macros that generate things like D-Bus interfaces. REVIEW: 117475
2014-04-16ECMCreateQmFromPoFiles: Also check CMAKE_INSTALL_LOCALEDIRAlex Merry
This is the variable set by GNUInstallDirs. REVIEW: 117596
2014-04-16Make ECMCreateQmFromPoFiles usable from within trunk/l10n-kf5Aurélien Gâteau
REVIEW: 117560
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-04-01Do not replace "-" with "_" in .po filesAurélien Gâteau
This causes problem with .po files whose name contains "-". A nice side effect of this approach is we pass a QLocale to QTranslator, which means it will try to load translations for all "ui languages" [1] instead of just the one returned by QLocale::name(). [1]: http://doc-snapshot.qt-project.org/qt5-stable/qlocale.html#uiLanguages REVIEW: 117296
2014-03-28Add ECMCreateQmFromPoFiles.cmakeAurélien Gâteau
Simplifies translation handling for frameworks using Qt translation system. REVIEW: 117052
2014-03-27Print module name for not found dependend componentMartin Gräßlin
Always printed Wayland. REVIEW: 117114
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-02find_dependency: Update to match CMake's versionAlex Merry
Specifically, we namespace the variables to avoid conflicts, and make the version argument optional. REVIEW: 116080
2014-02-21Defer to CMake's find_dependency macro if it existsAlex Merry
This will be available in CMake 3.0.0. This way, we automatically pick up any new features from it. REVIEW: 115775
2014-02-19Remove CMakePackageConfigHelpers.cmakeAlex Merry
All the frameworks are ported now, so this is no longer necessary. Checked by building everything with kdesrc-build.
2014-02-18Simplify argument parsing for ecm_generate_headersAlex Merry
Now that we no longer have to support the old syntax, some of the more complex bits of the argument parsing can be removed. REVIEW: 115869
2014-02-18Rename CMakePackageConfigHelpers to ECMPackageConfigHelpersAlex Merry
Overriding a CMake package like this will just cause all sorts of headaches later on. In this particular case, projects that depended on CMake 2.8.13 or later (more likely 3.0.0) would fail with a message about removing the CMakePackageConfigHelpers file, but would have no way to do that while still using ECM. This also renames the configure_package_config_file() macro to ecm_configure_package_config_file(), so that anything including CMakePackageConfigHelpers afterwards does not overwrite the macro unexpectedly. For now, we keep a CMakePackageConfigHelpers.cmake file that just wraps ecm_configure_package_config_file() as configure_package_config_file() to keep the frameworks building while they are ported. REVIEW: 115496 Reviewed by Sune Vuorela <kde@pusling.com>
2014-02-16remove old syntax, now that everything has been ported to the new oneDavid Faure
[at least everything that kdesrc-build builds. If there's something else, then it should be added to kdesrc-build...]
2014-02-16Improve the ECMGenerateHeaders API with a variable for generated filesAlex Merry
ecm_generate_headers() now allows/forces the caller to collect the paths of the generated headers, so that they can be passed to the install command. This avoids issues of unexpected files being in the CamelCase includes directory, both from previous builds and because of case-insensitive file systems. MODULE_NAME is removed, as it is no longer desirable or necessary. Instead, the headers are placed directly in the output directory (usually CMAKE_CURRENT_BUILD_DIR). Overall, this makes ecm_generate_headers() behave much more like other file generation macros (like the Qt ones). The old syntax is still supported for now, to make the porting effort easier. REVIEW: 115765
2014-02-11Improve wording of documentation for ECM_INSTALL_ICONSDavid E. Narvaez
Reviewed by: alexmerry
2014-01-25This file provides the function ecm_generate_pri_file().David Faure
ECM_GENERATE_PRI_FILE() creates a .pri file for a library so that qmake-based apps can more easily use the library. It also sets ECM_MKSPECS_INSTALL_DIR as the directory to install the .pri file to. REVIEW: 115099
2014-01-25Make ECMSetupVersion set PROJECT_VERSION_*David Faure
This makes it easier for other functions to access the project version, for instance my upcoming ECM_GENERATE_PRI_FILE()
2014-01-22Mark target created by ecm_add_test as non GUI by defaultAlex Richardson
This behaviour can be overriden by passing the GUI flag to the command REVIEW: 115211
2014-01-13Avoid '//' in paths in generated header filesDan Vrátil
REVIEW: 114888
2014-01-10Rename ECM_VERSION_* to PROJECT_VERSION_* to avoid confusion with ECM's own ↵David Faure
version This is all internal, doesn't change the API or effects of ecm_setup_version.
2014-01-03Install all headers under FrameworkName, add optional PREFIX for namespaced ↵David Faure
headers
2013-12-27Add the REQUIRED_HEADERS and RELATIVE argumentsAleix Pol
RELATIVE is needed because some projects have their headers (and sources) split into different subdirectories. REQUIRED_HEADERS gives the opportunity to receive a list of all the headers we're depending on, in case the user wants to re-use it.
2013-11-05New function to create forward headersAleix Pol
Create ECM_GENERATE_HEADERS, a cmake function that will generate the forward headers like we used to, in cmake configure time. REVIEW: 113406
2013-11-04Improve documentation in ECMInstallIcons.cmakeDavid Edmundson
REVIEW: 113522
2013-11-02Remove ECMPrintVariables.Stephen Kelly
I can't find any use of it, which is semi-expected. It is replaced by CMakePrintHelpers.cmake in CMake upstream.
2013-10-29Copy KDE4 macro to install all icons in the current source dirDavid Edmundson
REVIEW: 113483
2013-10-11Remove obsolete files.Stephen Kelly
These are not used anywhere.
2013-10-07debug--Aleix Pol
2013-10-07Fix typoAleix Pol
ecm_add_test was renamed eventually, but all uses weren't adapted
2013-10-03Add new functions for adding unit testsAlex Richardson
Every framework in KF5 has a macro similar to these, this reduces the unnecessary duplication inside all of the frameworks REVIEW: 112828
2013-10-02Fix typo in comment.Nicolás Alvarez
2013-10-01Remove compatibility signature from ECMSetupVersion.Stephen Kelly
2013-10-01Remove modules which shouldn't be part of the ECM release.Stephen Kelly
2013-09-26Change the signature of the ecm_setup_version macro.Stephen Kelly
Accept a single version argument instead of three. The old signature will be an error in a few days.
2013-09-11Drop ecm_version and ecm_write_version_headerChristophe Giboudeaux
Both macros are obsoleted by ecm_setup_version. REVIEW: 112665
2013-08-27For the CMakePackageConfigHelpers module.Stephen Kelly
Add a macro for finding dependencies. It should be in a future version of CMake. Finding dependencies is one of the major missing pieces of KF5 Config files.
2013-08-22Fix a typo in docsYury G. Kudryashov
2013-04-12Clean up some QtQuick1 stuff.Stephen Kelly
2012-12-12Enable all deprecated API.Stephen Kelly
2012-12-12Add variables for the QtDeclarative library.Stephen Kelly
2012-12-12QtWebkit is now split in QtWebKit and QtWebKitWidgetsJon Severinsson
Make FindQt5Transitional.cmake handle this transparently. REVIEW: 107438
2012-11-25-fix: ecm_setup_version() has no multi-value argumentsAlex Neundorf
Alex
2012-11-23increase version to 0.0.6Alex Neundorf
This commit -adds the macro ecm_setup_version(), as proposed on the kde-frameworks list -sets CMAKE_INSTALL_DEFAULT_COMPONENT_NAME to ${PROJECT_NAME} if a project has been set -makes e-c-m require cmake 2.8.10.1 Alex
2012-10-31Rename file and macro for consistency, as requested by Alexander.David Faure
"Can you please rename it to ECMDBusAddActivationService.cmake and the contained macro to ecm_dbus_add_activation_service(), so it follows the naming conventions in cmake (macro has the same name as the file) and ecm (all macros have the prefix ecm)." -> Done. Nothing to adapt in kdelibs-frameworks yet, it has its own copy for now (I'll get rid of it at the next ECM version upgrade).
2012-10-25QtQuick1 is renamed QtDeclarative.Stephen Kelly