-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathcompile_mac.sh
executable file
·41 lines (36 loc) · 1.11 KB
/
compile_mac.sh
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
35
36
37
38
39
40
41
#! /bin/sh
./get_svn_revision.sh
echo Compiling web server
cd webserver && make
cd ..
echo Compiling create_plist
cd Mac
qmake && make
cd ..
#echo Compiling smtube
#ln -sf ../smtube/src smtube
#cd smtube
#lrelease smtube.pro
#qmake DEFINES+="SMTUBE_LIB"
#make -j$(sysctl -n hw.logicalcpu)
#cd ../src
cd src
echo Compiling smplayer
lrelease smplayer.pro
#qmake DEFINES+="USE_SMTUBE_LIB"
qmake
make -j$(sysctl -n hw.logicalcpu)
#cp ../smtube/translations/*.qm smplayer.app/Contents/Resources/translations/
cp ../webserver/simple_web_server smplayer.app/Contents/MacOS/
../Mac/create_plist > smplayer.app/Contents/Info.plist
cp ../Mac/smplayer-document.icns smplayer.app/Contents/Resources/
cd ..
echo Creating package
mkdir -p package
rm -r package/SMPlayer.app
mv src/smplayer.app package/SMPlayer.app
mkdir -p package/SMPlayer.app/Contents/translations
cp `qmake -query QT_INSTALL_TRANSLATIONS`/qt_*.qm package/SMPlayer.app/Contents/translations/
cp `qmake -query QT_INSTALL_TRANSLATIONS`/qtbase_*.qm package/SMPlayer.app/Contents/translations/
rm package/SMPlayer.app/Contents/translations/qt_help_*
macdeployqt package/SMPlayer.app