summaryrefslogtreecommitdiff
path: root/cmake
Commit message (Collapse)AuthorAgeFilesLines
* Some fixes for MINGW (#828)مهدي شينون (Mehdi Chinoune)2022-04-154-12/+12
| | | | | | | | | | | | | | | | | * Enable webpng on MINGW * Detect GD version using cmake language * Use _aligned_malloc instead of posix_memalign on Windows * Include missing "errno.h" * Fix finding WEBP on MINGW * Fix finding XPM on MINGW * Use PkgConfig to find packages on MINGW * CI: Enable more options for MINGW
* cleanup Windows CRLF line endlingsMike Frysinger2021-09-111-239/+239
|
* #744, add cmake clang module, it builds now, but it fails weidly.Pierre Joye2021-08-311-0/+239
|
* simplify HEIF_HDR_TO_8BIT detectionPierre Joye2021-08-241-15/+7
|
* Enforce minimum libheif to 1.7.0Martin Reboredo2021-08-211-1/+21
|
* Let check for HEIF not fontconfigPierre Joye2021-08-211-2/+1
|
* Add FindNaturalDocsPierre Joye2021-08-201-0/+45
|
* cmake: allow tests to skip by exiting 77Mike Frysinger2021-03-061-0/+1
| | | | The autotools framework supports this already.
* HEIF support through libheif (#670)Martin Reboredo2021-03-021-0/+82
| | | | | | | | | | | | | | | With the adoption of AVIF by Firefox and Chromium based browsers (still in experimental phase), the newer incorporation of HEIF by Canon and Sony in their cameras and the newer support of both of them in modern software like ImageMagick, GIMP and Krita, `gd` haven't seen any endorsement for the formats up until this PR. Reading and writing is done by `libheif`, with functionality for chroma subsampling (for now `4:2:0`, `4:2:2` and `4:4:4`), quality (with new `200` for lossless) and compression (whether `HEVC` or `AV1`) selection. This was tested with `libheif` version `1.11.0` in my Solus machine. Also, fixes both #395 and #557.
* cmake: webp: remove implicit lib search relative to gd checkoutBen Morss2021-02-261-1/+1
| | | | | If the builder has packages in a diff location, they can specify them globally. The webp code shouldn't be searching for it specifically.
* scripts: clean up various shellcheck warningsMike Frysinger2021-02-081-1/+1
| | | | Should hopefully not break anything :).
* Fixed #472: Adjusting CMakeLists.txt (#582)wilson chen2020-05-101-0/+4
| | | Add REQUIRED to FIND_PACKAGE
* Update cmake min version to 3.7willson-chen2019-11-062-487/+0
|
* Fix #533: Remove cmake moduleswillson-chen2019-11-043-312/+0
| | | | FindFreetype.cmake, FindPNG.cmake and FindJPEG, have been the cmake standard modules since cmake v2.6.
* FindLIQ.cmake: delete libimagequant source code download logicwillson-chen2019-11-041-31/+5
| | | | | | | | | | | | * FindLIQ.cmake: add comment of LIQ_BUILD which is used in CMakeLists.txt And fixed some indent error. * FindLIQ.cmake: delete download libimagequant source code logic. * And delete the LIQ_BUILD logic in CMakeLists.txt correspondingly. * Fixed some indent errors. * FindLIQ.cmake: Delete libimagequant download path
* Fix some cmake modules typoswillson-chen2019-11-032-4/+3
|
* Fix #539: Add RAQM support for cmakewillson-chen2019-11-021-0/+69
| | | | | * Add `ENABLE_RAQM` option to CMakeLists.txt * Add cmake module FindRAQM.cmake
* CMakeLists.txt: Exclude libm dependency under winwillson-chen2019-10-261-1/+5
| | | | * CMakeLists.txt: Exclude libm dependency under win * CMakeLists.txt: Move win32/m logic into cmake/modules/gd.cmake
* cmake: update FindFreetype moduleMike Frysinger2019-02-091-51/+93
| | | | This pulls some fixes from upstream cmake.
* cmake: update FindPNG module #475Mike Frysinger2019-02-091-1/+4
| | | | | This pulls in a minor change from upstream cmake to support libpng versions 1.6. Fixes #475.
* Remove HAVE_STDLIB_HPeter Kokot2018-09-081-1/+0
| | | | | | | | | | | | The C89 and later standard defines the `<stdlib.h>` header as part of the standard headers [1] and on current systems it is always present and the `HAVE_STDLIB_H` symbol can be removed. Also Autoconf suggests doing this and relying on C89 or above [2] and [3]. [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4 [3] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
* Remove HAVE_STRING_HPeter Kokot2018-09-081-1/+0
| | | | | | | | | | | | The C89 and later standard defines the `<string.h>` header as part of the standard headers [1] and on current systems it is always present and the `HAVE_STRING_H` symbol can be removed. Also Autoconf suggests doing this and relying on C89 or above [2] and [3]. [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4 [3] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
* Remove HAVE_STDDEF_HPeter Kokot2018-09-061-1/+0
| | | | | | | | | | | | | | The `<stddef.h>` header file is part of the standard C89 headers [1] and on current systems there is no need to manually check if header is present anymore. Since the libgd requires at least C89 or greater, the `HAVE_STDDEF_H` symbol defined by Autoconf in configure.ac [2], and Cmake build system files can be removed and simplifed. Refs: [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
* Remove HAVE_LIMITS_HPeter Kokot2018-09-061-1/+0
| | | | | | | | | | | | | | The `<limits.h>` header file is part of the standard C89 headers [1] and on current systems there is no need to manually check if header is present anymore. Since the libgd requires at least C89 or greater, the `HAVE_LIMITS_H` symbol defined by Autoconf in configure.ac [2], and Cmake build system files can be removed and simplifed. Refs: [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
* Remove HAVE_ERRNO_HPeter Kokot2018-09-051-1/+0
| | | | | | | | | | | | | | The `<errno.h>` header file is part of the standard C89 headers [1] and on older systems there needed to be also a manual check if header is present. Since libgd requires at least C89 or greater, the `HAVE_ERRNO_H` symbol defined by Autoconf in configure.ac [2], and Cmake build system files can be removed and simplifed. Refs: [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.3 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
* Remove Git ident attributesPeter Kokot2018-06-271-2/+0
| | | | | | | | Git ident attributes were in most cases utilized with SVN and keywords substitutions, where $Id$ were replaced with certain revision from the repository. In Git this functionality is different. Each $Id$ needs to be defined in .gitattributes file to be effective. This patch removes unused and outdated attributes.
* clean up trailing whitespace/newlinesMike Frysinger2018-06-2113-63/+62
| | | | | This is preparation for adding some linting checks for new commits from people. Shouldn't be any functional changes here (tests still pass!).
* convert all files to native line encodingsMike Frysinger2018-06-211-92/+92
| | | | | | A bunch of these files were committed with Windows line encodings. Strip all those ^M gremlins out as people working on Windows can use git's autocrlf setting to convert back and forth as needed.
* Fix CMake configuration for fontconfigChristoph M. Becker2016-08-271-1/+1
| | | | | | ftheader.h is unlikely to be found in include/freetype2/freetype/config/, but rather in include/freetype2/config/. We also re-enable the freetype/bug00132 test case for CMake, as it's also enabled for autotools.
* cmake: add distclean targetMike Frysinger2016-07-211-0/+46
| | | | | | There's no way to properly/fully clean a cmake build when it's configured in-tree because they only really want to support out-of-tree builds. Add a custom script to handle this instead.
* libimagequant: fix integrationMike Frysinger2016-05-181-2/+2
| | | | | | | | | | | The symbol was being set up in cmake but not on the autotools side. Clean this up to be like other external libraries. We need to pull in some openmp logic as it's not uncommon for the lib to be built with openmp support. When we test for it, we need to do so with openmp flags. Fixes #137.
* configure/cmake: unify header checks and config.h generationMike Frysinger2016-05-171-0/+3
| | | | | Rather than hand maintain config.h.cmake (which is already out of date), re-use the autogenerated config.h from autoheader.
* cmake: update build files to match autotools moreMike Frysinger2016-05-141-38/+10
| | | | | | | Clean up redundant header logic and focus on what we actually care about: whether specific headers exist. Update the program list to omit programs when required libs are not found.
* tests: unify cmake test code into a single macroMike Frysinger2016-04-301-0/+12
| | | | | | | | | This makes the test code a lot easier to manage rather than copying & pasting the same boiler plate multiple times. Also take the opportunity to add a common prefix to each test name so we don't get collisions between subdirs if a test happens to use the same exact name.
* fix CMake error when ENABLE_WEBPWangkun2015-05-071-34/+31
|
* Add libiconv support to CMake filesNathanael Jones2014-10-021-0/+64
|
* Update copyrights in cmake/modules/Ondřej Surý2013-05-1312-613/+846
|
* Make distcheck work (fixes #54)Ondřej Surý2013-05-042-7/+0
|
* improve/fix vpx detectionPierre Joye2013-04-241-9/+9
|
* add missing cmake modulePierre Joye2013-04-211-0/+138
|
* update local find* and add missingPierre Joye2013-04-181-43/+0
|
* update local find* and add missingPierre Joye2013-04-185-80/+545
|
* init this var to avoid configure error if not foundPierre Joye2013-04-121-0/+1
|
* Merge outstanding autotools changesOndřej Surý2013-04-082-2/+1
|
* backport php's gd webp supportPierre Joye2013-04-041-0/+51
|
* - apply same CS everywherepierrejoye2013-04-031-6/+6
|
* emit position-independent code for linking it to the shared libraryTakeshi Abe2013-03-291-1/+1
| | | | | | | | | | | | | | | | | | Background: when linking libimagequant built in the source tree on my machine (Debian wheezy amd64 / gcc 4.7.2), I got the following message. > [ 36%] Building C object src/CMakeFiles/gd.dir/gdhelpers.c.o > [ 37%] Building C object src/CMakeFiles/gd.dir/gdkanji.c.o > [ 38%] Building C object src/CMakeFiles/gd.dir/gdtables.c.o > [ 39%] Building C object src/CMakeFiles/gd.dir/gdxpm.c.o > [ 40%] Building C object src/CMakeFiles/gd.dir/wbmp.c.o > Linking CXX shared library libgd.so > /usr/bin/ld: ../libimagequant/libimagequant.a(libimagequant.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC > ../libimagequant/libimagequant.a: could not read symbols: Bad value > collect2: error: ld returned 1 exit status > make[2]: *** [src/libgd.so] Error 1 > make[1]: *** [src/CMakeFiles/gd.dir/all] Error 2 > make: *** [all] Error 2
* Use cmake external project only if cmake version is new enoughKornel Lesiński2013-03-271-15/+17
| | | | | --HG-- extra : rebase_source : 13014b78f6d6e58279ada75bd3d4ed009158b183
* fix out-of-source buildTakeshi Abe2013-03-271-2/+2
|
* Download libimagequant in cmakefile if neededKornel Lesiński2013-03-251-0/+57
| | | | | | | --HG-- branch : liq extra : source : de3e993342bc3d4eefe4b638143a7657e0aafe62 extra : histedit_source : 961d951975c5df5b9da5848ce2b04777a2156890%2C12013ded8ac6e49f8af6e757daa1aad8299d3e65