Skip to content

Commit

Permalink
CMakeLists.txt: Indicate if APNG support is available.
Browse files Browse the repository at this point in the history
Note that APNG s loaded using dlopen(), so even if it isn't available
at compile-time, it might be available at runtime.
  • Loading branch information
GerbilSoft committed Jan 11, 2025
1 parent b41b737 commit ee2ae12
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,20 @@ ELSE(ENABLE_DECRYPTION)
SET(ENABLE_DECRYPTION_MSG "Disabled")
ENDIF(ENABLE_DECRYPTION)

IF(HAVE_PNG)
IF(USE_INTERNAL_PNG)
SET(HAVE_PNG_APNG_MSG "Yes (bundled)")
ELSE(USE_INTERNAL_PNG)
IF(HAVE_PNG_APNG)
SET(HAVE_PNG_APNG_MSG "Yes (system)")
ELSE(HAVE_PNG_APNG)
SET(HAVE_PNG_APNG_MSG "No (system)")
ENDIF(HAVE_PNG_APNG)
ENDIF(USE_INTERNAL_PNG)
ELSE(HAVE_PNG)
SET(HAVE_PNG_APNG_MSG "No (library not found?)")
ENDIF(HAVE_PNG)

IF(ENABLE_XML)
IF(USE_INTERNAL_XML)
SET(ENABLE_XML_MSG "Enabled (bundled)")
Expand Down Expand Up @@ -343,6 +357,7 @@ Build Summary:
- libromdata is built as: ${LIBROMDATA_LIB_TYPE}
- Security mechanism: ${SECURITY_MECHANISM}
- Decryption functionality: ${ENABLE_DECRYPTION_MSG}
- APNG support: ${HAVE_PNG_APNG_MSG}
- XML parsing: ${ENABLE_XML_MSG}
- PVRTC decoder: ${ENABLE_PVRTC_MSG}
- ZSTD decompression: ${ENABLE_ZSTD_MSG}
Expand Down

0 comments on commit ee2ae12

Please sign in to comment.