Commit 8d27748c authored by Sebastian Ramacher's avatar Sebastian Ramacher

Link external mupdf libraries if desired

parent a2ca4a09
......@@ -21,9 +21,6 @@ glib = dependency('glib-2.0')
cairo = dependency('cairo')
mupdf = cc.find_library('mupdf')
mupdfthird = cc.find_library('mupdfthird')
libjpeg = dependency('libjpeg')
libjbig2dec = cc.find_library('libjbig2dec')
libopenjp2 = dependency('libopenjp2')
build_dependencies = [
zathura,
......@@ -31,12 +28,21 @@ build_dependencies = [
glib,
cairo,
mupdf,
mupdfthird,
libjpeg,
libjbig2dec,
libopenjp2
mupdfthird
]
if get_option('link-external')
libjpeg = dependency('libjpeg')
libjbig2dec = cc.find_library('libjbig2dec')
libopenjp2 = dependency('libopenjp2')
build_dependencies += [
libjpeg,
libjbig2dec,
libopenjp2
]
endif
# defines
defines = [
'-DVERSION_MAJOR=@0@'.format(version_array[0]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment