png_loader meson: Remove dependency check using find_library()
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 22 Oct 2021 05:42:33 +0000 (14:42 +0900)
committerHermet Park <chuneon.park@samsung.com>
Tue, 26 Oct 2021 03:55:59 +0000 (12:55 +0900)
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.

src/loaders/external_png/meson.build

index ef28b4a..c188b9a 100644 (file)
@@ -5,10 +5,6 @@ source_file = [
 
 png_dep = dependency('libpng', required: false)
 
-if not png_dep.found()
-    png_dep = meson.get_compiler('cpp').find_library('libpng')
-endif
-
 if png_dep.found()
     subloader_dep += [declare_dependency(
         include_directories : include_directories('.'),