Skip to content

Commit

Permalink
Updated sqlcipher version to 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mevansam committed Feb 29, 2012
1 parent 35eb6b9 commit 479daed
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build-droid/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export EXPAT_VERSION="2.0.1"
export YAJL_VERSION="2.0.1"

# Project version to use to build sqlcipher
export SQLCIPHER_VERSION="1.1.8"
export SQLCIPHER_VERSION="2.0.3"

# Project versions to use for SOCI (Sqlite3 C++ database library)
export SOCI_VERSION="3.1.0"
Expand Down
10 changes: 5 additions & 5 deletions build-droid/build-sqlcipher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ set -e
# Download source
if [ ! -e "sqlcipher-${SQLCIPHER_VERSION}.tar.gz" ]
then
curl $PROXY -o "sqlcipher-${SQLCIPHER_VERSION}.tar.gz" -L "https://github.com/sjlombardo/sqlcipher/tarball/v${SQLCIPHER_VERSION}"
curl $PROXY -o "sqlcipher-${SQLCIPHER_VERSION}.tar.gz" -L "https://nodeload.github.com/sqlcipher/sqlcipher/tarball/v${SQLCIPHER_VERSION}"
fi

# Extract source
rm -rf sjlombardo-sqlcipher-*
rm -rf *-sqlcipher-*
tar zxvf "sqlcipher-${SQLCIPHER_VERSION}.tar.gz"

# Build
pushd sjlombardo-sqlcipher-*
pushd *-sqlcipher-*
export CC=${DROIDTOOLS}-gcc
export LD=${DROIDTOOLS}-ld
export CPP=${DROIDTOOLS}-cpp
Expand All @@ -52,7 +52,7 @@ export LDFLAGS="-Os -fpic -lc -Wl,-rpath-link=${SYSROOT}/usr/lib -L${SYSROOT}/us
export CFLAGS="-Os -D_FILE_OFFSET_BITS=64 -pipe -isysroot ${SYSROOT} -I${ROOTDIR}/include -DSQLITE_HAS_CODEC"
export CXXFLAGS="-Os -D_FILE_OFFSET_BITS=64 -pipe -isysroot ${SYSROOT} -I${ROOTDIR}/include -DSQLITE_HAS_CODEC"

./configure --host=${ARCH}-android-linux --target=${PLATFORM} --prefix=${ROOTDIR} --disable-readline --disable-tcl --enable-tempstore=no
./configure --host=${ARCH}-android-linux --target=${PLATFORM} --prefix=${ROOTDIR} --disable-readline --disable-tcl --enable-threadsafe --enable-cross-thread-connections --enable-tempstore=no

# Fix libtool to not create versioned shared libraries
mv "libtool" "libtool~"
Expand All @@ -66,4 +66,4 @@ make install
popd

# Clean up
rm -rf sjlombardo-sqlcipher-*
rm -rf *-sqlcipher-*
2 changes: 1 addition & 1 deletion build-ios/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export EXPAT_VERSION="2.0.1"
export YAJL_VERSION="2.0.1"

# Project version to use to build sqlcipher
export SQLCIPHER_VERSION="1.1.8"
export SQLCIPHER_VERSION="2.0.3"

# Project versions to use for SOCI (Sqlite3 C++ database library)
export SOCI_VERSION="3.1.0"
Expand Down
10 changes: 5 additions & 5 deletions build-ios/build-sqlcipher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ set -e
# Download source
if [ ! -e "sqlcipher-${SQLCIPHER_VERSION}.tar.gz" ]
then
curl $PROXY -o "sqlcipher-${SQLCIPHER_VERSION}.tar.gz" -L "https://github.com/sjlombardo/sqlcipher/tarball/v${SQLCIPHER_VERSION}"
curl $PROXY -o "sqlcipher-${SQLCIPHER_VERSION}.tar.gz" -L "https://nodeload.github.com/sqlcipher/sqlcipher/tarball/v${SQLCIPHER_VERSION}"
fi

# Extract source
rm -rf sjlombardo-sqlcipher-*
rm -rf *-sqlcipher-*
tar zxvf "sqlcipher-${SQLCIPHER_VERSION}.tar.gz"

# Build
pushd sjlombardo-sqlcipher-*
pushd *-sqlcipher-*
export DEVROOT="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer"
export SDKROOT="${DEVROOT}/SDKs/${PLATFORM}${SDK}.sdk"
export CC=${DEVROOT}/usr/bin/gcc
Expand All @@ -62,10 +62,10 @@ then
export CXXFLAGS="${CXXFLAGS} -mmacosx-version-min=10.5"
fi
fi
./configure --host=${ARCH}-apple-darwin --prefix=${ROOTDIR} --disable-readline --disable-tcl --enable-tempstore=no
./configure --host=${ARCH}-apple-darwin --prefix=${ROOTDIR} --disable-readline --disable-tcl --enable-threadsafe --enable-cross-thread-connections --enable-tempstore=no
make
make install
popd

# Clean up
rm -rf sjlombardo-sqlcipher-*
rm -rf *-sqlcipher-*

0 comments on commit 479daed

Please sign in to comment.