1 |
if HAVE_AU |
if HAVE_AU |
2 |
|
|
3 |
plugindir = $(libdir)/au |
plugindir = $(libdir)/au |
4 |
examples_dir = @DEVELOPER_EXTRAS_DIR@ |
examples_dir = $(DEVELOPER_EXTRAS_DIR) |
5 |
au_public_dir = $(examples_dir)/CoreAudio/AudioUnits/AUPublic |
au_public_dir = $(examples_dir)/CoreAudio/AudioUnits/AUPublic |
6 |
ca_public_dir = $(examples_dir)/CoreAudio/PublicUtility |
ca_public_dir = $(examples_dir)/CoreAudio/PublicUtility |
7 |
INCLUDES = -I$(au_public_dir)/AUBase -I$(au_public_dir)/OtherBases \ |
LinuxSamplerAU_CPPFLAGS = -I$(au_public_dir)/AUBase -I$(au_public_dir)/OtherBases \ |
8 |
-I$(au_public_dir)/Utility -I$(ca_public_dir) $(GIG_CFLAGS) $(SQLITE3_CFLAGS) $(SNDFILE_CFLAGS) |
-I$(au_public_dir)/Utility -I$(ca_public_dir) $(GIG_CFLAGS) $(SQLITE3_CFLAGS) $(SNDFILE_CFLAGS) |
9 |
|
|
10 |
noinst_LIBRARIES = libpluginau.a |
noinst_PROGRAMS = LinuxSamplerAU |
11 |
|
|
12 |
# Uncomment for debug messages. |
# Uncomment for debug messages. |
13 |
#debug_messages = -DAU_DEBUG_DISPATCHER=1 |
#debug_messages = -DAU_DEBUG_DISPATCHER=1 |
14 |
|
|
15 |
libpluginau_a_CXXFLAGS = $(debug_messages) |
LinuxSamplerAU_SOURCES = PluginAU.cpp PluginAU.h PluginAUVersion.h ausdk.cpp |
16 |
|
|
17 |
nodist_libpluginau_a_SOURCES = $(ca_public_dir)/CAHostTimeBase.cpp \ |
LinuxSamplerAU_LDADD = $(top_builddir)/src/liblinuxsampler.la |
|
$(ca_public_dir)/CAHostTimeBase.h \ |
|
|
$(ca_public_dir)/CAAUMIDIMap.cpp \ |
|
|
$(ca_public_dir)/CAAUMIDIMap.h \ |
|
|
$(ca_public_dir)/CAAUMIDIMapManager.cpp \ |
|
|
$(ca_public_dir)/CAAUMIDIMapManager.h \ |
|
|
$(ca_public_dir)/CAAUParameter.cpp \ |
|
|
$(ca_public_dir)/CAAUParameter.h \ |
|
|
$(ca_public_dir)/CAAudioChannelLayout.cpp \ |
|
|
$(ca_public_dir)/CAAudioChannelLayout.h \ |
|
|
$(ca_public_dir)/CAMutex.cpp \ |
|
|
$(ca_public_dir)/CAMutex.h \ |
|
|
$(ca_public_dir)/CAStreamBasicDescription.cpp \ |
|
|
$(ca_public_dir)/CAStreamBasicDescription.h \ |
|
|
$(ca_public_dir)/CAVectorUnitTypes.h \ |
|
|
$(ca_public_dir)/CAVectorUnit.cpp \ |
|
|
$(ca_public_dir)/CAVectorUnit.h \ |
|
|
$(au_public_dir)/Utility/AUBuffer.cpp \ |
|
|
$(au_public_dir)/Utility/AUBuffer.h \ |
|
|
$(au_public_dir)/Utility/AUDebugDispatcher.cpp \ |
|
|
$(au_public_dir)/Utility/AUDebugDispatcher.h \ |
|
|
$(au_public_dir)/Utility/AUInputFormatConverter.h \ |
|
|
$(au_public_dir)/Utility/AUSilentTimeout.h \ |
|
|
$(au_public_dir)/Utility/AUTimestampGenerator.h \ |
|
|
$(au_public_dir)/AUBase/AUBase.cpp \ |
|
|
$(au_public_dir)/AUBase/AUBase.h \ |
|
|
$(au_public_dir)/AUBase/AUDispatch.cpp \ |
|
|
$(au_public_dir)/AUBase/AUDispatch.h \ |
|
|
$(au_public_dir)/AUBase/AUInputElement.cpp \ |
|
|
$(au_public_dir)/AUBase/AUInputElement.h \ |
|
|
$(au_public_dir)/AUBase/AUOutputElement.cpp \ |
|
|
$(au_public_dir)/AUBase/AUOutputElement.h \ |
|
|
$(au_public_dir)/AUBase/AUScopeElement.cpp \ |
|
|
$(au_public_dir)/AUBase/AUScopeElement.h \ |
|
|
$(au_public_dir)/AUBase/ComponentBase.cpp \ |
|
|
$(au_public_dir)/AUBase/ComponentBase.h \ |
|
|
$(au_public_dir)/OtherBases/AUMIDIBase.cpp \ |
|
|
$(au_public_dir)/OtherBases/AUMIDIBase.h \ |
|
|
$(au_public_dir)/OtherBases/MusicDeviceBase.cpp \ |
|
|
$(au_public_dir)/OtherBases/MusicDeviceBase.h |
|
|
|
|
|
bin_PROGRAMS = LinuxSamplerAU |
|
|
LinuxSamplerAU_SOURCES = PluginAU.cpp PluginAU.h PluginAUVersion.h |
|
|
|
|
|
LinuxSamplerAU_LDADD = $(top_builddir)/src/.libs/liblinuxsampler.a libpluginau.a |
|
18 |
|
|
19 |
if HAVE_AUFLAGS |
if HAVE_AUFLAGS |
20 |
else |
else |
21 |
AUFLAGS = $(GIG_LIBS) $(JACK_LIBS) $(SQLITE3_LIBS) $(SNDFILE_LIBS) |
AUFLAGS = $(GIG_LIBS) $(JACK_LIBS) $(SQLITE3_LIBS) $(SNDFILE_LIBS) |
22 |
endif |
endif |
23 |
|
|
24 |
LinuxSamplerAU_CXXFLAGS = -bundle $(debug_messages) |
LinuxSamplerAU_CPPFLAGS += $(debug_messages) |
25 |
LinuxSamplerAU_LDFLAGS = -static $(AUFLAGS) \ |
LinuxSamplerAU_LDFLAGS = -bundle $(AUFLAGS) \ |
26 |
-exported_symbols_list $(srcdir)/PluginAU.exp \ |
-exported_symbols_list $(srcdir)/PluginAU.exp \ |
27 |
-framework CoreServices -framework CoreMIDI -framework CoreAudio \ |
-framework CoreServices -framework CoreMIDI -framework CoreAudio \ |
28 |
-framework CoreFoundation -framework AudioToolbox -framework AudioUnit |
-framework CoreFoundation -framework AudioToolbox -framework AudioUnit |
29 |
|
|
30 |
COMPONENT_DIR = LinuxSamplerAU.component |
COMPONENT_DIR = LinuxSamplerAU.component |
31 |
|
|
32 |
all-local: |
all-local: $(COMPONENT_DIR) |
33 |
|
|
34 |
|
LinuxSamplerAU.rsrc: $(srcdir)/PluginAU.r $(srcdir)/PluginAUVersion.h |
35 |
Rez $(srcdir)/PluginAU.r -d SystemSevenOrLater=1 -useDF -script Roman -d ppc_YES -d i386_YES -d x86_64_YES \ |
Rez $(srcdir)/PluginAU.r -d SystemSevenOrLater=1 -useDF -script Roman -d ppc_YES -d i386_YES -d x86_64_YES \ |
36 |
-I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/Current/Headers \ |
-I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/Current/Headers \ |
37 |
-I $(au_public_dir)/AUBase/ -arch i386 -arch x86_64 -arch ppc -o LinuxSamplerAU.rsrc |
-I $(au_public_dir)/AUBase/ -arch i386 -arch x86_64 -arch ppc -o LinuxSamplerAU.rsrc |
38 |
|
|
39 |
if test ! -d "$(COMPONENT_DIR)/Contents/Frameworks"; then mkdir -p "$(COMPONENT_DIR)/Contents/Frameworks"; fi |
$(COMPONENT_DIR): $(srcdir)/PkgInfo $(srcdir)/Info.plist LinuxSamplerAU LinuxSamplerAU.rsrc |
40 |
if test ! -d "$(COMPONENT_DIR)/Contents/MacOS"; then mkdir -p "$(COMPONENT_DIR)/Contents/MacOS"; fi |
mkdir -p "$(COMPONENT_DIR)/Contents/Frameworks" |
41 |
if test ! -d "$(COMPONENT_DIR)/Contents/Resources"; then mkdir -p "$(COMPONENT_DIR)/Contents/Resources"; fi |
mkdir -p "$(COMPONENT_DIR)/Contents/MacOS" |
42 |
|
mkdir -p "$(COMPONENT_DIR)/Contents/Resources" |
43 |
|
|
44 |
cp $(srcdir)/PkgInfo "$(COMPONENT_DIR)/Contents" |
cp $(srcdir)/PkgInfo "$(COMPONENT_DIR)/Contents" |
45 |
cp $(srcdir)/Info.plist "$(COMPONENT_DIR)/Contents" |
cp $(srcdir)/Info.plist "$(COMPONENT_DIR)/Contents" |
46 |
cp LinuxSamplerAU "$(COMPONENT_DIR)/Contents/MacOS" |
$(LIBTOOL) --mode=install cp LinuxSamplerAU "$(PWD)/$(COMPONENT_DIR)/Contents/MacOS" |
47 |
cp LinuxSamplerAU.rsrc "$(COMPONENT_DIR)/Contents/Resources" |
cp LinuxSamplerAU.rsrc "$(COMPONENT_DIR)/Contents/Resources" |
48 |
|
@touch $@ |
49 |
|
|
50 |
# cp "`pkg-config --variable=libdir gig`/libgig.6.dylib" "$(COMPONENT_DIR)/Contents/Frameworks/"; \ |
# cp "`pkg-config --variable=libdir gig`/libgig.6.dylib" "$(COMPONENT_DIR)/Contents/Frameworks/"; \ |
51 |
# install_name_tool -id @executable_path/../Frameworks/libgig.6.dylib \ |
# install_name_tool -id @executable_path/../Frameworks/libgig.6.dylib \ |
77 |
rm -rf $(COMPONENT_DIR) |
rm -rf $(COMPONENT_DIR) |
78 |
|
|
79 |
install-exec-hook: |
install-exec-hook: |
80 |
cp -r $(COMPONENT_DIR) /Library/Audio/Plug-Ins/Components/ |
if mkdir -p $(MAC_PLUGIN_INSTALL_DIR)/Components && \ |
81 |
|
test -w $(MAC_PLUGIN_INSTALL_DIR)/Components ; then \ |
82 |
|
cp -r $(COMPONENT_DIR) $(MAC_PLUGIN_INSTALL_DIR)/Components/ ; \ |
83 |
|
if test -n "$(INSTALL_STRIP_FLAG)" ; then $(STRIP) -x $(MAC_PLUGIN_INSTALL_DIR)/Components/$(COMPONENT_DIR)/Contents/MacOS/LinuxSamplerAU ; fi ; fi |
84 |
|
|
85 |
uninstall-hook: |
uninstall-hook: |
86 |
rm -rf /Library/Audio/Plug-Ins/Components/$(COMPONENT_DIR) |
rm -rf $(MAC_PLUGIN_INSTALL_DIR)/Components/$(COMPONENT_DIR) |
87 |
endif |
endif |
88 |
|
|
89 |
EXTRA_DIST = PluginAU.exp PluginAU.r PkgInfo Info.plist |
EXTRA_DIST = PluginAU.exp PluginAU.r PkgInfo Info.plist |