METASOURCES = AUTO

INCLUDES = $(KIPI_PLUGINS_COMMON_INCLUDE) $(LIBKIPI_CFLAGS) \
	   $(LIBKDCRAW_CFLAGS) $(all_includes)

# Install this plugin in the KDE modules directory
kde_module_LTLIBRARIES = kipiplugin_slideshow.la

kipiplugin_slideshow_la_DEPENDENCIES = $(LIBKIPI_LIBS_DEP) $(LIBKDCRAW_LIBS_DEP) 

kipiplugin_slideshow_la_SOURCES = listimageitems.cpp plugin_slideshow.cpp \
	slideshow.cpp slideshowconfig.cpp slideshowconfigbase.ui slideshowgl.cpp \
	slideshowloader.cpp toolbar.cpp imageloadthread.cpp kbeffect.cpp screenproperties.cpp \
	slideshowkb.cpp

#kipiplugin_slideshow_la_LIBADD = -ltdefx  $(GL_LIBS) $(LIBKIPI_LIBS) $(LIB_TDEUI) $(LIB_TDECORE) $(LIB_TQT)
kipiplugin_slideshow_la_LIBADD = -ltdefx -lXrandr $(GL_LIBS) $(LIBKIPI_LIBS) $(LIBKDCRAW_LIBS)  \
	                         $(LIB_TDEUI) $(LIB_TDECORE) $(LIB_TDEIO) $(LIB_TQT)

kipiplugin_slideshow_la_LDFLAGS = $(KIPI_PLUGINS_COMMON_LDFLAGS) -module $(KDE_PLUGIN) $(all_libraries) -lkipiplugins

kde_services_DATA = kipiplugin_slideshow.desktop

kipiplugin_slideshowicondir = $(kde_datadir)/kipiplugin_slideshow/icons
kipiplugin_slideshowicon_ICON = AUTO

messages: rc.cpp
	$(XGETTEXT) *.cpp *.h -o $(podir)/kipiplugin_slideshow.pot


