[evince] windows: build needs shlwapi



commit 87ffebe57398a762933b68f5f750b09848af7262
Author: Vincent Torri <vincent torri gmail com>
Date:   Sun Dec 6 11:07:08 2020 +0100

    windows: build needs shlwapi
    
    * PathFindExtension() needs shlwapi DLL to build on Windows.
      shlwapi only is defined on windows platform.

 cut-n-paste/synctex/meson.build | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/cut-n-paste/synctex/meson.build b/cut-n-paste/synctex/meson.build
index ed5a235d..360a4cf3 100644
--- a/cut-n-paste/synctex/meson.build
+++ b/cut-n-paste/synctex/meson.build
@@ -10,7 +10,15 @@ libsynctex = static_library(
   c_args: '-DSYNCTEX_VERBOSE=0',
 )
 
+# for PathFindExtension
+if host_machine.system() == 'windows'
+  shlwapi = cc.find_library('shlwapi')
+else
+  shlwapi = []
+endif
+
 synctex_dep = declare_dependency(
   include_directories: include_directories('.'),
+  dependencies: shlwapi,
   link_with: libsynctex,
 )


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]