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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1923 - (show annotations) (download)
Sat Jun 27 16:55:41 2009 UTC (8 years, 5 months ago) by persson
File size: 5381 byte(s)
* fixed crash happening when a pitch bend event arrived at the same
  time a new instrument was loading
* fixed building with sqlite installed in a non-standard directory

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

  ViewVC Help
Powered by ViewVC