m.osx 1.06 KB
Newer Older
jcaceres's avatar
jcaceres committed
1
2
3
4
5
#!/bin/bash
#####################################
APP_NAME=jmess
######################################
## Created by Juan-Pablo Caceres
6
7
8
9
10
11
## qmake file to generate universal binary.
## you need at least OSX 10.3.9
## Notes: this qmake files compiles using Static Qt Librairies.
##        to install qt using static librairies on osx, configure as:
##        ./configure -nomake examples -static -release -no-framework -universal -sdk /Developer/SDKs/MacOSX10.4u.sdk
## You need JackOsx Installed, since it's using the jack Framework
jcaceres's avatar
jcaceres committed
12
13
14
15
16
17
18
19
20

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

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

21
echo "qmake .pro built."
jcaceres's avatar
jcaceres committed
22
23

#Create Makefile
24
25
26
qmake -makefile -o Makefile \
"CONFIG += release" \
"CONFIG -= app_bundle" \
jcaceres's avatar
jcaceres committed
27
"QT += xml" \
jcaceres's avatar
jcaceres committed
28
"QT -= gui" \
29
"LIBS += -dead_strip -ljack -framework CoreAudio" \
30
31
32
"CONFIG += x86 ppc" \
"TARGET = $APP_NAME" \
"DESTDIR = ../bin/" \
33
"QMAKE_CLEAN += ../bin/$APP_NAME" \
34
35
"target.path = /usr/bin" \
"INSTALLS += target" \
jcaceres's avatar
jcaceres committed
36
37
38
$APP_NAME.pro

echo "done"
39

40
41
#To link jack as framework
#"LIBS += -framework jack