view vamp-libxtract-plugins.pro @ 113:732a4bf233df

Fixes for static Windows build. In particular, plugins (which are not static) need to be built with "dll" target instead of "plugin" target
author Chris Cannam
date Fri, 06 Mar 2020 12:11:00 +0000
parents f24d8a6f1e49
children 2405126aa5fe
line wrap: on
line source

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

TARGET = out/vamp-libxtract

OBJECTS_DIR = vamp-libxtract-plugins/o

INCLUDEPATH += $$PWD/vamp-plugin-sdk $$PWD/vamp-libxtract-plugins/LibXtract

QMAKE_CXXFLAGS -= -Werror

win32-msvc* {
    DEFINES += XTRACT_FFT=1 USE_OOURA=1 NDEBUG
    LIBS += -EXPORT:vampGetPluginDescriptor
}
win32-g++* {
    DEFINES += XTRACT_FFT=1 USE_OOURA=1 NDEBUG
    LIBS += -Wl,--version-script=$$PWD/vamp-libxtract-plugins/vamp-plugin.map
}
linux* {
    DEFINES += XTRACT_FFT=1 USE_OOURA=1 NDEBUG
    LIBS += -Wl,--version-script=$$PWD/vamp-libxtract-plugins/vamp-plugin.map
}
macx* {
    DEFINES += XTRACT_FFT=1 NDEBUG
    LIBS += -exported_symbols_list $$PWD/vamp-libxtract-plugins/vamp-plugin.list -framework Accelerate
}

QMAKE_POST_LINK += $$DEPLOYDIR/mark-for-signing out

!win* {
    QMAKE_POST_LINK += && \
        cp vamp-libxtract-plugins/vamp-libxtract.cat vamp-libxtract-plugins/vamp-libxtract.n3 out/ && \
        cp vamp-libxtract-plugins/COPYING out/vamp-libxtract_COPYING.txt && \
        cp vamp-libxtract-plugins/README out/vamp-libxtract_README.txt
}

SOURCES += \
    vamp-libxtract-plugins/LibXtract/src/delta.c \
    vamp-libxtract-plugins/LibXtract/src/descriptors.c \
    vamp-libxtract-plugins/LibXtract/src/fini.c \
    vamp-libxtract-plugins/LibXtract/src/helper.c \
    vamp-libxtract-plugins/LibXtract/src/init.c \
    vamp-libxtract-plugins/LibXtract/src/libxtract.c \
    vamp-libxtract-plugins/LibXtract/src/scalar.c \
    vamp-libxtract-plugins/LibXtract/src/vector.c \
    vamp-libxtract-plugins/LibXtract/src/window.c \
    vamp-libxtract-plugins/LibXtract/src/dywapitchtrack/dywapitchtrack.c \
    vamp-libxtract-plugins/LibXtract/src/ooura/fftsg.c \
    vamp-libxtract-plugins/plugins/XtractPlugin.cpp \
    vamp-libxtract-plugins/libmain.cpp \
    vamp-plugin-sdk/src/vamp-sdk/PluginAdapter.cpp \
    vamp-plugin-sdk/src/vamp-sdk/RealTime.cpp