summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Some fixes for MINGW (#828)مهدي شينون (Mehdi Chinoune)2022-04-151-4/+4
| | | | | | | | | | | | | | | | | * 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
* #788 fix bug in HEIF usage, stride is require (#801)Pierre Joye2022-01-221-2/+2
| | | fix bug #788 in HEIF usage, stride is require
* generate and use config.h from/to build dir (github user LRFLEW)Pierre Joye2021-09-101-1/+2
|
* add option to enable CMAKE_VERBOSE_MAKEFILE; enable it on MacOs for nowPierre Joye2021-08-251-0/+5
|
* add option to enable/disable CPP APIPierre Joye2021-08-221-0/+5
|
* fix else syntaxPierre Joye2021-08-211-3/+3
|
* add option to enable gcc ASAN in debug modePierre Joye2021-08-211-2/+6
|
* disable sanitizer for now, HEIF Leaks...Pierre Joye2021-08-211-1/+3
|
* add docsPierre Joye2021-08-201-0/+1
|
* add sanitize=address by default in debug and gccPierre Joye2021-08-141-1/+1
|
* Set GD_LIB to gd on mingwGregory Boyce2021-07-151-0/+1
| | | | | Setting GD_LIB to libgd on MINGW builds results in liblibgd.a and liblibgd.dll.a being built.
* getver: rewrite from perl to shell+awk #535Mike Frysinger2021-04-241-1/+1
| | | | | People are more familiar with shell than perl at this point. Fixes #535.
* AVIF support (#671)Ben Morss2021-03-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | Demand for AVIF support on the web is growing, as the word gets out about this new file format which allows higher-quality encoding at smaller sizes. Core contributors to major open-source CMSs are interested in auto-generating AVIF images! They've been simply waiting for support to appear in libgd. This PR aims to meet the growing demand, and to help bring smaller, more beautiful images to more of the web - to sites created by experienced developers and CMS users alike. This PR adds support by incorporating libavif in addition to the existing libheif support. It's generally felt that libavif has more complete support for the AVIF format. libavif is also used by the Chromium project and squoosh.app. In this PR, I've endeavored to incorporate the latest research into best practices for AVIF encoding - not just for default quantizer values, but also an algorithm for determining the number of horizontal tiles, vertical tiles, and threads. Fixes #557.
* HEIF support through libheif (#670)Martin Reboredo2021-03-021-0/+10
| | | | | | | | | | | | | | | 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.
* fix #303: gdlib.pc: use Requires instead of Libs (#537)wilson chen2020-06-181-0/+12
|
* Fixed #472: Adjusting CMakeLists.txt (#582)wilson chen2020-05-101-8/+8
| | | Add REQUIRED to FIND_PACKAGE
* Add REQUIRED to FIND_PACKAGE(ZLIB)willson-chen2020-05-071-2/+2
|
* CMakeLists.txt: zlib is enabled implicitlywillson-chen2020-05-071-2/+5
| | | | zlib is enabled only when ENABLE_PNG or ENABLE_GD_FORMATS is on.
* cmake: remove required host includes (#617)Rosen Penev2020-03-311-2/+0
| | | | This breaks cross-compilation. More info: https://github.com/openwrt/packages/pull/10079
* Fix #164: update doc files install directory in CMakeLists.txt (#536)willson-chen2019-11-141-21/+21
| | | Change install directory from 'share/docs' to 'share/doc/gd-<major>.<minor>'.
* Update cmake min version to 3.7willson-chen2019-11-061-1/+1
|
* FindLIQ.cmake: delete libimagequant source code download logicwillson-chen2019-11-041-5/+0
| | | | | | | | | | | | * 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 #539: Add RAQM support for cmakewillson-chen2019-11-021-0/+9
| | | | | * Add `ENABLE_RAQM` option to CMakeLists.txt * Add cmake module FindRAQM.cmake
* CMakeLists.txt: set cpack vendor and version dynamicallywillson-chen2019-10-261-4/+4
|
* cmake: drop old CMP0017 policyMike Frysinger2019-10-261-1/+0
| | | | | | Doesn't seem like it's really needed. Newer versions of cmake will warn when it's seen at least. Lets drop it and see if anyone notices. Fixes #525.
* Remove Git ident attributesPeter Kokot2018-06-271-1/+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-211-17/+16
| | | | | This is preparation for adding some linting checks for new commits from people. Shouldn't be any functional changes here (tests still pass!).
* make gd/gd2 image formats optional #428Mike Frysinger2018-01-301-0/+3
| | | | | We still enable them by default, but we'll probably flip them off in the next major release series.
* cmake: add soname info to libgd.soMike Frysinger2016-11-101-0/+11
| | | | | | Pull out the library versioning info out of configure and into a common script that both cmake & autotools can run. This way we have a single source of truth for the versioning info.
* cmake: use getver.pl for version fields like autotoolsMike Frysinger2016-11-101-8/+13
| | | | | We rename the vars to match configure too, but this isn't a big deal as they aren't (yet) used by the rest of the cmake code.
* cmake: allow static libs to be disabledMike Frysinger2016-07-221-1/+2
| | | | | | The standard behavior in distros nowadays is to build shared libs and omit static libs. Split the build knobs in cmake to support this. It also matches what's available with the autotools build.
* cmake: add distclean targetMike Frysinger2016-07-211-0/+2
| | | | | | 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-1/+1
| | | | | | | | | | | 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.
* tests: unify cmake test code into a single macroMike Frysinger2016-04-301-0/+2
| | | | | | | | | 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.
* Make BUILD_SHARED_LIBS configurableLeo Yang2015-08-271-2/+1
| | | | | As previously build both shared and static if BUILD_SHARED_LIBS is ON. Otherwise build static only.
* fix CMake error when ENABLE_WEBPWangkun2015-05-071-6/+5
|
* master is now 2.2.0-devPierre Joye2015-01-151-2/+2
|
* back to devPierre Joye2015-01-151-2/+2
|
* update versionPierre Joye2015-01-141-3/+3
|
* Normalize static lib name to libgd.a on *nix and libgd_static.lib on windows.Nathanael Jones2015-01-071-1/+1
|
* Drop -m32 definition on MINGW; prevents a 64-bit build from occurring.Nathanael Jones2015-01-071-1/+1
|
* Add libiconv support to CMake filesNathanael Jones2014-10-021-0/+11
|
* fix #81, cmake_minimum_required must be the 1st line in 2.8+Pierre Joye2013-07-141-1/+1
|
* fix #58, install errorPierre Joye2013-06-111-1/+23
|
* Define version just once using m4_define and bump version to 2.1.0-alpha1gd-2.1.0-alpha1Ondřej Surý2013-05-131-1/+2
|
* Add C99 inttypes support to gd.cOndřej Surý2013-05-021-0/+3
|
* fix run tests with shared lib buildPierre Joye2013-04-241-1/+20
|
* disable new policy for local modulesPierre Joye2013-04-241-0/+1
|
* drop .hgignoreTakeshi Abe2013-04-241-1/+0
|
* Remove duplicate -DBGDWIN32Ondřej Surý2013-04-231-1/+1
|