Commit 47f9273f authored by Jens Georg's avatar Jens Georg

meson: Only add unity as a dependency if found

parent af1125c2
......@@ -56,7 +56,9 @@ libraw = dependency('libraw', version : '>= 0.13.2')
libexif = dependency('libexif', version : '>= 0.6.16')
unity = dependency('unity', required : false)
unity_available = false
if unity.found() and get_option('enable-unity-support')
unity_available = true
add_global_arguments(['--define=UNITY_SUPPORT'], language : 'vala')
endif
......
......@@ -11,6 +11,14 @@ sw_graphics_processor = static_library('shotwell-graphics-processor',
vala_args : '--disable-assert',
install : false)
shotwell_deps = [gio, gee, sqlite, gtk, sqlite, posix, gphoto2,
gstreamer_pbu, gio_unix, gudev, gexiv2, gmodule,
libraw, libexif, sw_plugin]
if unity_available
shotwell_deps += [unity]
endif
executable('shotwell',
['unit/Unit.vala',
'util/Util.vala',
......@@ -202,9 +210,7 @@ executable('shotwell',
'.unitize/_Library_unitize_entry.vala',
'.unitize/_Direct_unitize_entry.vala'] + shotwell_resources,
include_directories : vapi_incdir,
dependencies : [gio, gee, sqlite, gtk, sqlite, posix, gphoto2,
gstreamer_pbu, gio_unix, gudev, gexiv2, gmodule,
libraw, libexif, sw_plugin, unity],
dependencies : shotwell_deps,
vala_args : ['--pkg', 'libgphoto2',
'--pkg', 'libraw',
'--pkg', 'libexif',
......
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