mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
class Plugin (a subclass of QgisPlugin) class PluginGuiBase (supplied as a simple qdialog ui) class PluginGui (the subclass of PluginGuiBase) The only thing the user would need to change in the makefile is the name of the .so so you just copy the plugin template dir to a new dir under plugins, change the .so name in the makefile add the plugin dir the configure.in and the plugin dir makefile. I will be adding a bash script file soon that automates the above process. This template development is in progress. git-svn-id: http://svn.osgeo.org/qgis/trunk@881 c8812cc2-4d05-0410-92ff-de0c093fc19c
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
|
|
#
|
|
# This file is free software; as a special exception the author gives
|
|
# unlimited permission to copy and/or distribute it, with or without
|
|
# modifications, as long as this notice is preserved.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
#
|
|
# $Id$
|
|
|
|
plugindir = ${pkglibdir}
|
|
#[pluginname] below to be replaced with the name of the plugin
|
|
plugin_LTLIBRARIES = libp[pluginname]lugin.la
|
|
|
|
%.moc.cpp: %.h
|
|
$(MOC) -o $@ $<
|
|
|
|
%.h: %.ui
|
|
$(UIC) -o $@ $<
|
|
|
|
%.cpp: %.ui
|
|
$(UIC) -o $@ -impl $*.h $<
|
|
|
|
lib[pluginname]plugin_la_SOURCES = plugin.cpp \
|
|
plugin.h \
|
|
plugingui.cpp \
|
|
plugingui.h \
|
|
../../src/qgsmaplayer.cpp\
|
|
../../src/qgsrasterlayer.cpp\
|
|
../../src/qgsvectorlayer.cpp\
|
|
$(plugin_UI)\
|
|
$(plugin_MOC)
|
|
|
|
plugin_MOC = plugin.moc.cpp \
|
|
../../src/qgsmaplayer.moc.cpp \
|
|
../../src/qgsrasterlayer.moc.cpp \
|
|
../../src/qgsvectorlayer.moc.cpp \
|
|
plugingui.moc.cpp \
|
|
pluginguibase.moc.cpp
|
|
|
|
plugin_UI = pluginguibase.h \
|
|
pluginguibase.cpp
|
|
|
|
plugin_UIC = pluginguibase.ui
|
|
|
|
# UI dependencies
|
|
pluginguibase.cpp: pluginguibase.h pluginguibase.ui
|
|
|
|
BUILT_SOURCES = $(plugin_MOC) $(plugin_UI)
|
|
|
|
AM_CXXFLAGS := $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS)
|
|
|
|
lib[pluginname]plugin_la_LIBADD = $(QT_LDADD) -
|
|
lib[pluginname]plugin_la_LDFLAGS = -avoid-version -module
|
|
|
|
EXTRA_DIST = $(plugin_UIC) icon.xpm
|
|
|