Commit Graph

70 Commits

Author SHA1 Message Date
Adriaan de Groot
d7594860b0 CMake: fix calamares_add_library
- Remove the commented-out cruft and the whinging
 - Fix use of COMPILE_DEFINITIONS with a list passed in
 - Remove unused arguments (TYPE, TARGET)
 - Document calamares_add_library
 - Document how to use COMPILE_DEFINITIONS (in calamares_add_plugin)
2019-03-20 11:26:02 +01:00
Adriaan de Groot
82c51dec37 CMake: don't change cmake logging on release builds
- There is no real need to reduce the logging on release builds,
   it's just confusing that all the cmake-time output changes
   in a non-meaningful way.
2018-09-14 05:33:04 -04:00
Adriaan de Groot
4602b30264 [libcalamaresui] Use PYTHONQT_INCLUDE_DIRS
- document new variable from the CMake module
 - use it in libcalamaresui to simplify #include'ing the
   header for the "all" extension.

Suggested by Denis Proskurin.
2018-09-03 06:26:26 -04:00
Adriaan de Groot
54bee71b44 CMake: Search for PythonQt_QtAll.h
Suggested by Denis Proskurin.
2018-09-03 06:20:44 -04:00
Adriaan de Groot
9651c588bc CMake: Search for PythonQt headers in more places.
Suggested by Denis Proskurin.
2018-09-03 05:34:23 -04:00
Adriaan de Groot
2f6e80dc42 CMake: always copy the config files to the build directory.
Switching to INSTALL_CONFIG=OFF breaks tests by not having them
in the build directory. Some logic was coupling not-installing
to not-using-in-build-dir too closely.
2018-06-28 04:39:12 -04:00
Adriaan de Groot
d325366e92 CMake: fix plugin NO_INSTALL keyword
Although the NO_INSTALL keyword could be specified for
Calamares plugins, it didn't actually do anything. Now
it does. A NO_INSTALL module does not install configs
or libraries.
2018-06-15 07:19:02 -04:00
Adriaan de Groot
def459a29d [libcalamaresui] Read emergency setting from module.desc
- Read setting from the module descriptor
 - Document optional settings
 - Add EMERGENCY keyword to the CMake helper functions
2018-06-15 07:11:17 -04:00
Adriaan de Groot
0ffb6ed67c CMake: fix checks for supported rcc format versions 2018-06-14 06:41:08 -04:00
Adriaan de Groot
7eae99223e CMake: check if rcc supports --format-version
- The new format was introduced in Qt 5.7, and Qt 5.9 introduced
   the --format-version flag to rcc to switch back to the reproducible
   format 1. For distro's with Qt 5.7, don't use the new flag.
 - Reported from Neptune Linux, #979
2018-06-14 06:11:39 -04:00
Adriaan de Groot
733836839a CMake: remove module that duplicates what is in CMake proper 2018-05-17 12:00:06 +02:00
Adriaan de Groot
ace30e149a CMake: fix defaults-handling which was breaking in-tree build 2018-03-16 11:51:50 -04:00
Adriaan de Groot
abe05ac8ab CMake: document add_branding_subdirectory()
- add feature to allow (re)naming and to support greater
   directory depths.
2018-03-14 09:12:27 -04:00
Adriaan de Groot
b95fe2227f CMake: remove debugging from macro 2018-03-14 08:54:55 -04:00
Adriaan de Groot
d4f0be02d3 i18n: make build reproducible
The RCC output files in version 2 contain a timestamp of the
source file, which changes per build. Drop down to version 1,
which just removes the timestamp.

See reproducible builds note 'timestamps in source generated by rcc'.

FIXES #917
2018-03-12 09:09:29 -04:00
Adriaan de Groot
42ba505ceb CMake: add license headers, copyright
Since we install the CMake files now, also put license headers in them.
These files are intended to help plugin and branding component authors
write them in a simple Calamares-idiomatic way.
2018-03-09 11:13:42 -05:00
Adriaan de Groot
986c5f5a9a CMake: improve branding component macros
- document preferred component layout
 - simplify parameters to the branding macros
 - allow structured branding components with SUBDIRECTORIES
2018-03-09 11:03:42 -05:00
Adriaan de Groot
345118aec9 CMake: improve branding support
- Fix broken subdirectory call
 - Automatically process lang/ if there isn't a CMakeLists.txt,
   this was a bogus restriction
 - Add support macros for installing branding and translations
2018-03-09 07:21:16 -05:00
Adriaan de Groot
3723355fb9 CMake: ignore config files (and tests) for skipped modules. 2018-02-07 13:31:50 +01:00
Adriaan de Groot
27e1de6548 [users] Use libpwquality for additional password checks
- add cmake module to find libpwquality
 - move checking functions to their own file
 - some Transifex hackery
 - stub out the libpwquality check
2018-01-24 14:13:50 +01:00
Adriaan de Groot
4630008fa1 CMake: don't copy over modules with unsupported interfaces.
If Python isn't found, or PythonQt isn't found, there is no point
in copying over the modules into the build tree; this may even be
misleading because the files are there, but won't work and this
will be noticed at runtime only.

