summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* CMake: Install config and logging directoriesJulian Andres Klode2016-08-191-0/+13
| | | | | | These directories are essential for apt to work, so we should install them in the upstream build system and not just in the debian packaging...
* Release 1.3~rc21.3_rc2Julian Andres Klode2016-08-171-1/+1
|
* CMake: Install bash completions via cmakeJulian Andres Klode2016-08-151-0/+1
| | | | | | | Having the completions installed only by the packaging was an oversight. Gbp-Dch: ignore
* CMake: Use COPYONLY instead of @ONLYJulian Andres Klode2016-08-111-1/+1
| | | | | | I don't know what happened back in 2009 when I wrote this, but it seems I used the wrong option. These files should not have any variable substitution done to them.
* Release 1.3~rc11.3_rc1Julian Andres Klode2016-08-111-1/+1
| | | | | | | | This commit looks heavy. Most of that comes from the fact that the ordering of files in the translations changed with the switch to CMake. I could have gone the extra mile to figure out the original ordering and replicate it, but I have chosen to re-order everything by file and line number, as that's easier.
* Add statvfs.h.in to CMake directoryJulian Andres Klode2016-08-101-1/+1
| | | | Gbp-Dch: ignore
* prepare-release: Switch over to CMake, set version in CMakeLists.txtJulian Andres Klode2016-08-101-4/+1
| | | | | | | | | Teach the prepare-release script about the version new locations and also set the version in CMakeLists, as that is better than reading it from the changelog: CMake would not rerun automatically otherwise if the version changed. Gbp-Dch: ignore
* CMake: Rewrite existing Documentation support and add doxygenJulian Andres Klode2016-08-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | This can now build all documentation. It should also be fairly reusable for other projects, as long as they follow the same naming scheme for the po4a output files and set the PACKAGE_* variables used here. We could have done all translations in a single call to po4a like the makefile based buildsystem does. While that would have made the output slightly nicer, this solution offers a huge performance gain because it can translate the documents in parallel, which also means that the xsltproc stage does not have to wait for all translations to be done first. You might think that the add_custom_command() should list the actual output files as BYPRODUCTS. This is not true however: Because the files are not always generated, Ninja will think missing byproducts mean that the target is out of date - which is not what we want. Finally, also add the missing doxygen support. Note that the packaging script cleans up some md5 and map files created by doxygen, otherwise it is fairly boring.
* CMake: Check for ptsname_r() againJulian Andres Klode2016-08-101-0/+1
| | | | | | | | This was dropped in autotools as I found no use of the HAVE_PTSNAME_R macro. Turns out it was typoed as HAVE_PTS_NAME_R. Fix the #ifdef and add checks to CMake for it. Closes: #833674
* CMake: Allow building without dpkgJulian Andres Klode2016-08-101-4/+8
| | | | | | | | It's not entirely clear if that is useful, but it cannot hurt. We need to check what is missing to build on foreign systems without dpkg. Gbp-Dch: ignore
* CMake: Bump minimum required version to 3.4.0Julian Andres Klode2016-08-101-1/+1
| | | | | The SOURCE_DIR property is used for the translation building and was introduced in cmake 3.4
* CMake: Add unit testsJulian Andres Klode2016-08-101-0/+2
| | | | | | | | Add support for our GTest based unit tests. By default, CMake will look in /usr/src/gtest for the external GTest project, but this can be overriden by defining GTEST_ROOT when invoking cmake. Gbp-Dch: ignore
* CMake: Set PACKAGE_MAIL variableJulian Andres Klode2016-08-101-1/+2
| | | | | | | This is needed in a lot of places. Also adjust config.h.in to use it instead of the bare email address. Gbp-Dch: ignore
* CMake: Use find_package() for curl instead of pkg_check_modules()Julian Andres Klode2016-08-101-1/+1
| | | | | | No need to involve pkg-config when CMake has builtin support Gbp-Dch: ignore
* CMake: Switch integration tests and travis overJulian Andres Klode2016-08-061-0/+1
| | | | | | This early support seems a bit hacky, but it's a hard switch: The integration tests do not understand the old build system anymore afterwards. I don't really like that.
* CMake: Add initial support for documentation buildingJulian Andres Klode2016-08-061-0/+1
| | | | | | | | | | Build HTML docbook guides (untranslated) and manual pages (including translations). Also install the examples in the example subdirectory. Translation of docbook guides has not been implemented yet, but should be easy to do. The code also needs some cleanup to automatically detect the available translations.
* CMake: Add support for building and installing .mo filesJulian Andres Klode2016-08-061-0/+2
| | | | | | | | | | | | | | Introduce support for building translation domain-specific templates, merging them with the translations, and building a language-specific .mo file. The invocation of xgettext is done in the project source directory, not in the current source directory, and all paths are made relative to the project root, in order to have clean templates. This only supports the C++ source code for now, it unfortunately does not handle the shell scripts of deselect yet.
* CMake: Add basic CMake build systemJulian Andres Klode2016-08-061-0/+132
Introduce an initial CMake buildsystem. This build system can build a fully working apt system without translation or documentation. The FindBerkelyDB module is from kdelibs, with some small adjustements to also look in db5 directories. Initial work on this CMake build system started in 2009, and was resumed in August 2016.