diff bbc-vamp-plugins.pro @ 116:2405126aa5fe

Of course, the use of dll to build a plugin only works on Windows (where it's necessary because we have static_runtime defined), not on other platforms (where we have a lib- prefix on non-plugin libraries, and we don't have static runtime anyway). Fix and simplify with an additional qmake include file
author Chris Cannam
date Fri, 06 Mar 2020 13:32:45 +0000
parents 732a4bf233df
children
line wrap: on
line diff
--- a/bbc-vamp-plugins.pro	Fri Mar 06 12:53:57 2020 +0000
+++ b/bbc-vamp-plugins.pro	Fri Mar 06 13:32:45 2020 +0000
@@ -1,40 +1,12 @@
 
 TEMPLATE = lib
 
-exists(config.pri) {
-    include(config.pri)
-}
-
-!exists(config.pri) {
-    include(noconfig.pri)
-}
-
-CONFIG -= qt
-CONFIG += dll no_plugin_name_prefix release warn_on
+include(plugin.pri)
 
 TARGET = out/bbc-vamp-plugins
 
 OBJECTS_DIR = bbc-vamp-plugins/o
 
-INCLUDEPATH += $$PWD/vamp-plugin-sdk
-
-QMAKE_CXXFLAGS -= -Werror
-
-win32-msvc* {
-    LIBS += -EXPORT:vampGetPluginDescriptor
-}
-win32-g++* {
-    LIBS += -Wl,--version-script=$$PWD/bbc-vamp-plugins/src/vamp-plugin.map
-}
-linux* {
-    LIBS += -Wl,--version-script=$$PWD/bbc-vamp-plugins/src/vamp-plugin.map
-}
-macx* {
-    LIBS += -exported_symbols_list $$PWD/bbc-vamp-plugins/src/vamp-plugin.list
-}
-
-QMAKE_POST_LINK += $$DEPLOYDIR/mark-for-signing out
-
 !win* {
     QMAKE_POST_LINK += && \
         cp bbc-vamp-plugins/bbc-vamp-plugins.cat bbc-vamp-plugins/bbc-vamp-plugins.n3 out/ && \