| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
The autotools framework supports this already.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
If the builder has packages in a diff location, they can specify them
globally. The webp code shouldn't be searching for it specifically.
|
|
|
| |
Add REQUIRED to FIND_PACKAGE
|
| |
|
|
|
|
| |
FindFreetype.cmake, FindPNG.cmake and FindJPEG, have been the cmake standard modules since cmake v2.6.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
| |
* Add `ENABLE_RAQM` option to CMakeLists.txt
* Add cmake module FindRAQM.cmake
|
|
|
|
| |
* CMakeLists.txt: Exclude libm dependency under win
* CMakeLists.txt: Move win32/m logic into cmake/modules/gd.cmake
|
|
|
|
| |
This pulls some fixes from upstream cmake.
|
|
|
|
|
| |
This pulls in a minor change from upstream cmake to support libpng
versions 1.6. Fixes #475.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This is preparation for adding some linting checks for new commits from
people. Shouldn't be any functional changes here (tests still pass!).
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Rather than hand maintain config.h.cmake (which is already out of date),
re-use the autogenerated config.h from autoheader.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
--HG--
extra : rebase_source : 13014b78f6d6e58279ada75bd3d4ed009158b183
|
| |
|
|
|
|
|
|
|
| |
--HG--
branch : liq
extra : source : de3e993342bc3d4eefe4b638143a7657e0aafe62
extra : histedit_source : 961d951975c5df5b9da5848ce2b04777a2156890%2C12013ded8ac6e49f8af6e757daa1aad8299d3e65
|
|
|
|
|
|
| |
from <http://freetype-gl.googlecode.com/svn-history/r110/trunk/CMakeModules/FindFontConfig.cmake>
This replaces old FindFontconfig.cmake using obsolete UsePkgConfig.
|
| |
|