libetpan - fdik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.1 KiB

6 years ago
8 years ago
6 years ago
8 years ago
6 years ago
8 years ago
6 years ago
8 years ago
6 years ago
8 years ago
  1. #!/bin/sh
  2. set -e
  3. IOSSDK="`xcodebuild -showsdks 2>/dev/null | grep iphoneos | sed 's/.*iphoneos\(.*\)/\1/'`"
  4. OSXSDK="`xcodebuild -showsdks 2>/dev/null | grep macosx | sed 's/.*macosx\(.*\)/\1/'`"
  5. if test "x`uname`" = xLinux ; then
  6. distdir=libetpan-travis-build
  7. ./autogen.sh --with-curl=no --disable-db --with-expat=no
  8. make dist distdir=$distdir
  9. tar xzf $distdir.tar.gz
  10. cd $distdir
  11. ./configure --with-curl=no --disable-db --with-expat=no
  12. make
  13. cd tests
  14. make imap-sample
  15. else
  16. echo Building library for iPhoneOS
  17. xctool -project build-mac/libetpan.xcodeproj -sdk iphoneos$IOSSDK -scheme "libetpan ios" build ARCHS="armv7 armv7s arm64"
  18. echo Building library for iPhoneSimulator
  19. xctool -project build-mac/libetpan.xcodeproj -sdk iphonesimulator$IOSSDK -scheme "libetpan ios" build ARCHS="i386 x86_64"
  20. echo Building library for Mac
  21. xctool -project build-mac/libetpan.xcodeproj -sdk macosx$OSXSDK -scheme "static libetpan" build
  22. echo Building framework for Mac
  23. xctool -project build-mac/libetpan.xcodeproj -sdk macosx$OSXSDK -scheme "libetpan" build
  24. fi