-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.mac
executable file
·80 lines (80 loc) · 2.56 KB
/
build.mac
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# note this file is needed as libraries such as ntpd, zlib, jpeg etc do not have XCode projects, but use the Linux-style autoconf/automake
#!/bin/bash
export XCB=/Applications/XCode.app/Contents/Developer/usr/bin/xcodebuild
if (test "$1" = "all" || test "$2" = "all" || test "$1" = "libs" || test "$2" = "libs") then
export CXX=
export CC=
export MARCH=
export SDKROOT=
export LDFLAGS=
export CPPFLAGS=
export CFLAGS=
export CXXFLAGS=
# building ntpdate is really "special" and not just a lib...
#cd ntp-4.2.4p7
#chmod uog+rx build.mac
#./build.mac
#cd ../jpeg-6b
cd jpeg-6b
chmod uog+rx build.mac
./build.mac
cd ../bzip2-1.0.6
chmod uog+rx build.mac
./build.mac
cd ../zlib-1.2.5
chmod uog+rx build.mac
./build.mac
cd ../curl-7.25.0
chmod uog+rx build.mac
./build.mac
cd ../freetype-2.4.6
chmod uog+rx build.mac
./build.mac
cd ../ftgl-2.1.3
chmod uog+rx build.mac
./build.mac
cd ../
export CXX=
export CC=
export MARCH=
export SDKROOT=
export LDFLAGS=
export CPPFLAGS=
export CFLAGS=
export CXXFLAGS=
#unzip -o boinc_xcode.zip -d ../boinc/mac_build/
#unzip -o boinc_zip_xcode.zip -d ../boinc/zip/
cd ../boinc/mac_build
export XCB=/Applications/XCode.app/Contents/Developer/usr/bin/xcodebuild
$XCB -project boinc.xcodeproj -configuration Deployment -target jpeg clean build
$XCB -project boinc.xcodeproj -configuration Deployment -target libboinc clean build
$XCB USER_HEADER_SEARCH_PATHS='../lib ../../qcn/jpeg-6b /usr/X11R6/include' -project boinc.xcodeproj -configuration Deployment -target api_libboinc clean build
$XCB USER_HEADER_SEARCH_PATHS='../lib ../../qcn/jpeg-6b /usr/X11R6/include' -project boinc.xcodeproj -configuration Deployment -target gfx2libboinc clean build
mv build/Deployment/*.a ../../qcn/client/mac_build/
cd ../zip
$XCB -project boinc_zip.xcodeproj -configuration Deployment -target boinc_zip clean build
mv build/Deployment/libboinc_zip.a ../../qcn/client/mac_build/
cd ../../qcn
if (test "$1" = "libs" || test "$2" = "libs") then
exit
fi
fi
export CXX=
export CC=
export MARCH=
export SDKROOT=
export LDFLAGS=
export CPPFLAGS=
export CFLAGS=
export CXXFLAGS=
cd client/mac_build
$XCB -project qcn.xcodeproj -configuration Release -target qcn clean build
$XCB -project qcn.xcodeproj -configuration Release -target qcn_graphics clean build
$XCB -project qcn.xcodeproj -configuration Release -target qcnusb clean build
#$XCB -project qcn.xcodeproj -configuration Release -target QCNLive clean build
cd ../qcnlive
rm -rf QCNLive.app
rm -rf ../bin/QCNLive.app
$XCB -project QCNLive.xcodeproj -configuration Release -target QCNLive clean build
cd ../bin
/usr/bin/macdeployqt-4.8 QCNLive.app/