summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* tde_create_handbook: Install symlink for 'common' part as relative.r14.0.13r14.0.xSlávek Banko2022-10-041-1/+2
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 6b4c7a9ef0ca01d10c5634e7cecc51e1afcacb36)
* Allows tde macros to be used for processing .ui files in pure TQtMichele Calgaro2022-09-042-13/+28
| | | | | | | applications. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 6a21dd39143b725e5d78ae5eb644fd226107261d)
* Make sure to check for existance of ${CMAKE_SOURCE_DIR}/.tdescminfoMichele Calgaro2022-06-201-2/+5
| | | | | | | before trying to read it. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 4940b4ebe7d5520f88aaa85eb2c6f9b31d3a03f1)
* Add macro to set project version at TDE-wide scope.Michele Calgaro2022-06-192-0/+30
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 11a6934bbb70fd1dde99b77afcec2855c69699b6)
* Set C++11 as the required minimum standard.r14.0.12Slávek Banko2022-01-281-0/+3
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 0560f24a3be03514a9a020f589b6255ce8a5fd86)
* tde_automoc: Add support for processing automoc for generated files.Slávek Banko2022-01-142-1/+117
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit efec901634b3c9816f8788d48bf27c7511238855)
* Add TQT_CMAKE_DIR variable.Slávek Banko2022-01-132-2/+11
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit d863e15b5049a05b617276fdf86e2df42a0d7501)
* tde_install_export: Sort individual exported files before generatingSlávek Banko2022-01-031-0/+1
| | | | | | | a summary export file so that the generated output is reproducible. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 857971e81015596d53ce861d08b0e64169a33d7c)
* Add the ability to specify the necessary CXX features in ↵Slávek Banko2022-01-031-0/+13
| | | | | | | tde_add_check_executable. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 538040ff2d48561f9503f1ef2e6c0f6018461ecc)
* tde_create_handbook: Fix characters not permitted for target name.Slávek Banko2021-12-301-0/+1
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 81cfcd037927d26c19565325d836cc3c4e99b111)
* Add the ability to specify the necessary CXX features.Slávek Banko2021-12-291-0/+40
| | | | | | | | | | | | | | This increases the minimum necessary version of CMake to 3.1. There are three levels: 1. TDE_CXX_FEATURES common for all TDE modules 2. PROJECT_CXX_FEATURES common at invidual module level 3. CXX_FEATURES and CXX_FEATURES_PRIVATE for individual libraries and binaries Public CXX_FEATURES for libraries become part of the exported CMake target. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 2bcaeab34e1f7d3714416a6d5290701d2b02be1e)
* tde_create_handbook: Add *.gif files to automatically installed.r14.0.11Slávek Banko2021-07-201-0/+2
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 6980b57268b7f10fa56a36a56f16ab255266027f)
* CMakeL10n: Prevent exclusion _translatorinfo when using X-POT.Slávek Banko2021-07-081-1/+15
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit fa09639dea9e19cf05593052da9419fc09a0513a)
* CMakeL10n: Fix the path for loading additional POT files.Slávek Banko2021-07-071-1/+1
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 285ad7baee805733bd3492a6055c4577c6e69c45)
* CMakeL10n: Avoid option --use-first for msguniq callSlávek Banko2021-07-071-48/+30
| | | | | | | | | | | | | because it causes loss of comments and information about the location of strings in source files. Instead, clean the ugly comments from the template. Instead of msgcat, the CMake code is now used for joining POT files, then repeating POT file headers are removed and msguniq is used to merge unique strings. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 7eac0a0f6871f89baacb761fa771474f27f59022)
* tde_create_translated_desktop: Add the ability to merge translations into ↵Slávek Banko2021-07-071-8/+29
| | | | | | | files in XML format. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 510c8ba0d9ec00152d6d783eefb8965363a6c441)
* CMakeL10n: Allow to use more than one X-POT files.Slávek Banko2021-07-041-13/+12
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 5bf1d5e81f7223919f33921ecfdf86576c0d5324)
* tde_create_handbook: Add *.jpg files to automatically installed.Slávek Banko2021-06-171-0/+1
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 6d6ad623c4ce4ff1f25d0c86ea44ee51165f8095)
* Update tde_add_project_* macros:Ray-V2021-06-171-14/+67
| | | | | | | | | | | | + Added macros in the tde_conditional_add_project_* variant. + Macros can now be used from the project's top directory. + Added default processing for simple HTML documentation. + Added the 'other' directory to separate processing. + Added default processing for 'misc' directory. Signed-off-by: Ray-V <ray-v@inbox.lv> Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 23d7973b29bb1e4b179fbab4c93bd0185ea9b192)
* tde_add_project_translations: Add common rules for generating and installing ↵Slávek Banko2021-06-041-0/+27
| | | | | | | project translations. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 8f2906a763ad3bea3819dfc8588b32685c53e65c)
* tde_add_project_docs: Add common rules for generating and installing project ↵Slávek Banko2021-06-041-0/+87
| | | | | | | documentation. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 4a3c96b1f355902a706a663e984193d7211d2c79)
* tde_create_translated_desktop: Fix characters not permitted for target name.Slávek Banko2021-05-251-2/+3
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 870ade6418da040cf9db963adab5034c5bd169a7)
* tde_uic: Set CMAKE_MODULE_PATH only if it is needed. This prevents CMP0017.Slávek Banko2021-05-252-2/+3
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit dc88ab2c2ccccf037e278abd18278d8c10019e11)
* tde_add_ui_files: Use TDE_CMAKE_MODULES to determine the path for tde_uic.cmake.Slávek Banko2021-05-242-2/+3
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 639294f9627de22e91e016d81329a532d65ea8f4)
* tde_create_translated_desktop: Prevent FTBFS on generated desktop filesr14.0.10Alexander Golubev2021-02-281-14/+21
| | | | | | | | | | Fix FTBFS when translations are missing and the desktop file passed to tde_create_translated_desktop() is build-time generated. See TDE/tde-packaging-gentoo #196 for details. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit f0a5bcc7600c36f8fe59754d1167d1bbc70a4953)
* tde_create_translated_desktop: Prevent FTBFS if the lengthSlávek Banko2021-01-271-1/+6
| | | | | | | of CMAKE_BINARY_DIR is longer than the tested _basename. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 111a08942a8b5452cd51f41e6f811d55de30c657)
* tde_create_translated_desktop: Instead of preprocessing the desktopSlávek Banko2021-01-271-4/+3
| | | | | | | | | | file for use with intltool-merge already in the configuration phase, prepare the file during the custom command call just before calling intltool-merge. This will allow the natural use of the macro with the generated files. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 1686d0e64eefa5f4036dce1800d666c41b0b5e5a)
* tde_create_translated_desktop: Avoid confusing paths when processingSlávek Banko2021-01-271-9/+24
| | | | | | | a desktop file in a binary folder. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit a5baa2c1ab82309a59ba67db8fd0530f097fd36e)
* tde_create_translated_desktop: Use find_file instead of find_programSlávek Banko2021-01-271-3/+3
| | | | | | | | to find tde_l10n_merge.pl because it does not have the executable bit set. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 52001b90693f0c986d6aa2ceec69f9b8fa7b8699)
* tde_create_translated_desktop: Incorporate a slightly modified versionSlávek Banko2021-01-132-3/+1531
| | | | | | | | of intltool-merge 0.51 to properly merge desktop file translations containing escaped newline characters - '\n'. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 53c7e28984f89f979c4495b30abdb10a80373d71)
* tde_curdatetime: Add the -u option to call 'date'Slávek Banko2021-01-131-1/+1
| | | | | | | so that the result is not time zone dependent. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 43763c6adf901985d44b305b8fcc6270f77b70dd)
* Set compiler flags useful for reproducible building.Slávek Banko2021-01-131-0/+16
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit b2b9e890528f27daeb577983e1ed4fe2ecf8f852)
* tde_create_tarball: Add options to make tarballs reproducibleSlávek Banko2020-12-071-2/+3
| | | | | | | independently of UMASK and time zone. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 7b6865d9e60d3220cecea027f227ab084f1a903c)
* tde_create_translated_desktop: Show the full path of the sourceSlávek Banko2020-12-071-1/+4
| | | | | | | desktop file when merging translations. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 28260f0078b016aac7f9b924c424bc1ae7d157fd)
* Adjust CMakeL10n module to search for tde.pot in 'core/tdelibs' folder.Slávek Banko2020-12-071-3/+3
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit ae0ecf194bf51902652570df879579cb76f7db7f)
* Added search for additional files to tde_l10n_create_template.r14.0.9Michele Calgaro2020-10-091-0/+4
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 35d01987874772b6d83189d302186b881dbf2e30)
* Add a global option to force colored output from compiler.Slávek Banko2020-09-201-0/+13
| | | | | | | Taken from https://medium.com/@alasher/colored-c-compiler-output-with-ninja-clang-gcc-10bfe7f2b949 Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 0459cbaf3eaf2b123a07d125623db0fc82baa6aa)
* tde_create_tarball: SOURCEDIR can be specified as relative.Slávek Banko2020-09-181-0/+5
| | | | | | | | | If the list of files is obtained internally in a macro, it will be sorted. This prevents unexpected order of files - improves certainty for reproducible builds. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit fb4f389731cf5a26a0a13e4d31bbbb61724989e7)
* tde_create_translated_desktop: Allow generating a translated desktopSlávek Banko2020-07-291-5/+14
| | | | | | | file that will not be installed directly. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 63b5532a298ccf95e310ae853ff53ade506daf7e)
* tde_create_translated_desktop: Fix CMP0054 warning in case of specialSlávek Banko2020-07-291-1/+1
| | | | | | | desktop file name that could be the same as the keyword. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 9f86304bdd4be37b625ee3ae9d37f2c4006dea14)
* tde_create_translated_desktop: Fix processing when using configure_file.Slávek Banko2020-06-261-1/+1
| | | | | | | | | Although the processing with configure_file was done properly, the original source file was used instead of the processed one to merge the translations. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 3bbc0e4d62a37030bf87675a33002ecf91b27107)
* tde_create_translated_desktop: Add the ability to process multiple sourceSlávek Banko2020-06-251-111/+126
| | | | | | | files to be installed in the same destination folder. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 7592371d26c766c79419930e22e2680559f22d95)
* tde_create_translated_desktop: PO_DIR can be specified as relative.Slávek Banko2020-06-251-8/+17
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 1baa4cbbd1bcfd4765c5aeeed07506f312e03bb6)
* tde_create_translated_desktop: Process the source file using configure_fileSlávek Banko2020-06-251-6/+13
| | | | | | | if it has a ".cmake" extension. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 690e7a7ec30cb96baf8c8f0a3f69969ad074aad1)
* tde_create_translated_desktop: Add the ability to call for the same sourceSlávek Banko2020-06-251-35/+39
| | | | | | | file installed in another location. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 8d4479fbcc57a40f2bfcf1f26789e24d853c41b5)
* Remove use of LINGUAS file to prevent writes to the source directoryaneejit12020-06-251-16/+8
| | | | | | | This is for the resolution of bug 3133 Signed-off-by: aneejit1 <aneejit1@gmail.com> (cherry picked from commit 8cf356884f1d6cd583dd28ba638253b6e94e6878)
* Remove adding dependencies that were previously neededSlávek Banko2020-06-251-9/+0
| | | | | | | to build tdelibs as such. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 1254cb9250044ab80257a032a07aa626ac2aafb2)
* Fix FTBS if CMAKE_BUILD_TYPE is not set.Slávek Banko2020-06-141-1/+1
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 4d52ea2c67a7e8cdc263c32da4453c8e4d4ae279)
* Set the LINK_INTERFACE_LIBRARIES and INTERFACE_LINK_LIBRARIESSlávek Banko2020-06-141-1/+4
| | | | | | | | | | | properties not only for the default, but also for the specific build type. This resolve FTBFS when using private linking if the build is of type Debug. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e769cc000347ea6c27d14eb1e92c1c1f40e84d74)
* tde_add_library: Add the ability to link libraries as private.Slávek Banko2020-06-121-0/+18
| | | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit d504c98bb7342c38764c83f3f3c0c31eb6834f18)