File: Makefile.vstcompile

package info (click to toggle)
faust 0.9.46-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 15,256 kB
  • ctags: 9,961
  • sloc: cpp: 47,746; sh: 2,254; ansic: 1,503; makefile: 1,211; ruby: 950; yacc: 468; objc: 459; lex: 200; xml: 177
file content (31 lines) | stat: -rw-r--r-- 1,168 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dspsrc  := $(wildcard *.dsp)
cppsrc  := $(addprefix $(DEST), $(dspsrc:.dsp=.cpp))
appl 	:= $(addprefix $(DEST), $(dspsrc:.dsp=$(EXT)))

# Setup this variable to access the VST SDK files
vst_sdk := "/Volumes/Document1/Developpement/ProjectsCVS/JackCVS/JackOSX/jackosx/jackplugins/JACK-ASinsert/VST/VSTSDK"

# Setup this variable with the location for the compiled VST plug-ins
install_plug_ins := "/Library/Audio/Plug-Ins/VST"

all :  $(appl)

	
$(DEST)% : %.dsp
	install -d $@
	cp -r $(vst_sdk) $@
	cp -r /usr/local/lib/faust/VST/* $@
	faust $(VEC) -a $(ARCH) $< -o $@/vst-output.cpp
	mv  $@/vst-output.cpp  $@/$(<:.dsp=.cpp)
	sed -e 's/vst-output.cpp/$(<:.dsp=.cpp)/'  $@/VST.xcode/project.pbxproj > $@/VST.xcode/new_project.pbxproj &&  mv $@/VST.xcode/new_project.pbxproj $@/VST.xcode/project.pbxproj
	sed -e 's/XXXX/$(<:.dsp=)/'  $@/Info.plist  >  $@/new_Info.plist  &&  mv $@/new_Info.plist $@/Info.plist
	xcodebuild -project $@/VST.xcode clean
	xcodebuild -project $@/VST.xcode
	mv $@/build/FaustVST.vst $@/build/$(<:.dsp=.vst)
	rm -r $@/build/VST.build
	install -d $(install_plug_ins)
	cp -r $@/build/$(<:.dsp=.vst) $(install_plug_ins)
	

clean :
	rm -f $(DEST)