mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-24 00:43:56 +00:00

meson's find_library() throws an error when the package cannot be found. png static library is added, so it should be passed when package is not found. Therefore, delete unnecessary find_library.
14 lines
304 B
Meson
14 lines
304 B
Meson
source_file = [
|
|
'tvgPngLoader.h',
|
|
'tvgPngLoader.cpp',
|
|
]
|
|
|
|
png_dep = dependency('libpng', required: false)
|
|
|
|
if png_dep.found()
|
|
subloader_dep += [declare_dependency(
|
|
include_directories : include_directories('.'),
|
|
dependencies : png_dep,
|
|
sources : source_file
|
|
)]
|
|
endif
|