/[svn]/linuxsampler/trunk/src/hostplugins/vst/Makefile.am
ViewVC logotype

Annotation of /linuxsampler/trunk/src/hostplugins/vst/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2478 - (hide annotations) (download)
Sat Oct 19 07:52:33 2013 UTC (10 years, 6 months ago) by persson
File size: 2070 byte(s)
* fixed build error on newer MinGW
* support building with older jack versions
* support building with spaces in vst sdk path

1 persson 1777 if HAVE_VST
2    
3 persson 2478 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 persson 1777 plugindir = $(libdir)/vst
15     plugin_LTLIBRARIES = LinuxSampler.la
16 persson 2478 LinuxSampler_la_CPPFLAGS = -Ivstsdk -Ivstsdk/public.sdk/source/vst2.x \
17 persson 1923 $(GIG_CFLAGS) $(SQLITE3_CFLAGS)
18 persson 1842
19 persson 1777 LinuxSampler_la_SOURCES = PluginVst.cpp PluginVst.h
20     nodist_LinuxSampler_la_SOURCES = \
21 persson 2478 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 persson 1777
25 persson 2197 LinuxSampler_la_LDFLAGS = -module -avoid-version -no-undefined
26 persson 1777 LinuxSampler_la_LIBADD = $(top_builddir)/src/liblinuxsampler.la
27    
28     if HAVE_WINDOWS
29 persson 2197 LinuxSampler_la_LDFLAGS += -Wl,$(srcdir)/PluginVst.def -Wl,-s
30 persson 1777 LinuxSampler_la_LIBADD += -lws2_32
31     else
32 persson 2420 LinuxSampler_la_CPPFLAGS += -D__cdecl= -DDATADIR=\""$(datadir)"\"
33 persson 2197 if LINUX
34     LinuxSampler_la_LDFLAGS += -Wl,--defsym -Wl,main=VSTPluginMain -Wl,-s
35 persson 1777 endif
36 persson 2197 endif
37 persson 1777
38 persson 2197 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 persson 2478 CLEAN_MAC = clean-bundle
49    
50     clean-bundle:
51 persson 2197 rm -rf LinuxSampler.vst
52    
53     install-exec-hook:
54 persson 2203 if mkdir -p $(MAC_PLUGIN_INSTALL_DIR)/VST && \
55     test -w $(MAC_PLUGIN_INSTALL_DIR)/VST ; then \
56 persson 2208 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 persson 2203
59 persson 2197 uninstall-hook:
60 persson 2203 rm -rf $(MAC_PLUGIN_INSTALL_DIR)/VST/LinuxSampler.vst
61 persson 1777 endif
62 persson 2183
63 persson 2197 endif
64    
65     EXTRA_DIST = PluginVst.def PkgInfo Info.plist

  ViewVC Help
Powered by ViewVC