1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#This is the include file to add to your plugins project
TEMPLATE = lib
CONFIG *= dll plugin
# include script for auto generate files
greaterThan(QT_MAJOR_VERSION, 4):include( $${PWD}/../monkey/autoGenerateFile.pri )
# set plugin name define
isEmpty( TARGET ) {
error( "You must define TARGET for your plugin." )
} else {
greaterThan(QT_MAJOR_VERSION, 4) {
DEFINES *= "PLUGIN_JSON=\"\\\"$${OUT_PWD}/$${TARGET}.json\\\"\""
autoGenerateFile( $${PWD}/qt5_plugin.json.in, $${OUT_PWD}/$${TARGET}.json )
}
DEFINES *= "PLUGIN_NAME=\"\\\"$${TARGET}\\\"\""
}
# include config file
include( $${PWD}/../config.pri )
# include monkey framework
include( $${PACKAGE_PWD}/monkey/monkey.pri )
# include scintilla framework
include( $${PACKAGE_PWD}/qscintilla/qscintilla.pri )
# include fresh framework
include( $${PACKAGE_PWD}/fresh/fresh.pri )
# include qCtagsSense framework
include( $${PACKAGE_PWD}/qCtagsSense/qCtagsSense.pri )
mac:MONKEY_PLUGINS_DIR = $${PACKAGE_DESTDIR}/$${PACKAGE_TARGET}.app/Contents/plugins
else:unix|win32:MONKEY_PLUGINS_DIR = $${PACKAGE_DESTDIR}/plugins
mac {
*-*g++* {
LIBS *= -Wl,-undefined,dynamic_lookup
} else:*-*clang* {
LIBS *= -Wl,-undefined,dynamic_lookup
}
}
# ubuntu hardy/debian fix
unix:!mac:QMAKE_LFLAGS -= -Wl,--no-undefined
win32:QMAKE_LIBDIR *= $${PACKAGE_DESTDIR}
setTemporaryDirectories( $${PACKAGE_BUILD_PATH}/plugins )
|