m.osx 676 Bytes
Newer Older
jcaceres's avatar
jcaceres committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#####################################
APP_NAME=jmess
######################################
## Created by Juan-Pablo Caceres

#Cleanup
#rm $APP_NAME.pro
#rm Makefile
#echo "cleanup done"

#Create project (.pro) file
qmake -project -o $APP_NAME.pro

echo "qmake-qt4 .pro built."

#Create Makefile
18
qmake -makefile -spec macx-g++ -o Makefile \
jcaceres's avatar
jcaceres committed
19
"QT += xml" \
jcaceres's avatar
jcaceres committed
20
"QT -= gui" \
jcaceres's avatar
jcaceres committed
21
22
23
"QMAKE_CLEAN += $APP_NAME" \
"LIBS += -framework jack -framework CoreAudio" \
"TARGET = $APP_NAME" \
24
25
"QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk" \
"CONFIG += x86 ppc sdk" \
jcaceres's avatar
jcaceres committed
26
27
28
$APP_NAME.pro

echo "done"
29
30
31

#Add something like this to statically link librairies
#"LIBS+=$QTDIR/lib/libQtCore.a" \