-
-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -395,9 +395,18 @@ endif() | |||||||
if (LIBSHARPYUV_FOUND) | ||||||||
list(APPEND REQUIRES_PRIVATE "libsharpyuv") | ||||||||
endif() | ||||||||
if (WITH_DEFLATE_HEADER_COMPRESSION) | ||||||||
if (WITH_DEFLATE_HEADER_COMPRESSION OR WITH_UNCOMPRESSED_CODEC) | ||||||||
list(APPEND REQUIRES_PRIVATE "zlib") | ||||||||
endif() | ||||||||
if (WITH_UNCOMPRESSED_CODEC) | ||||||||
find_package(Brotli) | ||||||||
if (Brotli_FOUND) | ||||||||
message("Brotli found") | ||||||||
list(APPEND REQUIRES_PRIVATE "libbrotli") | ||||||||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
farindk
Contributor
|
libfind_pkg_check_modules(AOM_PKGCONF aom) |
libheif/cmake/modules/FindDAV1D.cmake
Line 2 in 66bdcdc
libfind_pkg_check_modules(DAV1D_PKGCONF dav1d) |
libfind_pkg_check_modules(LIBDE265_PKGCONF libde265) |
etc.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
bradh
Jul 12, 2024
Author
Contributor
I finally get it. Output for users, not input for build time dependencies.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
include(FindPackageHandleStandardArgs) | ||
|
||
find_path(BROTLI_DEC_INCLUDE_DIR "brotli/decode.h") | ||
find_path(BROTLI_ENC_INCLUDE_DIR "brotli/encode.h") | ||
|
||
find_library(BROTLI_COMMON_LIB NAMES brotlicommon) | ||
find_library(BROTLI_DEC_LIB NAMES brotlidec) | ||
find_library(BROTLI_ENC_LIB NAMES brotlienc) | ||
|
||
find_package_handle_standard_args(Brotli | ||
FOUND_VAR | ||
Brotli_FOUND | ||
REQUIRED_VARS | ||
BROTLI_COMMON_LIB | ||
BROTLI_DEC_INCLUDE_DIR | ||
BROTLI_DEC_LIB | ||
BROTLI_ENC_INCLUDE_DIR | ||
BROTLI_ENC_LIB | ||
FAIL_MESSAGE | ||
"Did not find Brotli" | ||
) | ||
|
||
|
||
set(HAVE_BROTLI ${Brotli_FOUND}) | ||
set(BROTLI_INCLUDE_DIRS ${BROTLI_DEC_INCLUDE_DIR} ${BROTLI_ENC_INCLUDE_DIR}) | ||
set(BROTLI_LIBS "${BROTLICOMMON_LIBRARY}" "${BROTLI_DEC_LIB}" "${BROTLI_ENC_LIB}") |
It look like this should be
libbrotlidec
explicitly, as only thebrotli/decode.h
is currently being used AFAICT.libbrotlidec
in turn depends onlibbrotlicommon
already (as doeslibbrotlienc
).There is no
libbrotli
.pc file, so this is actually an error.