File: faust2jackserver

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 (34 lines) | stat: -rwxr-xr-x 817 bytes parent folder | download
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
32
33
34
#!/bin/bash

if [[ $(uname) == Darwin ]]; then
	#On Darwin build a Jack QT4 application using xcode
	for f in $@; do
	
		CUR=$(pwd)
		TMP=/var/tmp/${f%.dsp}
	
		rm -rf $TMP
		install -d $TMP
		
		faust -a jack-qt.cpp $f -o $TMP/${f%.dsp}.cpp
		
		cd $TMP; qmake -project "INCLUDEPATH+=$CUR" "INCLUDEPATH+=/usr/local/lib/faust/" "LIBS+=-ljackserver" "HEADERS+=/usr/local/lib/faust/gui/faustqt.h" 
		cd $TMP; qmake
		echo toto
		cd $TMP; xcodebuild -project ${f%.dsp}.xcodeproj
		echo titi
		cd $CUR; rm -rf ${f%.dsp}.app
		cd $CUR; mv $TMP/build/Default/${f%.dsp}.app ${f%.dsp}.app
		rm -rf $TMP
		
	done


else
	#On Linux (default) build a jack gtk application
	for f in $@; do
		faust -a jack-gtk.cpp $f -o $f.cpp
		${CXX=g++} ${CXXFLAGS=-O3} `pkg-config --cflags --libs jack gtk+-2.0` $f.cpp -o ${f%.dsp}
	done

fi