mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
* Added plugins.pro for compile all plugins with one .pro file
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@996 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e29b0b5b46
commit
b777d85a12
@ -0,0 +1,28 @@
|
||||
#=== this part is common (similar) for all plugin projects =====================
|
||||
TEMPLATE = lib
|
||||
CONFIG += plugin debug
|
||||
|
||||
# this is directory, where PluginInterface.h is located
|
||||
INCLUDEPATH += ../
|
||||
|
||||
# and, the result (*.so or *.dll) should appear in this directory
|
||||
DESTDIR = ../bin
|
||||
OBJECTS_DIR = temp/obj
|
||||
RCC_DIR = temp/qrc
|
||||
UI_DIR = temp/ui
|
||||
MOC_DIR = temp/moc
|
||||
|
||||
|
||||
# the name of the result file;
|
||||
TARGET = $$qtLibraryTarget(calendar_plugin)
|
||||
|
||||
HEADERS += ../PluginInterface.h \
|
||||
src/CalendarPlugin.h
|
||||
SOURCES += src/CalendarPlugin.cpp
|
||||
|
||||
#===============================================================================
|
||||
|
||||
#=== and this are definitions, specific for this program =======================
|
||||
HEADERS += src/mainwindow.h
|
||||
SOURCES += src/mainwindow.cpp
|
||||
#===============================================================================
|
8
retroshare-gui/src/gui/plugins/plugins.pro
Normal file
8
retroshare-gui/src/gui/plugins/plugins.pro
Normal file
@ -0,0 +1,8 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS += \
|
||||
calendar_plugin puzzle_plugin qcheckers_plugin qdiagram_plugin
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,58 @@
|
||||
#=== this part is common (similar) for all plugin projects =====================
|
||||
TEMPLATE = lib
|
||||
CONFIG += plugin release
|
||||
|
||||
# this is directory, where PluginInterface.h is located
|
||||
INCLUDEPATH += ../
|
||||
|
||||
# and, the result (*.so or *.dll) should appear in this directory
|
||||
DESTDIR = ../bin
|
||||
OBJECTS_DIR = temp/obj
|
||||
RCC_DIR = temp/qrc
|
||||
UI_DIR = temp/ui
|
||||
MOC_DIR = temp/moc
|
||||
|
||||
|
||||
# the name of the result file;
|
||||
TARGET = $$qtLibraryTarget(qcheckers_plugin)
|
||||
|
||||
HEADERS += ../PluginInterface.h \
|
||||
QCheckersPlugin.h
|
||||
SOURCES += QCheckersPlugin.cpp
|
||||
|
||||
#===============================================================================
|
||||
|
||||
HEADERS += pdn.h \
|
||||
checkers.h echeckers.h rcheckers.h \
|
||||
field.h toplevel.h view.h history.h board.h \
|
||||
newgamedlg.h \
|
||||
common.h \
|
||||
player.h humanplayer.h computerplayer.h
|
||||
|
||||
|
||||
SOURCES += pdn.cc \
|
||||
checkers.cc echeckers.cc rcheckers.cc \
|
||||
field.cc toplevel.cc view.cc history.cc board.cc \
|
||||
newgamedlg.cc \
|
||||
humanplayer.cc computerplayer.cc
|
||||
|
||||
RESOURCES = qcheckers.qrc
|
||||
|
||||
|
||||
#PREFIX = $$system(grep 'define PREFIX' common.h | cut -d'"' -f2)
|
||||
#SHARE_PATH = $$system(grep 'define SHARE_PATH' common.h | cut -d'"' -f2)
|
||||
|
||||
TRANSLATIONS = i18n/kcheckers_de.ts i18n/kcheckers_fr.ts
|
||||
# i18n/kcheckers_ru.ts
|
||||
|
||||
target.path = $$PREFIX/bin
|
||||
INSTALLS += target
|
||||
|
||||
|
||||
#
|
||||
# This hack is needed for i18n support.
|
||||
#
|
||||
share.path += $$PREFIX/share/kcheckers
|
||||
share.files += kcheckers.pdn COPYING AUTHORS ChangeLog README themes i18n/*
|
||||
INSTALLS += share
|
||||
|
@ -0,0 +1,50 @@
|
||||
#=== this part is common (similar) for all plugin projects =====================
|
||||
TEMPLATE = lib
|
||||
CONFIG += plugin release
|
||||
|
||||
# this is directory, where PluginInterface.h is located
|
||||
INCLUDEPATH += ../
|
||||
|
||||
# and, the result (*.so or *.dll) should appear in this directory
|
||||
DESTDIR = ../bin
|
||||
OBJECTS_DIR = temp/obj
|
||||
RCC_DIR = temp/qrc
|
||||
UI_DIR = temp/ui
|
||||
MOC_DIR = temp/moc
|
||||
|
||||
|
||||
# the name of the result file;
|
||||
TARGET = $$qtLibraryTarget(qdiagram_plugin)
|
||||
|
||||
HEADERS += ../PluginInterface.h \
|
||||
DiagramPlugin.h
|
||||
SOURCES += DiagramPlugin.cpp
|
||||
|
||||
#===============================================================================
|
||||
|
||||
|
||||
HEADERS += diagrampathitem.h \
|
||||
diagramdrawitem.h \
|
||||
mainwindow.h \
|
||||
diagramitem.h \
|
||||
diagramscene.h \
|
||||
diagramtextitem.h
|
||||
SOURCES += diagrampathitem.cpp \
|
||||
diagramdrawitem.cpp \
|
||||
mainwindow.cpp \
|
||||
diagramitem.cpp \
|
||||
diagramtextitem.cpp \
|
||||
diagramscene.cpp
|
||||
RESOURCES = qdiagram.qrc
|
||||
|
||||
# install
|
||||
target.path = $$[QT_INSTALL_EXAMPLES]/graphicsview/diagramscene
|
||||
sources.files = $$SOURCES \
|
||||
$$HEADERS \
|
||||
$$RESOURCES \
|
||||
$$FORMS \
|
||||
diagramscene.pro \
|
||||
images
|
||||
sources.path = $$[QT_INSTALL_EXAMPLES]/graphicsview/diagramscene
|
||||
INSTALLS += target \
|
||||
sources
|
Loading…
Reference in New Issue
Block a user