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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2208 - (hide annotations) (download)
Mon Jul 18 08:18:21 2011 UTC (6 years, 5 months ago) by persson
File size: 5757 byte(s)
* Mac OS X: Makefile fix for the install-strip target

1 iliev 1846 if HAVE_AU
2    
3     plugindir = $(libdir)/au
4 persson 2197 examples_dir = $(DEVELOPER_EXTRAS_DIR)
5 iliev 1846 au_public_dir = $(examples_dir)/CoreAudio/AudioUnits/AUPublic
6     ca_public_dir = $(examples_dir)/CoreAudio/PublicUtility
7     INCLUDES = -I$(au_public_dir)/AUBase -I$(au_public_dir)/OtherBases \
8 iliev 2012 -I$(au_public_dir)/Utility -I$(ca_public_dir) $(GIG_CFLAGS) $(SQLITE3_CFLAGS) $(SNDFILE_CFLAGS)
9 iliev 1846
10 persson 2208 noinst_PROGRAMS = LinuxSamplerAU
11 iliev 1846
12     # Uncomment for debug messages.
13     #debug_messages = -DAU_DEBUG_DISPATCHER=1
14    
15 persson 2197 nodist_LinuxSamplerAU_SOURCES = $(ca_public_dir)/CAHostTimeBase.cpp \
16 iliev 1846 $(ca_public_dir)/CAHostTimeBase.h \
17     $(ca_public_dir)/CAAUMIDIMap.cpp \
18     $(ca_public_dir)/CAAUMIDIMap.h \
19     $(ca_public_dir)/CAAUMIDIMapManager.cpp \
20     $(ca_public_dir)/CAAUMIDIMapManager.h \
21     $(ca_public_dir)/CAAUParameter.cpp \
22     $(ca_public_dir)/CAAUParameter.h \
23     $(ca_public_dir)/CAAudioChannelLayout.cpp \
24     $(ca_public_dir)/CAAudioChannelLayout.h \
25     $(ca_public_dir)/CAMutex.cpp \
26     $(ca_public_dir)/CAMutex.h \
27     $(ca_public_dir)/CAStreamBasicDescription.cpp \
28     $(ca_public_dir)/CAStreamBasicDescription.h \
29     $(ca_public_dir)/CAVectorUnitTypes.h \
30     $(ca_public_dir)/CAVectorUnit.cpp \
31     $(ca_public_dir)/CAVectorUnit.h \
32     $(au_public_dir)/Utility/AUBuffer.cpp \
33     $(au_public_dir)/Utility/AUBuffer.h \
34     $(au_public_dir)/Utility/AUDebugDispatcher.cpp \
35     $(au_public_dir)/Utility/AUDebugDispatcher.h \
36     $(au_public_dir)/Utility/AUInputFormatConverter.h \
37     $(au_public_dir)/Utility/AUSilentTimeout.h \
38     $(au_public_dir)/Utility/AUTimestampGenerator.h \
39     $(au_public_dir)/AUBase/AUBase.cpp \
40     $(au_public_dir)/AUBase/AUBase.h \
41     $(au_public_dir)/AUBase/AUDispatch.cpp \
42     $(au_public_dir)/AUBase/AUDispatch.h \
43     $(au_public_dir)/AUBase/AUInputElement.cpp \
44     $(au_public_dir)/AUBase/AUInputElement.h \
45     $(au_public_dir)/AUBase/AUOutputElement.cpp \
46     $(au_public_dir)/AUBase/AUOutputElement.h \
47     $(au_public_dir)/AUBase/AUScopeElement.cpp \
48     $(au_public_dir)/AUBase/AUScopeElement.h \
49     $(au_public_dir)/AUBase/ComponentBase.cpp \
50     $(au_public_dir)/AUBase/ComponentBase.h \
51     $(au_public_dir)/OtherBases/AUMIDIBase.cpp \
52     $(au_public_dir)/OtherBases/AUMIDIBase.h \
53     $(au_public_dir)/OtherBases/MusicDeviceBase.cpp \
54     $(au_public_dir)/OtherBases/MusicDeviceBase.h
55    
56 persson 2183 LinuxSamplerAU_SOURCES = PluginAU.cpp PluginAU.h PluginAUVersion.h
57 iliev 1846
58 persson 2197 LinuxSamplerAU_LDADD = $(top_builddir)/src/liblinuxsampler.la
59 iliev 1846
60     if HAVE_AUFLAGS
61     else
62 iliev 2018 AUFLAGS = $(GIG_LIBS) $(JACK_LIBS) $(SQLITE3_LIBS) $(SNDFILE_LIBS)
63 iliev 1846 endif
64    
65 persson 2197 LinuxSamplerAU_CPPFLAGS = $(debug_messages)
66     LinuxSamplerAU_LDFLAGS = -bundle $(AUFLAGS) \
67 persson 2183 -exported_symbols_list $(srcdir)/PluginAU.exp \
68 iliev 1846 -framework CoreServices -framework CoreMIDI -framework CoreAudio \
69     -framework CoreFoundation -framework AudioToolbox -framework AudioUnit
70    
71     COMPONENT_DIR = LinuxSamplerAU.component
72    
73 persson 2197 all-local: $(COMPONENT_DIR)
74    
75     LinuxSamplerAU.rsrc: $(srcdir)/PluginAU.r $(srcdir)/PluginAUVersion.h
76 persson 2183 Rez $(srcdir)/PluginAU.r -d SystemSevenOrLater=1 -useDF -script Roman -d ppc_YES -d i386_YES -d x86_64_YES \
77 iliev 1846 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/Current/Headers \
78     -I $(au_public_dir)/AUBase/ -arch i386 -arch x86_64 -arch ppc -o LinuxSamplerAU.rsrc
79    
80 persson 2197 $(COMPONENT_DIR): $(srcdir)/PkgInfo $(srcdir)/Info.plist LinuxSamplerAU LinuxSamplerAU.rsrc
81     mkdir -p "$(COMPONENT_DIR)/Contents/Frameworks"
82     mkdir -p "$(COMPONENT_DIR)/Contents/MacOS"
83     mkdir -p "$(COMPONENT_DIR)/Contents/Resources"
84 iliev 1846
85 persson 2183 cp $(srcdir)/PkgInfo "$(COMPONENT_DIR)/Contents"
86     cp $(srcdir)/Info.plist "$(COMPONENT_DIR)/Contents"
87 persson 2197 $(LIBTOOL) --mode=install cp LinuxSamplerAU "$(PWD)/$(COMPONENT_DIR)/Contents/MacOS"
88 iliev 1846 cp LinuxSamplerAU.rsrc "$(COMPONENT_DIR)/Contents/Resources"
89 persson 2197 @touch $@
90 iliev 1846
91     # cp "`pkg-config --variable=libdir gig`/libgig.6.dylib" "$(COMPONENT_DIR)/Contents/Frameworks/"; \
92     # install_name_tool -id @executable_path/../Frameworks/libgig.6.dylib \
93     # "$(COMPONENT_DIR)/Contents/Frameworks/libgig.6.dylib"; \
94     # install_name_tool -change "`pkg-config --variable=libdir gig`/libgig.6.dylib" \
95     # @executable_path/../Frameworks/libgig.6.dylib \
96     # "$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU"
97     #
98     #if HAVE_SQLITE3
99     # cp "`pkg-config --variable=libdir sqlite3`/libsqlite3.dylib" "$(COMPONENT_DIR)/Contents/Frameworks/"; \
100     # install_name_tool -id @executable_path/../Frameworks/libsqlite3.dylib \; \
101     # "$(COMPONENT_DIR)/Contents/Frameworks/libsqlite3.dylib"; \
102     # install_name_tool -change "`pkg-config --variable=libdir sqlite3`/libsqlite3.dylib" \
103     # @executable_path/../Frameworks/libsqlite3.dylib \
104     # "$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU"
105     #endif
106     #
107     #if HAVE_JACK
108     # cp "`pkg-config --variable=libdir jack`/libjack.dylib" "$(COMPONENT_DIR)/Contents/Frameworks/"; \
109     # install_name_tool -id @executable_path/../Frameworks/libjack.dylib \
110     # "$(COMPONENT_DIR)/Contents/Frameworks/libjack.dylib"; \
111     # install_name_tool -change "`pkg-config --variable=libdir jack`/libjack.dylib" \
112     # @executable_path/../Frameworks/libjack.dylib \
113     # "$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU"
114     #endif
115    
116     clean-local:
117     rm -f LinuxSamplerAU.rsrc
118     rm -rf $(COMPONENT_DIR)
119    
120     install-exec-hook:
121 persson 2203 if mkdir -p $(MAC_PLUGIN_INSTALL_DIR)/Components && \
122     test -w $(MAC_PLUGIN_INSTALL_DIR)/Components ; then \
123 persson 2208 cp -r $(COMPONENT_DIR) $(MAC_PLUGIN_INSTALL_DIR)/Components/ ; \
124     if test -n "$(INSTALL_STRIP_FLAG)" ; then $(STRIP) -x $(MAC_PLUGIN_INSTALL_DIR)/Components/$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU ; fi ; fi
125 persson 2203
126 iliev 1846 uninstall-hook:
127 persson 2203 rm -rf $(MAC_PLUGIN_INSTALL_DIR)/Components/$(COMPONENT_DIR)
128 iliev 1846 endif
129 persson 2183
130     EXTRA_DIST = PluginAU.exp PluginAU.r PkgInfo Info.plist

  ViewVC Help
Powered by ViewVC