aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-28beta1 preparation: ECM is now 0.0.12v0.0.12David Faure
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-17Add historical info to comments in the compiler settings hacksAlex Merry
Hopefully these might be of some use in determining whether they are still needed.
2014-03-11Import FindOpenEXR.cmake from kimageformatsAurélien Gâteau
The thumbnail: ioslave from kde-runtime needs it. Reviewed-By: Alex Merry
2014-03-11Fix over-zealous search-and-replace in the docsAlex Merry
2014-03-11Add documentation about writing find modulesAlex Merry
REVIEW: 116025
2014-03-07Make the required CMake version in the ExecuteAllModules test 2.8.12Alex Merry
This matches what is in the main CMakeLists.txt file, and silences some warnings in the test logs.
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-03-04Also pass -fno-exceptions when building with clangAlex Richardson
All of KF5 + kate + kde-workspace compile with clang and -fno-exceptions The only problem related to clang and -fno-exceptions I could find was http://llvm.org/bugs/show_bug.cgi?id=10910 and that is fixed since clang version 3.0 which was released in December 2011 REVIEW: 115395
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-03-01alpha2 preparation: ECM is now 0.0.11v0.0.11David Faure
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-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-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
2014-02-14build on Mac OS XHarald Fernengel
2014-02-14Improve docs for kde modulesAlex Merry
REVIEW: 115488
2014-02-12Install app desktop files to share/applications, not in a kde5 subdirAlex Merry
Given that binaries are all installed in PREFIX/bin, and have to avoid clashes, doing the same for desktop files is no great issue, and installing into a subdirectory of applications/ just complicates matters for client code that needs to refer to the desktop file (is it "kde5-foo[.desktop]", "kde5/foo[.desktop]" or just "foo[.desktop]"?). REVIEW: 115683
2014-02-11Improve wording of documentation for ECM_INSTALL_ICONSDavid E. Narvaez
Reviewed by: alexmerry
2014-02-05Remove commands that just set variables to their defaultsv0.0.10Alex Merry
REVIEW: 115477
2014-02-04Use the MSVC variable directly, instead of the compiler IDAlex Merry
This is cleaner and easier to read. REVIEW: 115378
2014-02-04Resolve some FIXMEs related to MSVC and IntelAlex Merry
In particular, MSVC (and Intel on Windows) have no equivalent of the -std flag to set the language standard, and Intel does not appear to produce the warnings that were disabled for MSVC. REVIEW: 115378
2014-02-04bump ecm to 0.0.10David Faure
2014-02-04Fix MSVC libc linkage for debug buildsAlex Richardson
Previously we would end up with both /DEFAULTLIB:msvcrt and /DEFAULTLIB:msvcrtd on the command line. As a result of the the programs would link to both the debug and the release C library and always crash soon after startup. REVIEW: 115456
2014-01-29Improve the compiler version checksAlex Merry
- Only warn if the compiler is not recent enough (it may still work...) - Bump up the GCC version to 4.5 (on Linux, at least) to match Qt - Add checks for Windows (both MSVC and MinGW) - Add check for Clang REVIEW: 115372
2014-01-29Check the C_COMPILER_ID when settings C_FLAGS, not CXX_COMPILER_IDAlex Merry
Not that anyone is likely to use different compilers for C and C++... REVIEW: 115379
2014-01-29KDE_SOURCE_FILES_ENABLE_EXCEPTIONS: Handle case where COMPILE_FLAGS is not setAurélien Gâteau
When COMPILE_FLAGS is not set, get_source_file_property(flags ${source_file} COMPILEFLAGS) set flags to "NOTFOUND". Leading to interesting build failures in kde-runtime when we then set flags to "NOTFOUND -fexceptions", see http://build.kde.org/job/kde-runtime_frameworks_qt5/58/ REVIEW: 115376
2014-01-29Move and comment -fno-common settingAlex Merry
REVIEW: 115363
2014-01-29Remove the allocator and visibility checkAlex Merry
I am reasonably sure the allocator check is out of date, given our minimum GCC version, and it was not used for anything interesting anyway. The visibility check will not be performed in practice, as this file will almost always be included before any check for Qt. REVIEW: 115360
2014-01-28Add a note about why we use C89 instead of C99Alex Merry
2014-01-28Do not explicitly link against libcAlex Merry
This is entirely unnecessary with any sane toolchain, and should be in the linker flags (rather than the compiler flags) for any system where it is required. REVIEW: 115362
2014-01-28Better documentation for system API definesAlex Merry
2014-01-27Organise KDECompilerSettings.cmake more logicallyAlex Merry
Very little should have changed in practice (apart from the Intel compiler stuff being properly separated between things for WIN32 and things for other platforms, and not defining _BSD_SOURCE).
2014-01-27Replace the KDE_ENABLE_EXCEPTIONS variable with a pair of functionsAlex Merry
kde_enable_exceptions() essentially does what set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE_ENABLE_EXCEPTIONS}") used to do. kde_target_enable_exceptions does it on a per-target basis.
2014-01-27Add system API feature macros to CMAKE_REQUIRED_DEFINESAlex Merry
Various defines we set affect the API offered by the system; subsequent CMake configure checks should happen in a matching environment. REVIEW: 115294
2014-01-26Replace the minimal README with a better README.md fileAlex Merry
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-23Only set QT_STRICT_ITERATORS when not compiling with MSVCAlex Richardson
On MSVC linker errors will happen when this flag is set (with Qt < 5.3) REVIEW: 115234