docs.kde.org
Compiling the plugin
Prev
Next

Compiling the plugin

Since we decided to use the KDE framework for compiling the plugin, we need to create a Makefile.am. It should look like this:

Example 5.5. Listing of Makefile.am

INCLUDES = $(all_includes)

kde_module_LTLIBRARIES = ksplash2k.la

ksplash2k_la_SOURCES = theme2k.cpp rotwidget.cpp
ksplash2k_la_LDFLAGS = $(all_libraries) $(KDE_RPATH)
ksplash2k_la_LIBADD = $(LIB_KDEUI) -lksplashthemes

METASOURCES = AUTO

noinst_HEADERS	= theme2k.h rotwidget.h

servicesdir = $(kde_servicesdir)
services_DATA = ksplash2k.desktop

themedir = $(kde_datadir)/ksplash/Themes/2k
theme_DATA = Theme.rc Preview.png

For more information on writing Makefile.am files for KDE, please see the KDE developers' website. The only thing of note is that we provide a default theme based on this plugin, and provide a preview image for it. As a matter of courtesy to your users, you should provide an example Theme.rc file illustrating the use of the various options.

Prev
Next
Home


docs.kde.org