1 |
if HAVE_VST |
2 |
|
3 |
BUILT_SOURCES = vstsdk |
4 |
|
5 |
clean-local: $(CLEAN_MAC) |
6 |
$(RM) -r vstsdk |
7 |
|
8 |
# create links to vst sdk so make doesn't get confused by spaces in path |
9 |
vstsdk: |
10 |
mkdir -p vstsdk/pluginterfaces vstsdk/public.sdk/source |
11 |
ln -s "$(VSTSDK_DIR)"/pluginterfaces/vst2.x vstsdk/pluginterfaces/vst2.x |
12 |
ln -s "$(VSTSDK_DIR)"/public.sdk/source/vst2.x vstsdk/public.sdk/source |
13 |
|
14 |
plugindir = $(libdir)/vst |
15 |
plugin_LTLIBRARIES = LinuxSampler.la |
16 |
LinuxSampler_la_CPPFLAGS = -Ivstsdk -Ivstsdk/public.sdk/source/vst2.x \ |
17 |
$(GIG_CFLAGS) $(SQLITE3_CFLAGS) |
18 |
|
19 |
LinuxSampler_la_SOURCES = PluginVst.cpp PluginVst.h |
20 |
nodist_LinuxSampler_la_SOURCES = \ |
21 |
vstsdk/public.sdk/source/vst2.x/audioeffectx.cpp \ |
22 |
vstsdk/public.sdk/source/vst2.x/audioeffect.cpp \ |
23 |
vstsdk/public.sdk/source/vst2.x/vstplugmain.cpp |
24 |
|
25 |
LinuxSampler_la_LDFLAGS = -module -avoid-version -no-undefined |
26 |
LinuxSampler_la_LIBADD = $(top_builddir)/src/liblinuxsampler.la |
27 |
|
28 |
if HAVE_WINDOWS |
29 |
LinuxSampler_la_LDFLAGS += -Wl,$(srcdir)/PluginVst.def -Wl,-s |
30 |
LinuxSampler_la_LIBADD += -lws2_32 |
31 |
else |
32 |
LinuxSampler_la_CPPFLAGS += -D__cdecl= -DDATADIR=\""$(datadir)"\" |
33 |
if LINUX |
34 |
LinuxSampler_la_LDFLAGS += -Wl,--defsym -Wl,main=VSTPluginMain -Wl,-s |
35 |
endif |
36 |
endif |
37 |
|
38 |
if MAC |
39 |
all-local: LinuxSampler.vst |
40 |
|
41 |
LinuxSampler.vst: LinuxSampler.la $(srcdir)/Info.plist $(srcdir)/PkgInfo |
42 |
mkdir -p LinuxSampler.vst/Contents/MacOS |
43 |
cp $(srcdir)/Info.plist LinuxSampler.vst/Contents |
44 |
cp $(srcdir)/PkgInfo LinuxSampler.vst/Contents |
45 |
if test -f .libs/LinuxSampler.so ; then cp .libs/LinuxSampler.so LinuxSampler.vst/Contents/MacOS/LinuxSampler ; fi |
46 |
@touch $@ |
47 |
|
48 |
CLEAN_MAC = clean-bundle |
49 |
|
50 |
clean-bundle: |
51 |
rm -rf LinuxSampler.vst |
52 |
|
53 |
install-exec-hook: |
54 |
if mkdir -p $(MAC_PLUGIN_INSTALL_DIR)/VST && \ |
55 |
test -w $(MAC_PLUGIN_INSTALL_DIR)/VST ; then \ |
56 |
cp -r LinuxSampler.vst $(MAC_PLUGIN_INSTALL_DIR)/VST/ ; \ |
57 |
if test -n "$(INSTALL_STRIP_FLAG)" ; then $(STRIP) -x $(MAC_PLUGIN_INSTALL_DIR)/VST/LinuxSampler.vst/Contents/MacOS/LinuxSampler ; fi ; fi |
58 |
|
59 |
uninstall-hook: |
60 |
rm -rf $(MAC_PLUGIN_INSTALL_DIR)/VST/LinuxSampler.vst |
61 |
endif |
62 |
|
63 |
endif |
64 |
|
65 |
EXTRA_DIST = PluginVst.def PkgInfo Info.plist |