plugin_LTLIBRARIES += plugins/shotwell-data-imports/shotwell-data-imports.la
dist_noinst_DATA += \
	plugins/shotwell-data-imports/f-spot-24.png \
	plugins/shotwell-data-imports/org.gnome.Shotwell.Imports.gresource.xml

plugins_shotwell_data_imports_shotwell_data_imports_la_SOURCES = \
	plugins/shotwell-data-imports/FSpotDatabaseBehavior.vala \
	plugins/shotwell-data-imports/FSpotDatabaseTable.vala \
	plugins/shotwell-data-imports/FSpotDatabase.vala \
	plugins/shotwell-data-imports/FSpotImporter.vala \
	plugins/shotwell-data-imports/FSpotMetaTable.vala \
	plugins/shotwell-data-imports/FSpotPhotosTable.vala \
	plugins/shotwell-data-imports/FSpotPhotoTagsTable.vala \
	plugins/shotwell-data-imports/FSpotPhotoVersionsTable.vala \
	plugins/shotwell-data-imports/FSpotRollsTable.vala \
	plugins/shotwell-data-imports/FSpotTableBehavior.vala \
	plugins/shotwell-data-imports/FSpotTagsTable.vala \
	plugins/shotwell-data-imports/shotwell-data-imports.vala \
	plugins/shotwell-data-imports/SqliteSupport.vala \
	plugins/shotwell-data-imports/VersionNumber.vala \
	plugins/shotwell-plugin-common.vapi

nodist_plugins_shotwell_data_imports_shotwell_data_imports_la_SOURCES = \
	plugins/shotwell-data-imports/resource.c
MOSTLYCLEANFILES += plugins/shotwell-data-imports/resource.c

plugins/shotwell-data-imports/resource.c: plugins/shotwell-data-imports/org.gnome.Shotwell.Imports.gresource.xml
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(abs_top_srcdir)/plugins/shotwell-data-imports --generate $<

plugins_shotwell_data_imports_shotwell_data_imports_la_VALAFLAGS = \
	$(COMMON_VALAFLAGS) \
	--pkg gtk+-3.0 \
	--pkg libsoup-2.4 \
	--pkg gexiv2 \
	--pkg gee-0.8 \
	--pkg json-glib-1.0 \
	--pkg shotwell-plugin-dev-1.0 \
	--pkg libxml-2.0 \
	--pkg webkit2gtk-4.0 \
	--pkg sqlite3 \
	--vapidir $(abs_top_srcdir)/plugins

plugins_shotwell_data_imports_shotwell_data_imports_la_CFLAGS = \
	-DPLUGIN_RESOURCE_PATH='"/org/gnome/Shotwell/Imports"' \
	$(PLUGIN_CFLAGS) \
	$(COMMON_CFLAGS) \
	-I $(abs_top_srcdir)/plugins

plugins_shotwell_data_imports_shotwell_data_imports_la_LDFLAGS = \
	$(SHOTWELL_PLUGIN_LDFLAGS)

plugins_shotwell_data_imports_shotwell_data_imports_la_LIBADD = \
	$(IMPORT_LIBS) \
	$(top_builddir)/plugins/common/libshotwell-plugin-common.la