1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-06-30 22:54:23 +00:00

windows: build needs shlwapi

* PathFindExtension() needs shlwapi DLL to build on Windows.
  shlwapi only is defined on windows platform.
This commit is contained in:
Vincent Torri 2020-12-06 11:07:08 +01:00 committed by Germán Poo-Caamaño
parent dc631aa511
commit 87ffebe573

View File

@ -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,
)