summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Release 1.3~rc41.3_rc4Julian Andres Klode2016-09-021-1/+1
|
* Release 1.3~rc31.3_rc3Julian Andres Klode2016-08-301-1/+1
|
* CMake: Add missing iconv dependencyJulian Andres Klode2016-08-261-0/+1
| | | | | | | | | | | | FreeBSD has two iconv systems: It ships an iconv.h itself, and symbols for that in the libc. But there's also the port of GNU libiconv, which unfortunately for us, Doxygen depends on. This changes things to prefer a separate libiconv library over the system one; that is, the port on FreeBSD. Gbp-Dch: ignore
* Make root group configurable via ROOT_GROUPJulian Andres Klode2016-08-261-0/+6
| | | | | This is needed on BSD where root's default group is wheel, not root.
* Make directory paths configurableJulian Andres Klode2016-08-261-9/+18
| | | | | | | This allows other vendors to use different paths, or to build your own APT in /opt for testing. Note that this uses + 1 in some places, as the paths we receive are absolute, but we need to strip of the initial /.
* CMake: Add support for libintlJulian Andres Klode2016-08-261-3/+9
| | | | | | | | | | | | | This basically just links everything to libintl if USE_NLS is on. It would be better to just link those targets that are actually translated, but doing so is a huge PITA. Also move the include_directories() for the build-tree include/ directory to the top of the CMakeLists.txt, otherwise it only gets passed after Intl_INCLUDE_DIRS, which means we will built against installed apt-pkg headers (if any) instead of our own. Gbp-Dch: ignore
* CMake/private-download: Fix statfs includes on FreeBSDJulian Andres Klode2016-08-261-5/+6
| | | | | | | On FreeBSD, we have to include sys/params.h and sys/mount.h, not sys/vfs.h. Gbp-Dch: ignore
* CMake: Add FindLZ4 and FindLZMAJulian Andres Klode2016-08-261-3/+3
| | | | | | This makes things work with /usr/local on FreeBSD. Gbp-Dch: ignore
* CMake: Do not use -lresolv if res_init exists in libcJulian Andres Klode2016-08-261-0/+8
| | | | Gbp-Dch: ignore
* CMake: Handle endian.h locations on other platformsJulian Andres Klode2016-08-261-0/+12
| | | | Gbp-Dch: ignore
* CMake: Handle BSD platforms with sig_t instead of sighandler_tJulian Andres Klode2016-08-261-0/+13
| | | | | | | Somewhat annoying, but OK. Might want to switch to something more clever to get rid of the typedef at all. Gbp-Dch: ignore
* CMake: Define _WITH_GETLINE for FreeBSDJulian Andres Klode2016-08-231-0/+3
| | | | Gbp-Dch: ignore
* CMake: Do not add po/ if USE_NLS is OFFJulian Andres Klode2016-08-231-2/+4
| | | | | | Previously, we would have generated all the translations, but not turn them on in the code. Instead, move the Translation crap into po/ and disable po/ alltogether if USE_NLS if OFF.
* CMake: Add Large File SupportJulian Andres Klode2016-08-231-0/+6
| | | | | | | | This module should cover all sorts of large file supports, as long as they either support the getconf LFS_CFLAGS command; or the _FILE_OFFSET_BITS=64 or _LARGE_FILES macros. Closes: #834767
* 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.