Instead, skip the modules and explain why.
2018-01-15 22:41:06 +01:00
Adriaan de Groot
6e01bb0fa4 CMake: factor out explanation of skipped modules.
Make a function out of explaining-skipped-modules, and call it
not only after collecting all the modules, but also after
the feature summary, so that it's quite clear which modules
are skipped.
2018-01-10 09:20:49 -05:00
Adriaan de Groot
1a42b8af41 Merge branch 'kpmcore-3.2'
- Bumps requireed KPMCore to 3.3 (in spite of the branch name)
 - Cleans up some dependencies

Thanks to Andrius Stikonas.
2018-01-02 13:25:11 +01:00
Adriaan de Groot
03dd487fc2 Merge branch '3.1.x-stable' 2017-12-24 16:23:35 -05:00
Adriaan de Groot
2e1f389997 CMake: explain which modules are skipped
Modules may be skipped for different reasons: SKIP_MODULES
is the traditional approach to suppress some, but other modules
may have unmet build requirements (e.g. Plasma Look-and-Feel,
or the Partitioning module) and should be able to opt-out
of being built. For all those skipped, log it explicitly after
all the modules have been examined.

Only CMake-based (e.g. C++) modules support opting-out in this way.
2017-12-24 16:14:58 -05:00
Adriaan de Groot
cc15dd9ec7 Merge branch 'master' into kpmcore-3.2
- Pull in Master, merge README, to simplify merging this
   branch into master (soon-ish, once kpmcore 3.3 becomes available
   in builders)
2017-12-15 07:18:05 -05:00
Adriaan de Groot
84c28e9efa CMake: explain better why PythonQt isn't found 2017-12-02 07:00:43 -05:00
Andrius Štikonas
1620f6a668 Merge branch 'master' into lvm2 2017-11-11 21:30:49 +00:00
Adriaan de Groot
fda4b4e3c2 CMake: improve searching for PythonQt
- don't log when libs not found
 - log that it's the Python libraries version (not Python itself)
 - fix RE that was getting the wrong results for maj.min
2017-11-06 06:12:26 -05:00
Adriaan de Groot
970b6fcb19 CMake: find PythonQt better
- replace weird distinction between 3.0 and 3.2 by searching once
 - prefer 3.2
 - also look for suffixed versions (PythonXY) besides the Python3 suffix

FIXES #857
2017-11-03 12:48:16 -04:00
Adriaan de Groot
ebb0331672 CMake: remove unused module 2017-10-24 12:56:02 -04:00
Adriaan de Groot
c6c6c2f22f Testing: refactor so that C++ and Python modules all get yaml-config tests 2017-10-12 13:37:54 -03:00
Adriaan de Groot
6000cbaae2 Testing: test each module's config files 2017-10-12 13:03:13 -03:00
Andrius Štikonas
68e940f0bf Remove unnecessary KIO and KIconThemes dependencies. 2017-09-30 18:18:25 +01:00
Adriaan de Groot
81db2bad5f CMake: refactor boost.python search
- improve description of Python dependencies
 - refactor search per python-version-style
 - report on features and found boost modules the standard way
2017-09-23 10:22:41 -04:00
Adriaan de Groot
c9f4bc0cc8 Check for crypt(3), also on FreeBSD 2017-09-13 22:32:21 +02:00
Adriaan de Groot
03d9dbe099 Clean up CMakeLists, linking 2017-09-13 18:29:56 +02:00
Adriaan de Groot
cbef79bb93 Clean up CMake stuff, remove unneeded modules 2017-09-13 08:32:22 -04:00
Adriaan de Groot
39f5af1fcc Python-i18n: clean up filename handling a little (thanks Kevin) 2017-08-18 14:13:26 -04:00
Adriaan de Groot
40335d9f1e Python-i18n: install mo files into build tree 2017-08-18 13:06:44 -04:00
Adriaan de Groot
1dbe7c29e2 Python-i18n: prepare for move of API to libcalamares.utils, be less verbose 2017-08-15 12:30:19 +02:00
Adriaan de Groot
22c0ee5dbb Python-i18n: install gettext .mo files into system locale dir 2017-08-15 10:34:28 +02:00
Adriaan de Groot
b922d88b0f Python-i18n: add a gettext_path for python job modules 2017-08-10 15:39:24 -04:00
Adriaan de Groot
34c3bc6c85 CMake: shuffle translations macros into CMakeModules/ 2017-08-10 10:40:41 -04:00
Kevin Kofler
633a2a193d CMake: fix typo in CalamaresAddPlugin.cmake
Fix "calamaers_add_plugin" typo in the introductory comment of
CMakeModules/CalamaresAddPlugin.cmake.
2017-08-03 02:03:14 +02:00
Adriaan de Groot
8b19f672e7 CMake: also follow CMAKE_COLOR_MAKEFILE settings 2017-08-02 11:32:27 -04:00
Adriaan de Groot
2fdccdf090 Merge branch 'simplify-module-desc' 2017-08-02 11:29:58 -04:00
Adriaan de Groot
f711d6e39c CMake: colorised through test -t doesn't work 2017-08-02 11:27:14 -04:00
Adriaan de Groot
46636bdf65 Modules: documentation of CMake, module.desc, etc. 2017-08-02 11:05:32 -04:00
Adriaan de Groot
47e95b32a9 CMake: fix auto-generated module.desc 2017-08-02 11:05:32 -04:00