forked from Jazzo/libetpan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.sh
executable file
·24 lines (22 loc) · 889 Bytes
/
script.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
#!/bin/sh
set -e
if test "x`uname`" = xLinux ; then
distdir=libetpan-travis-build
./autogen.sh --with-curl=no --disable-db --with-expat=no
make dist distdir=$distdir
tar xzf $distdir.tar.gz
cd $distdir
./configure --with-curl=no --disable-db --with-expat=no
make
cd tests
make imap-sample
else
echo Building library for iPhoneOS
xctool -project build-mac/libetpan.xcodeproj -sdk iphoneos8.1 -scheme "libetpan ios" build ARCHS="armv7 armv7s arm64"
echo Building library for iPhoneSimulator
xctool -project build-mac/libetpan.xcodeproj -sdk iphonesimulator8.1 -scheme "libetpan ios" build ARCHS="i386 x86_64"
echo Building library for Mac
xctool -project build-mac/libetpan.xcodeproj -sdk macosx10.10 -scheme "static libetpan" build
echo Building framework for Mac
xctool -project build-mac/libetpan.xcodeproj -sdk macosx10.10 -scheme "libetpan" build
fi