Commit Graph

74 Commits (28ecfe77c817aff8ce56422d3e4e8533a281bc76)

Author SHA1 Message Date
wilson chen 28ecfe77c8
fix #303: gdlib.pc: use Requires instead of Libs (#537) 2020-06-18 14:55:32 +08:00
wilson chen 450fd2e843
Fixed #472: Adjusting CMakeLists.txt (#582)
Add REQUIRED to FIND_PACKAGE
2020-05-10 22:41:14 +08:00
willson-chen 2ba27b5db3 Add REQUIRED to FIND_PACKAGE(ZLIB) 2020-05-07 23:55:01 -04:00
willson-chen 78b1f2bdf3 CMakeLists.txt: zlib is enabled implicitly
zlib is enabled only when ENABLE_PNG or ENABLE_GD_FORMATS is on.
2020-05-07 23:55:01 -04:00
Rosen Penev f437a2243e
cmake: remove required host includes (#617)
This breaks cross-compilation. More info:
https://github.com/openwrt/packages/pull/10079
2020-03-31 19:22:39 +08:00
willson-chen 3b89ca6766 Fix #164: update doc files install directory in CMakeLists.txt (#536)
Change install directory from 'share/docs' to 'share/doc/gd-<major>.<minor>'.
2019-11-14 02:25:49 -05:00
willson-chen 4cb9825f32 Update cmake min version to 3.7 2019-11-06 13:23:03 -08:00
willson-chen fbc8833e99 FindLIQ.cmake: delete libimagequant source code download logic
* 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
2019-11-04 23:48:27 -08:00
willson-chen ac7118680d Fix #539: Add RAQM support for cmake
* Add `ENABLE_RAQM` option to CMakeLists.txt
* Add cmake module FindRAQM.cmake
2019-11-02 00:59:43 -06:00
willson-chen 6049895bf3 CMakeLists.txt: set cpack vendor and version dynamically 2019-10-26 22:36:51 -07:00
Mike Frysinger 820033c152 cmake: drop old CMP0017 policy
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.
2019-10-26 19:11:05 -04:00
Peter Kokot 01c59d840b Remove Git ident attributes
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.
2018-06-27 02:04:37 +02:00
Mike Frysinger fd06f7f83c clean up trailing whitespace/newlines
This is preparation for adding some linting checks for new commits from
people.  Shouldn't be any functional changes here (tests still pass!).
2018-06-21 22:47:42 -04:00
Mike Frysinger 14b8020dda make gd/gd2 image formats optional #428
We still enable them by default, but we'll probably flip them off
in the next major release series.
2018-01-30 17:58:44 -05:00
Mike Frysinger 5ebbd50cff cmake: add soname info to libgd.so
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.
2016-11-10 09:09:14 -05:00
Mike Frysinger 7c6c8801d9 cmake: use getver.pl for version fields like autotools
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.
2016-11-10 09:09:14 -05:00
Mike Frysinger 5090a9ebf7 cmake: allow static libs to be disabled
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.
2016-07-22 15:09:04 +05:30
Mike Frysinger 1e9d800842 cmake: add distclean target
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.
2016-07-21 21:40:56 +05:30
Mike Frysinger c9a4a85f38 libimagequant: fix integration
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.
2016-05-18 03:03:50 -04:00
Mike Frysinger adc8598dcb tests: unify cmake test code into a single macro
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.
2016-04-30 21:02:45 -04:00
Leo Yang 7147b646f4 Make BUILD_SHARED_LIBS configurable
As previously build both shared and static if BUILD_SHARED_LIBS is ON.
Otherwise build static only.
2015-08-27 13:11:37 -04:00
Wangkun 917fa11bfb fix CMake error when ENABLE_WEBP 2015-05-07 17:48:37 +08:00
Pierre Joye 0e9c4e005d master is now 2.2.0-dev 2015-01-15 02:28:23 +01:00
Pierre Joye 06b2e4f32f back to dev 2015-01-15 01:18:07 +01:00
Pierre Joye 4e6689946f update version 2015-01-14 03:42:53 +01:00
Nathanael Jones 40c6129986 Normalize static lib name to libgd.a on *nix and libgd_static.lib on windows. 2015-01-07 01:55:53 -05:00
Nathanael Jones 07c3fde37e Drop -m32 definition on MINGW; prevents a 64-bit build from occurring. 2015-01-07 01:39:10 -05:00
Nathanael Jones f82b371418 Add libiconv support to CMake files 2014-10-02 14:59:29 -04:00
Pierre Joye a0f58c6abf fix #81, cmake_minimum_required must be the 1st line in 2.8+ 2013-07-14 13:19:13 +02:00
Pierre Joye 4e6b784901 fix #58, install error 2013-06-11 14:01:01 +02:00
Ondřej Surý b22f9885ae Define version just once using m4_define and bump version to 2.1.0-alpha1 2013-05-13 16:34:09 +02:00
Ondřej Surý 9d20d61bf0 Add C99 inttypes support to gd.c 2013-05-02 09:30:37 +02:00
Pierre Joye fc645c765e fix run tests with shared lib build 2013-04-24 08:35:51 +02:00
Pierre Joye 843e64bd22 disable new policy for local modules 2013-04-24 07:51:41 +02:00
Takeshi Abe 18a7c356e8 drop .hgignore 2013-04-24 09:41:09 +09:00
Ondřej Surý 302d124c9b Remove duplicate -DBGDWIN32 2013-04-23 05:35:52 +02:00
Pierre Joye 084567917e generate file in src/ to avoid bad include 2013-04-21 14:26:51 +02:00
Pierre Joye f4ab220d7c Merge branch 'master' of https://bitbucket.org/libgd/gd-libgd 2013-04-21 00:14:55 +02:00
Pierre Joye 965eced8a0 generate in src/ somehow buggy before 2013-04-21 00:14:06 +02:00
Takeshi Abe 21da3158b7 fix CMake buid with freetype
This should follow bdf7aa025b
2013-04-20 08:14:37 +09:00
Pierre Joye 706c0da6c0 Merge branch 'master' of https://bitbucket.org/libgd/gd-libgd 2013-04-12 00:36:57 +02:00
Pierre Joye b4ca453b57 remove debug msg, ignore .gitinore, add docs and license 2013-04-12 00:35:41 +02:00
Takeshi Abe 6a93f8e362 WBMP support is always available 2013-04-11 19:05:30 +09:00
Marcin Wojdyr 216e1f35bd CMakeLists.txt: fixed copy/paste mistake (PNG_INCLUDE_DIR/ZLIB_INCLUDE_DIR) 2013-04-05 19:25:31 +01:00
Pierre Joye d8e19af742 backport php's gd filter 2013-04-05 01:05:36 +02:00
Pierre Joye 0c21e2cfc1 backport php's gd webp support 2013-04-04 22:24:57 +02:00
Pierre Joye 6007934aa4 fix win build with cmake 2013-04-04 16:44:55 +02:00
Marcin Wojdyr 01f7bda974 CMakeLists.txt: removed 3 duplicated FIND_PACKAGE() commands.
In case of Freetype and XPM calling FIND_PACKAGE() outside of conditional
made options ENABLE_FREETYPE and ENABLE_XPM not working.
2013-04-03 15:50:20 +01:00
Kornel Lesiński cfa23367ad Download libimagequant in cmakefile if needed
--HG--
branch : liq
extra : source : de3e993342bc3d4eefe4b638143a7657e0aafe62
extra : histedit_source : 961d951975c5df5b9da5848ce2b04777a2156890%2C12013ded8ac6e49f8af6e757daa1aad8299d3e65
2013-03-25 23:46:54 +00:00
Takeshi Abe 048457bf74 require CMake 2.6 or later
CMake 2.4 series are no longer maintained.
2013-02-22 11:55:05 +09:00