Mercurial > hg > vamp-plugin-pack
comparison vamp-example-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 |
comparison
equal
deleted
inserted
replaced
115:dfa9e44cdcdb | 116:2405126aa5fe |
---|---|
1 | 1 |
2 TEMPLATE = lib | 2 TEMPLATE = lib |
3 | 3 |
4 exists(config.pri) { | 4 include(plugin.pri) |
5 include(config.pri) | |
6 } | |
7 | |
8 !exists(config.pri) { | |
9 include(noconfig.pri) | |
10 } | |
11 | |
12 CONFIG -= qt | |
13 CONFIG += dll no_plugin_name_prefix release warn_on | |
14 | 5 |
15 TARGET = out/vamp-example-plugins | 6 TARGET = out/vamp-example-plugins |
16 | 7 |
17 OBJECTS_DIR = vamp-plugin-sdk/o | 8 OBJECTS_DIR = vamp-plugin-sdk/o |
18 | |
19 INCLUDEPATH += $$PWD/vamp-plugin-sdk | |
20 | |
21 QMAKE_CXXFLAGS -= -Werror | |
22 | |
23 win32-msvc* { | |
24 LIBS += -EXPORT:vampGetPluginDescriptor | |
25 } | |
26 win32-g++* { | |
27 LIBS += -Wl,--version-script=$$PWD/vamp-plugin-sdk/build/vamp-plugin.map | |
28 } | |
29 linux* { | |
30 LIBS += -Wl,--version-script=$$PWD/vamp-plugin-sdk/build/vamp-plugin.map | |
31 } | |
32 macx* { | |
33 LIBS += -exported_symbols_list $$PWD/vamp-plugin-sdk/build/vamp-plugin.list | |
34 } | |
35 | |
36 QMAKE_POST_LINK += $$DEPLOYDIR/mark-for-signing out | |
37 | 9 |
38 !win* { | 10 !win* { |
39 QMAKE_POST_LINK += && \ | 11 QMAKE_POST_LINK += && \ |
40 cp vamp-plugin-sdk/examples/vamp-example-plugins.cat vamp-plugin-sdk/examples/vamp-example-plugins.n3 out/ && \ | 12 cp vamp-plugin-sdk/examples/vamp-example-plugins.cat vamp-plugin-sdk/examples/vamp-example-plugins.n3 out/ && \ |
41 cp vamp-plugin-sdk/COPYING out/vamp-example-plugins_COPYING.txt | 13 cp vamp-plugin-sdk/COPYING out/vamp-example-plugins_COPYING.txt |