/[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 2420 - (show annotations) (download)
Sun Feb 24 08:59:25 2013 UTC (11 years, 1 month ago) by persson
File size: 5760 byte(s)
* removed usage of deprecated Automake variable INCLUDES
* ASIO driver: removed compiler warnings

1 if HAVE_AU
2
3 plugindir = $(libdir)/au
4 examples_dir = $(DEVELOPER_EXTRAS_DIR)
5 au_public_dir = $(examples_dir)/CoreAudio/AudioUnits/AUPublic
6 ca_public_dir = $(examples_dir)/CoreAudio/PublicUtility
7 AM_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)
9
10 noinst_PROGRAMS = LinuxSamplerAU
11
12 # Uncomment for debug messages.
13 #debug_messages = -DAU_DEBUG_DISPATCHER=1
14
15 nodist_LinuxSamplerAU_SOURCES = $(ca_public_dir)/CAHostTimeBase.cpp \
16 $(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 LinuxSamplerAU_SOURCES = PluginAU.cpp PluginAU.h PluginAUVersion.h
57
58 LinuxSamplerAU_LDADD = $(top_builddir)/src/liblinuxsampler.la
59
60 if HAVE_AUFLAGS
61 else
62 AUFLAGS = $(GIG_LIBS) $(JACK_LIBS) $(SQLITE3_LIBS) $(SNDFILE_LIBS)
63 endif
64
65 LinuxSamplerAU_CPPFLAGS = $(debug_messages)
66 LinuxSamplerAU_LDFLAGS = -bundle $(AUFLAGS) \
67 -exported_symbols_list $(srcdir)/PluginAU.exp \
68 -framework CoreServices -framework CoreMIDI -framework CoreAudio \
69 -framework CoreFoundation -framework AudioToolbox -framework AudioUnit
70
71 COMPONENT_DIR = LinuxSamplerAU.component
72
73 all-local: $(COMPONENT_DIR)
74
75 LinuxSamplerAU.rsrc: $(srcdir)/PluginAU.r $(srcdir)/PluginAUVersion.h
76 Rez $(srcdir)/PluginAU.r -d SystemSevenOrLater=1 -useDF -script Roman -d ppc_YES -d i386_YES -d x86_64_YES \
77 -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 $(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
85 cp $(srcdir)/PkgInfo "$(COMPONENT_DIR)/Contents"
86 cp $(srcdir)/Info.plist "$(COMPONENT_DIR)/Contents"
87 $(LIBTOOL) --mode=install cp LinuxSamplerAU "$(PWD)/$(COMPONENT_DIR)/Contents/MacOS"
88 cp LinuxSamplerAU.rsrc "$(COMPONENT_DIR)/Contents/Resources"
89 @touch $@
90
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 if mkdir -p $(MAC_PLUGIN_INSTALL_DIR)/Components && \
122 test -w $(MAC_PLUGIN_INSTALL_DIR)/Components ; then \
123 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
126 uninstall-hook:
127 rm -rf $(MAC_PLUGIN_INSTALL_DIR)/Components/$(COMPONENT_DIR)
128 endif
129
130 EXTRA_DIST = PluginAU.exp PluginAU.r PkgInfo Info.plist

  ViewVC Help
Powered by ViewVC