mirror of https://github.com/BOINC/boinc.git
Manager: remove sqlite3.c from Xcode project; add build script to build libsqlite3.a from source files downloaded from sqlite3.org
This commit is contained in:
parent
0c4a9bc452
commit
b6d6545bfa
|
@ -7560,3 +7560,16 @@ David 10 Dec 2012
|
|||
coproc.cpp
|
||||
sched/
|
||||
sched_customize.cpp
|
||||
|
||||
Charlie 11 Dec 2012
|
||||
- Manager: remove sqlite3.c from Xcode project; add build script to
|
||||
build libsqlite3.a from source files downloaded from sqlite3.org.
|
||||
|
||||
clientgui/
|
||||
sqlite3.c (deleted)
|
||||
mac_build/
|
||||
boinc.xcodeproj/
|
||||
project.pbxproj
|
||||
buildsqlite3.sh (added)
|
||||
HowToBuildBOINC_XCode.rtf
|
||||
setupforBOINC.sh
|
||||
|
|
125979
clientgui/sqlite3.c
125979
clientgui/sqlite3.c
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,4 @@
|
|||
{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf470
|
||||
{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf510
|
||||
{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fmodern\fcharset0 Courier;\f2\fswiss\fcharset0 ArialMT;
|
||||
\f3\fnil\fcharset0 LucidaGrande;\f4\fnil\fcharset0 Menlo-Regular;}
|
||||
{\colortbl;\red255\green255\blue255;\red186\green0\blue0;\red14\green14\blue255;\red246\green246\blue246;
|
||||
|
@ -14,10 +14,10 @@
|
|||
\b0\fs24 \cf0 \
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\qc
|
||||
\cf0 Written by Charlie Fenton\
|
||||
Last updated 8/3/12\
|
||||
Last updated 12/1112\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640
|
||||
\cf0 \
|
||||
This document applies to BOINC version 7.0.34 and later. It has instructions for building the BOINC Client and Manager for Macintosh OSX. Information for building science project applications to run under BOINC on Macintosh OSX can be found {\field{\*\fldinst{HYPERLINK "http://boinc.berkeley.edu/trac/wiki/BuildMacApp"}}{\fldrslt here}}. \
|
||||
This document applies to BOINC version 7.0.43 and later. It has instructions for building the BOINC Client and Manager for Macintosh OSX. Information for building science project applications to run under BOINC on Macintosh OSX can be found {\field{\*\fldinst{HYPERLINK "http://boinc.berkeley.edu/trac/wiki/BuildMacApp"}}{\fldrslt here}}. \
|
||||
\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640
|
||||
|
||||
|
@ -62,7 +62,7 @@ You need to take certain steps to ensure that you use only APIs that are availab
|
|||
\cf0 \
|
||||
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural
|
||||
|
||||
\b \cf0 The above requirements apply not only to BOINC itself, but also to the WxWidgets, c-ares, cURL and openSSL libraries, as well as all project applications
|
||||
\b \cf0 The above requirements apply not only to BOINC itself, but also to the WxWidgets, c-ares, cURL, openSSL, freetype, ftgl and SQLite3 libraries, as well as all project applications
|
||||
\b0 . \
|
||||
\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640
|
||||
|
@ -118,7 +118,7 @@ Enter your administrator password when prompted to do so.\
|
|||
|
||||
\b0\fs24 \cf0 \
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
\cf0 BOINC depends on six third-party libraries: wxMac-2.8.10, c-ares-1.9.1, curl-7.26.0, openssl-1.0.1c, freetype-2.4.10 and ftgl-2.1.3~rc5. You can obtain the source files from the following URLs:\
|
||||
\cf0 BOINC depends on six third-party libraries: wxMac-2.8.10, c-ares-1.9.1, curl-7.26.0, openssl-1.0.1c, freetype-2.4.10, ftgl-2.1.3~rc5 and sqlite3.7.14.1. You can obtain the source files from the following URLs:\
|
||||
\
|
||||
wxMac-2.8.10 (needed only if you are building the BOINC Manager):\
|
||||
{\field{\*\fldinst{HYPERLINK "http://www.wxwidgets.org"}}{\fldrslt
|
||||
|
@ -129,6 +129,17 @@ wxMac-2.8.10 (needed only if you are building the BOINC Manager):\
|
|||
\f1\fs26 http://prdownloads.sourceforge.net/wxwindows/wxMac-2.8.10.tar.gz}}
|
||||
\f1\fs26 \
|
||||
|
||||
\f0\fs24 \
|
||||
sqlite3.7.14.1 (needed only if you are building the BOINC Manager):\
|
||||
|
||||
\f1 {\field{\*\fldinst{HYPERLINK "http://www.sqlite.org/"}}{\fldrslt
|
||||
\fs26 http://www.sqlite.org/}}
|
||||
\fs26 \
|
||||
|
||||
\fs24 {\field{\*\fldinst{HYPERLINK "http://www.sqlite.org/sqlite-autoconf-3071401.tar.gz"}}{\fldrslt
|
||||
\fs26 http://www.sqlite.org/sqlite-autoconf-3071401.tar.gz}}
|
||||
\fs26 \
|
||||
|
||||
\f0\fs24 \
|
||||
curl-7.26.0:\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
@ -170,8 +181,10 @@ ftgl-2.1.3~rc5 (needed only if you are building the BOINC default screensaver o
|
|||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\f0\fs24 \cf0 {\field{\*\fldinst{HYPERLINK "http://sourceforge.net/projects/ftgl/files/FTGL%20Source/2.1.3~rc5/ftgl-2.1.3-rc5.tar.gz"}}{\fldrslt http://sourceforge.net/projects/ftgl/files/FTGL%20Source/2.1.3%7Erc5/ftgl-2.1.3-rc5.tar.gz}}\
|
||||
|
||||
\f1\fs26 \
|
||||
\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
|
||||
|
||||
\f1\fs26 \cf0 \
|
||||
\pard\pardeftab720\sa260
|
||||
|
||||
\f0\fs24 \cf0 (Don't forget to expand the tar files by double-clicking on them.)\
|
||||
|
@ -184,7 +197,7 @@ MAC_OS_X_VERSION_MIN_REQUIRED=1040\
|
|||
|
||||
\f0\fs24 \cf0 \
|
||||
\pard\pardeftab720\sa260
|
||||
\cf0 These are not done automatically by either the Xcode projects which come with wxMac-2.8.10, nor the AutoMake scripts supplied with wxMac-2.8.10, c-ares-1.9.1, curl-7.26.0, openssl-1.0.1c, freetype-2.4.10 and ftgl-2.1.3~rc5. So be sure to use our special scripts to build these packages.\
|
||||
\cf0 These are not done automatically by either the Xcode projects which come with wxMac-2.8.10, nor the AutoMake scripts supplied with wxMac-2.8.10, c-ares-1.9.1, curl-7.26.0, openssl-1.0.1c, freetype-2.4.10, ftgl-2.1.3~rc5 and sqlite3.7.14.1. So be sure to use our special scripts to build these packages.\
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640
|
||||
\cf0 [1] Create a parent directory within which to work. In this description , we will call it BOINC_dev, but you can name it anything you wish.\
|
||||
\
|
||||
|
@ -201,6 +214,9 @@ MAC_OS_X_VERSION_MIN_REQUIRED=1040\
|
|||
\cf0 wxMac-2.8.10\
|
||||
freetype-2.4.10\
|
||||
ftgl-2.1.3~rc5\
|
||||
|
||||
\fs24 sqlite3.7.14.1
|
||||
\fs26 \
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640
|
||||
|
||||
\f0\fs24 \cf0 \
|
||||
|
@ -237,7 +253,7 @@ The command above retrieves the source code from the HEAD (TRUNK) or development
|
|||
{\field{\*\fldinst{HYPERLINK "http://boinc.berkeley.edu/trac/wiki/SourceCode"}}{\fldrslt
|
||||
\f1\fs26 \cf0 http://boinc.berkeley.edu/trac/wiki/SourceCode}}\
|
||||
\
|
||||
[4] Run the script to build the c-ares, curl, openssl, wxMac, freetype and ftgl libraries as follows:\
|
||||
[4] Run the script to build the c-ares, curl, openssl, wxMac, freetype, ftgl ad sqlite3 libraries as follows:\
|
||||
\
|
||||
\pard\pardeftab720
|
||||
|
||||
|
@ -258,7 +274,7 @@ If you don't wish to force a full rebuild of everything, omit the -clean argumen
|
|||
\f0\fs24 command to run them.\
|
||||
|
||||
\b Note 2:
|
||||
\b0 this script tries to build all six third-party libraries: wxMac-2.8.10, c-ares-1.9.1, curl-7.26.0, openssl-1.0.1c, freetype-2.4.10 and ftgl-2.1.3~rc5. when the script finishes, it will display a warning about any libraries was unable to build (for example, if you have not downloaded them.)\
|
||||
\b0 this script tries to build all six third-party libraries: wxMac-2.8.10, c-ares-1.9.1, curl-7.26.0, openssl-1.0.1c, freetype-2.4.10, ftgl-2.1.3~rc5 and sqlite3.7.14.1. when the script finishes, it will display a warning about any libraries was unable to build (for example, if you have not downloaded them.)\
|
||||
\
|
||||
[5] Build BOINC as follows:\
|
||||
\
|
||||
|
|
|
@ -201,6 +201,7 @@
|
|||
DD69FF0C084171CF00C01361 /* network.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DD6D0A8507E9A61B007F882B /* network.cpp */; };
|
||||
DD6ABCD10BD4C5CA009AA7A1 /* browser_safari.mm in Sources */ = {isa = PBXBuildFile; fileRef = DD6ABCD00BD4C5CA009AA7A1 /* browser_safari.mm */; };
|
||||
DD6D0A8707E9A61E007F882B /* network.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DD6D0A8507E9A61B007F882B /* network.cpp */; };
|
||||
DD6FCB68167745E700C740DB /* libsqlite3.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DD6FCB67167745E700C740DB /* libsqlite3.a */; };
|
||||
DD73E36E08A0720500656EB1 /* gui_rpc_server_ops.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DD73E36208A06ED400656EB1 /* gui_rpc_server_ops.cpp */; };
|
||||
DD73E3A708A07CA600656EB1 /* hostinfo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DD344BB607C5AEEE0043025C /* hostinfo.cpp */; };
|
||||
DD73E3B608A07FC600656EB1 /* gui_rpc_client_ops.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DD73E34E08A0694000656EB1 /* gui_rpc_client_ops.cpp */; };
|
||||
|
@ -319,7 +320,6 @@
|
|||
DDA12AAE0A369C5800FBDD12 /* SecurityUtility.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DDA12AAD0A369C5800FBDD12 /* SecurityUtility.cpp */; };
|
||||
DDA165E513B49B0D00CB4DD5 /* url.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DDC06AB210A3E93F00C8D9A5 /* url.cpp */; };
|
||||
DDA1F1EE126D105B005EFFEB /* current_version.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DDA1F1EC126D105B005EFFEB /* current_version.cpp */; };
|
||||
DDA26C5E13977E1500DFDFE1 /* sqlite3.c in Sources */ = {isa = PBXBuildFile; fileRef = DDA26C5D13977E1500DFDFE1 /* sqlite3.c */; };
|
||||
DDA45500140F7DE200D97676 /* synch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DD407AED07D2FE7200163EF5 /* synch.cpp */; };
|
||||
DDA45501140F7E7900D97676 /* reduce_main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DD40825807D3076400163EF5 /* reduce_main.cpp */; };
|
||||
DDA546610D16964E008CC69A /* QuickTime.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DDA546600D16964E008CC69A /* QuickTime.framework */; };
|
||||
|
@ -926,6 +926,7 @@
|
|||
DD6D0A8507E9A61B007F882B /* network.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = network.cpp; sourceTree = "<group>"; };
|
||||
DD6D0A8607E9A61B007F882B /* network.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = network.h; path = ../lib/network.h; sourceTree = SOURCE_ROOT; };
|
||||
DD6D82DA08131AB1008F7200 /* macglutfix.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = macglutfix.m; sourceTree = "<group>"; };
|
||||
DD6FCB67167745E700C740DB /* libsqlite3.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libsqlite3.a; path = "../../sqlite-autoconf-3071401/.libs/libsqlite3.a"; sourceTree = "<group>"; };
|
||||
DD7168360AAD72040051642B /* common_defs.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = common_defs.h; path = ../lib/common_defs.h; sourceTree = SOURCE_ROOT; };
|
||||
DD73E34E08A0694000656EB1 /* gui_rpc_client_ops.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = gui_rpc_client_ops.cpp; sourceTree = "<group>"; };
|
||||
DD73E34F08A0694100656EB1 /* gui_rpc_client_print.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = gui_rpc_client_print.cpp; sourceTree = "<group>"; };
|
||||
|
@ -1067,7 +1068,6 @@
|
|||
DDA12AAD0A369C5800FBDD12 /* SecurityUtility.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SecurityUtility.cpp; path = ../clientgui/mac/SecurityUtility.cpp; sourceTree = SOURCE_ROOT; };
|
||||
DDA1F1EC126D105B005EFFEB /* current_version.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = current_version.cpp; path = ../client/current_version.cpp; sourceTree = SOURCE_ROOT; };
|
||||
DDA1F1ED126D105B005EFFEB /* current_version.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = current_version.h; path = ../client/current_version.h; sourceTree = SOURCE_ROOT; };
|
||||
DDA26C5D13977E1500DFDFE1 /* sqlite3.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = sqlite3.c; path = ../clientgui/sqlite3.c; sourceTree = SOURCE_ROOT; };
|
||||
DDA290360CB5D80E00512BD8 /* Mac_Saver_Module.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = Mac_Saver_Module.h; path = ../clientscr/Mac_Saver_Module.h; sourceTree = SOURCE_ROOT; };
|
||||
DDA45502140F85DD00D97676 /* str_replace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = str_replace.h; sourceTree = "<group>"; };
|
||||
DDA546600D16964E008CC69A /* QuickTime.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickTime.framework; path = /System/Library/Frameworks/QuickTime.framework; sourceTree = "<absolute>"; };
|
||||
|
@ -1264,6 +1264,7 @@
|
|||
DD21B49D0D750FC600AFFEE5 /* AppKit.framework in Frameworks */,
|
||||
DD1682B10F8DC6D90096D714 /* OpenGL.framework in Frameworks */,
|
||||
DDB42E3412F1B6A400E6D8A2 /* libwx_mac_static.a in Frameworks */,
|
||||
DD6FCB68167745E700C740DB /* libsqlite3.a in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
@ -1494,6 +1495,7 @@
|
|||
DD7C5E7508110AE3002FCE1E /* ScreenSaver.framework */,
|
||||
DD1929D80918A2F100C31BCF /* Security.framework */,
|
||||
DDA90F260B64673D008F2E87 /* libwx_mac_static.a */,
|
||||
DD6FCB67167745E700C740DB /* libsqlite3.a */,
|
||||
DD89165D0F3B1BC200DE5B1C /* GLUT.framework */,
|
||||
DD89165E0F3B1BC200DE5B1C /* OpenGL.framework */,
|
||||
);
|
||||
|
@ -1633,7 +1635,6 @@
|
|||
DDD0697212D70C9400120920 /* sg_TaskPanel.h */,
|
||||
DD247AF70AEA308A0034104A /* SkinManager.cpp */,
|
||||
DD247AF80AEA308A0034104A /* SkinManager.h */,
|
||||
DDA26C5D13977E1500DFDFE1 /* sqlite3.c */,
|
||||
DD81C45B07C5D2880098A04D /* stdwx.h */,
|
||||
DDC836E50EDEA5DB001C2EF9 /* TermsOfUsePage.cpp */,
|
||||
DD04BE1A0EDD836A006D5603 /* TermsOfUsePage.h */,
|
||||
|
@ -2965,7 +2966,6 @@
|
|||
DD806336131FAD9A00DC8971 /* sg_CustomControls.cpp in Sources */,
|
||||
DD806339131FADE700DC8971 /* sg_DlgMessages.cpp in Sources */,
|
||||
DD262C781366D2A200C9A187 /* cc_config.cpp in Sources */,
|
||||
DDA26C5E13977E1500DFDFE1 /* sqlite3.c in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
@ -3616,6 +3616,7 @@
|
|||
LIBRARY_SEARCH_PATHS = (
|
||||
"../../wxMac-2.8.10/src/build/Deployment/",
|
||||
"\"$(SRCROOT)/../../wxMac-2.8.10/src/build/Deployment\"",
|
||||
"/../../sqlite-autoconf-3071401/.libs/",
|
||||
);
|
||||
OTHER_CFLAGS = (
|
||||
"-DHAVE_CONFIG_H",
|
||||
|
@ -3663,6 +3664,7 @@
|
|||
LIBRARY_SEARCH_PATHS = (
|
||||
"../../wxMac-2.8.10/src/build/Deployment/",
|
||||
"\"$(SRCROOT)/../../wxMac-2.8.10/src/build/Deployment\"",
|
||||
"/../../sqlite-autoconf-3071401/.libs/",
|
||||
);
|
||||
OTHER_CFLAGS = (
|
||||
"-DHAVE_CONFIG_H",
|
||||
|
|
|
@ -0,0 +1,109 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This file is part of BOINC.
|
||||
# http://boinc.berkeley.edu
|
||||
# Copyright (C) 2008 University of California
|
||||
#
|
||||
# BOINC is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation,
|
||||
# either version 3 of the License, or (at your option) any later version.
|
||||
#
|
||||
# BOINC is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
#
|
||||
# Script to build Macintosh 32-bit Intel library of sqlite3.7.14.1 for
|
||||
# use in building BOINC Manager.
|
||||
#
|
||||
# by Charlie Fenton 12/11/12
|
||||
#
|
||||
## This script requires OS 10.6 or later
|
||||
#
|
||||
## If you drag-install Xcode 4.3 or later, you must have opened Xcode
|
||||
## and clicked the Install button on the dialog which appears to
|
||||
## complete the Xcode installation before running this script.
|
||||
#
|
||||
## In Terminal, CD to the sqlite-autoconf-3071401 directory.
|
||||
## cd [path]/sqlite-autoconf-3071401/
|
||||
## then run this script:
|
||||
## source [path]/buildsqlite3.sh [ -clean ]
|
||||
##
|
||||
## the -clean argument will force a full rebuild.
|
||||
##
|
||||
|
||||
if [ "$1" != "-clean" ]; then
|
||||
if [ -f .libs/libsqlite3.a ]; then
|
||||
echo "c3.7.14.1 already built"
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
|
||||
export PATH=/usr/local/bin:$PATH
|
||||
|
||||
GCCPATH=`xcrun -find gcc`
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: can't find gcc compiler"
|
||||
return 1
|
||||
fi
|
||||
|
||||
GPPPATH=`xcrun -find g++`
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: can't find g++ compiler"
|
||||
return 1
|
||||
fi
|
||||
|
||||
MAKEPATH=`xcrun -find make`
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: can't find make tool"
|
||||
return 1
|
||||
fi
|
||||
|
||||
TOOLSPATH1=${MAKEPATH%/make}
|
||||
|
||||
ARPATH=`xcrun -find ar`
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: can't find ar tool"
|
||||
return 1
|
||||
fi
|
||||
|
||||
TOOLSPATH2=${ARPATH%/ar}
|
||||
|
||||
export PATH="${TOOLSPATH1}":"${TOOLSPATH2}":/usr/local/bin:$PATH
|
||||
|
||||
SDKPATH=`xcodebuild -version -sdk macosx Path`
|
||||
|
||||
rm -f .libs/libsqlite3.a
|
||||
|
||||
if [ $? -ne 0 ]; then return 1; fi
|
||||
|
||||
export PATH=/usr/local/bin:$PATH
|
||||
export CC="${GCCPATH}";export CXX="${GPPPATH}"
|
||||
export LDFLAGS="-Wl,-syslibroot,${SDKPATH},-arch,i386"
|
||||
export CPPFLAGS="-Os -isysroot ${SDKPATH} -arch i386 -DMAC_OS_X_VERSION_MAX_ALLOWED=1040 -DMAC_OS_X_VERSION_MIN_REQUIRED=1040"
|
||||
export CFLAGS="-Os -isysroot ${SDKPATH} -arch i386 -DMAC_OS_X_VERSION_MAX_ALLOWED=1040 -DMAC_OS_X_VERSION_MIN_REQUIRED=1040"
|
||||
export SDKROOT="${SDKPATH}"
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.4
|
||||
|
||||
./configure --enable-shared=NO --host=i386
|
||||
if [ $? -ne 0 ]; then return 1; fi
|
||||
|
||||
if [ "$1" = "-clean" ]; then
|
||||
make clean
|
||||
fi
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then return 1; fi
|
||||
|
||||
export CC="";export CXX=""
|
||||
export LDFLAGS=""
|
||||
export CPPFLAGS=""
|
||||
export CFLAGS=""
|
||||
export SDKROOT=""
|
||||
|
||||
return 0
|
|
@ -19,7 +19,8 @@
|
|||
#
|
||||
#
|
||||
# Master script to build Universal Binary libraries needed by BOINC:
|
||||
# curl-7.26.0 with c-ares-1.9.1, openssl-1.0.1c and wxMac-2.8.10
|
||||
# curl-7.26.0 with c-ares-1.9.1, openssl-1.0.1c, wxMac-2.8.10,
|
||||
# sqlite3.7.14.1, FreeType-2.4.10 and FTGL-2.1.3
|
||||
#
|
||||
# by Charlie Fenton 7/21/06
|
||||
# Updated 10/18/11 for OS 10.7 lion and XCode 4.2
|
||||
|
@ -27,8 +28,9 @@
|
|||
# Updated 6/25/12 for curl-7.26.0 and c-ares-1.9.1
|
||||
# Updated 6/26/12 for openssl-1.0.1c
|
||||
# Updated 8/3/12 for FreeType-2.4.10 and FTGL-2.1.3~rc5
|
||||
# Updated 12/11/12 for sqlite3.7.14.1 from sqlite-autoconf-3071401
|
||||
#
|
||||
# Download these three packages and place them in a common parent
|
||||
# Download these seven packages and place them in a common parent
|
||||
# directory with the BOINC source tree.
|
||||
#
|
||||
## In Terminal, cd to the mac_build directory of the boinc tree; for
|
||||
|
@ -52,6 +54,7 @@ caresOK="NO"
|
|||
curlOK="NO"
|
||||
opensslOK="NO"
|
||||
wxWidgetsOK="NO"
|
||||
sqlite3OK="NO"
|
||||
freetypeOK="NO"
|
||||
ftglOK="NO"
|
||||
|
||||
|
@ -119,6 +122,22 @@ if [ $? -eq 0 ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "----------------------------------"
|
||||
echo "------ BUILD sqlite3.7.14.1 ------"
|
||||
echo "----------------------------------"
|
||||
echo ""
|
||||
|
||||
cd "${SCRIPT_DIR}"
|
||||
|
||||
cd ../../sqlite-autoconf-3071401/
|
||||
if [ $? -eq 0 ]; then
|
||||
source "${SCRIPT_DIR}/buildsqlite3.sh" ${doclean}
|
||||
if [ $? -eq 0 ]; then
|
||||
sqlite3OK="YES"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "----------------------------------"
|
||||
echo "----- BUILD FreeType-2.4.10 ------"
|
||||
|
@ -191,6 +210,16 @@ if [ "${wxWidgetsOK}" = "NO" ]; then
|
|||
echo ""
|
||||
fi
|
||||
|
||||
if [ "${sqlite3OK}" = "NO" ]; then
|
||||
echo ""
|
||||
echo "----------------------------------"
|
||||
echo "------------ WARNING -------------"
|
||||
echo "------------ -------------"
|
||||
echo "- COULD NOT BUILD sqlite3.7.14.1 -"
|
||||
echo "----------------------------------"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
if [ "${freetypeOK}" = "NO" ]; then
|
||||
echo ""
|
||||
echo "-----------------------------------"
|
||||
|
|
Loading…
Reference in New Issue