diff options
author | wilson chen <willson.chenwx@gmail.com> | 2020-03-28 22:29:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-28 22:29:35 +0800 |
commit | aa90da2db19e0160bf2aef56385e7a31d61dec2a (patch) | |
tree | eec97ab0a342f8d7bf1442cbf41057c1f5c958ac | |
parent | c2a29476755d59d19f0bdff558ea586e7770c98d (diff) | |
download | libgd-aa90da2db19e0160bf2aef56385e7a31d61dec2a.tar.gz |
Fix two build configure errors in tests (#616)
tests/webp/bug_double_free should depend on webp and jpeg.
tests/gdimagesquaretocircle should depend on png.
-rw-r--r-- | tests/gdimagesquaretocircle/Makemodule.am | 2 | ||||
-rw-r--r-- | tests/webp/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/webp/Makemodule.am | 5 |
3 files changed, 11 insertions, 2 deletions
diff --git a/tests/gdimagesquaretocircle/Makemodule.am b/tests/gdimagesquaretocircle/Makemodule.am index 5b30300..77b7a30 100644 --- a/tests/gdimagesquaretocircle/Makemodule.am +++ b/tests/gdimagesquaretocircle/Makemodule.am @@ -1,5 +1,7 @@ +if HAVE_LIBPNG libgd_test_programs += \ gdimagesquaretocircle/gdimagesquaretocircle +endif EXTRA_DIST += \ gdimagesquaretocircle/CMakeLists.txt \ diff --git a/tests/webp/CMakeLists.txt b/tests/webp/CMakeLists.txt index bfabf26..1d1b98f 100644 --- a/tests/webp/CMakeLists.txt +++ b/tests/webp/CMakeLists.txt @@ -1,9 +1,13 @@ IF(WEBP_FOUND) LIST(APPEND TESTS_FILES bug00111 - bug_double_free gdImageWebpEx ) +IF(JPEG_FOUND) +LIST(APPEND TESTS_FILES + bug_double_free +) +ENDIF(JPEG_FOUND) ENDIF(WEBP_FOUND) ADD_GD_TESTS() diff --git a/tests/webp/Makemodule.am b/tests/webp/Makemodule.am index 48f2a52..528edee 100644 --- a/tests/webp/Makemodule.am +++ b/tests/webp/Makemodule.am @@ -1,8 +1,11 @@ if HAVE_LIBWEBP libgd_test_programs += \ webp/bug00111 \ - webp/bug_double_free \ webp/gdImageWebpEx +if HAVE_LIBJPEG +libgd_test_programs += \ + webp/bug_double_free +endif endif EXTRA_DIST += \ |