diff pyin.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/pyin.pro	Fri Mar 06 12:53:57 2020 +0000
+++ b/pyin.pro	Fri Mar 06 13:32:45 2020 +0000
@@ -1,41 +1,18 @@
 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/pyin
 
 OBJECTS_DIR = pyin/o
 
-INCLUDEPATH += $$PWD/vamp-plugin-sdk
-
-QMAKE_CXXFLAGS -= -Werror
-
-win32-msvc* {
-    LIBS += -EXPORT:vampGetPluginDescriptor
-}
-win32-g++* {
-    LIBS += -Wl,--version-script=$$PWD/pyin/vamp-plugin.map
-}
 linux* {
     QMAKE_CXXFLAGS_RELEASE += -ffast-math
-    LIBS += -Wl,--version-script=$$PWD/pyin/vamp-plugin.map
 }
 macx* {
     QMAKE_CXXFLAGS_RELEASE += -ffast-math
-    LIBS += -exported_symbols_list $$PWD/pyin/vamp-plugin.list
 }
 
-QMAKE_POST_LINK += $$DEPLOYDIR/mark-for-signing out
-
 !win* {
     QMAKE_POST_LINK += && \
         cp pyin/pyin.cat pyin/pyin.n3 out/ && \