diff chp.pro @ 550:7ef7fa385d8e

Symbol export fixes
author Chris Cannam
date Sat, 16 Feb 2019 09:38:47 +0000
parents 702a70e48ca9
children 91e91fd8e9c0
line wrap: on
line diff
--- a/chp.pro	Fri Feb 15 22:01:04 2019 +0000
+++ b/chp.pro	Sat Feb 16 09:38:47 2019 +0000
@@ -8,15 +8,26 @@
     include(noconfig.pri)
 }
 
-INCLUDEPATH += vamp-plugin-sdk
-
-## !!! + vampGetPluginDescriptor export
-
 CONFIG -= qt
 CONFIG += plugin release warn_on
 
 TARGET = chp
 
+INCLUDEPATH += vamp-plugin-sdk
+
+win32-msvc* {
+    LIBS += -EXPORT:vampGetPluginDescriptor
+}
+win32-g++* {
+    LIBS += -Wl,--version-script=pyin/vamp-plugin.map
+}
+linux* {
+    LIBS += -Wl,--version-script=pyin/vamp-plugin.map
+}
+macx* {
+    LIBS += -export_symbols_list pyin/vamp-plugin.list
+}
+
 SOURCES += \
     chp/ConstrainedHarmonicPeak.cpp \
     chp/plugins.cpp \