meson build: clean up library dependency check
authorJohn Marshall <jtm.home@gmail.com>
Mon, 11 Jun 2018 08:51:27 +0000 (09:51 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sat, 25 May 2019 16:13:31 +0000 (18:13 +0200)
meson.build

index ab1d042d969e11268a67368391eee4482c49caa8..30fb035d4ac01e0c69b4776ce6ec230970cf5529 100644 (file)
@@ -281,15 +281,18 @@ else
 endif
 
 math = cc.find_library('m',   required: false)
-log  = cc.find_library('log', required: false)
+thread = dependency('threads',  required: false)
+if platform_android
+  log  = cc.find_library('log', required: false)
+else
+  log = []
+endif
 if platform_win32 
   dl = []
 else
   dl = cc.find_library('dl',  required: false)
 endif
 
-thread = dependency('threads',  required: false)
-
 
 ################################################################################
 # Build utilities