Commit Graph

275 Commits

Author SHA1 Message Date
Pier Luigi Fiorini
f0921a41b2 Try to find settings.conf from SYSCONFDIR
Honor SYSCONFDIR as specified by CMake arguments instead of
using a hard-coded path.

Since GNUInstallDirs set CMAKE_INSTALL_FULL_SYSCONFDIR to
CMAKE_INSTALL_PREFIX/etc we need to change the default ourselves.
2014-08-20 11:48:30 +02:00
Pier Luigi Fiorini
4cd217e4b6 Revert "Raise CMake requirement to 3.0+"
This doesn't work when the partition manager is enabled because it
uses ECM and ECMConfig.cmake fails with an error if the required
CMake is not less than 2.8.13

Added a note here to remember about this.

This reverts commit 2020eb0eb3.
2014-08-19 18:03:40 +02:00
Pier Luigi Fiorini
2020eb0eb3 Raise CMake requirement to 3.0+
FindPythonLibs.cmake from CMake 2.8.x is not capable of finding Python
libraries on Maui, updating to CMake 3.x solves the problem.

Looks like it is better crafted.

Other parties interested in Calamares should already have CMake 3.x
so this is not a problem.
2014-08-18 12:55:20 +02:00
Pier Luigi Fiorini
f2c5f39f64 Make PythonLibs truly an optional component
PythonLibs is an optional dependency, remove REQUIRED otherwise the
build fails when it is not found.
2014-08-14 10:57:03 +02:00
Aurélien Gâteau
15e68e4b9a calapmtest is not useful anymore 2014-08-08 13:27:41 +02:00
Teo Mrnjavac
4028db2b5c Install Calamares macros 2014-07-17 19:42:16 +02:00
Teo Mrnjavac
a61a36d99d We have a Python API for jobmodules!
Created a Boost.Python module interface in libcalamares.
Added a PythonJob wrapper and exposed it in the Python module.
Rename target calamareslib ==> calamares so in Python it's libcalamares.
Python-related classes in libcalamares that aren't exported as C++
symbols are now in a CalamaresPrivate namespace.
Import the libcalamares python module into every Python script before
running it.
Added Python error handling to PythonJobHelper.
Added some more testing code to dummypython module.
2014-07-17 19:42:16 +02:00
Aurélien Gâteau
9c05ecef4d Fix finding of Boost.Python on Ubuntu 2014-07-17 14:54:13 +02:00
Teo Mrnjavac
1dec58f178 Find Python3 + Boost.Python, and other buildsystem fixes. 2014-07-16 15:53:43 +02:00
Teo Mrnjavac
c57d99a21c Add CalamaresAddModuleSubdirectory, a CMake function for modules that
do not require building through a CMakeLists.txt.
2014-07-14 16:26:10 +02:00
Teo Mrnjavac
4ec72f4afb Refactored calamares_bin into calamares_bin and libcalamaresui.
Now linking with -Wl,--no-undefined!
Moved find_package KF5 from the root CMakeLists.txt to the partitioning
module where it belongs. KF5 deps should be limited to plugins.
Lots of random fixage to make stuff link.
Removed CalamaresApplication reference from Settings.
Removed the use of AbstractPage, we don't need it right now.
2014-07-03 18:00:40 +02:00
Aurélien Gâteau
0446bb1079 More readable partition sizes 2014-07-02 18:04:53 +02:00
Aurélien Gâteau
1b22ec890b Install settings.conf 2014-07-01 10:38:08 +02:00
Aurélien Gâteau
c3fe6026f2 Shut up cmake 3.0 2014-06-27 15:42:12 +02:00
Aurélien Gâteau
02af2dccb9 Introduce libcalapm
This adds a submodule pointing to a fork of KDE Partition Manager. All
Calamares-specific changes are in the "calamares" branch of this fork.
2014-06-26 16:46:06 +02:00
Teo Mrnjavac
cbde9f3c0c Make the compiler a little more pedantic 2014-06-25 19:31:02 +02:00
Teo Mrnjavac
5a5956052b There's a better way to check for GCC 4.9 2014-06-25 19:22:52 +02:00
Teo Mrnjavac
1237f7acc5 Only enable colorized messages if g++ version is >=4.9 2014-06-25 19:12:21 +02:00
Teo Mrnjavac
f00337f379 Force error coloring in GCC 4.9 2014-06-25 18:42:59 +02:00
Teo Mrnjavac
3dd9578b95 Allow undefined symbols when linking plugin. 2014-06-19 11:04:47 +02:00
Teo Mrnjavac
13fcf387c7 A bunch of work on loading plugins.
Also switched to C++11.
2014-06-18 18:05:04 +02:00
Teo Mrnjavac
05d355f21f Config files are YAML, not JSON. We depend on yaml-cpp for parsing. 2014-06-13 16:40:42 +02:00
Teo Mrnjavac
6899b1f0fa Added CMake magic for plugin infrastructure.
Added ViewManager.
Added dummy Settings class.
Added dummy plugin interface (UI plugins only).
Added dummy greeting plugin.
Added DLLEXPORT macros for UI plugin interface and plugins.
2014-06-11 13:39:20 +02:00
Teo Mrnjavac
b21dc4fe4c Added Utils, Logger, Translations, QCommandLineParser, init boilerplate 2014-06-06 17:19:59 +02:00
Teo Mrnjavac
b5ec7c4702 CMake skeleton. 2014-06-04 16:35:26 +02:00