Changeset 796d104b for core/c


Ignore:
Timestamp:
Jun 12, 2011 12:40:02 AM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
ffffd2de
Parents:
654aa59
Message:

add support for osx

Location:
core/c/jbigi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/c/jbigi/mbuild-all.sh

    r654aa59 r796d104b  
    11#/bin/bash
    22
    3 # TO-DO: Darwin.
     3#FIXME What platforms for MacOS?
     4MISC_DARWIN_PLATFORMS=""
    45
    56# Note: You will have to add the CPU ID for the platform in the CPU ID code
     
    4344LINUX_PLATFORMS="${X86_PLATFORMS} ${MISC_LINUX_PLATFORMS}"
    4445FREEBSD_PLATFORMS="${X86_PLATFORMS} ${MISC_FREEBSD_PLATFORMS}"
     46DARWIN_PLATFORMS="${X86_PLATFORMS} ${MISC_DARWIN_PLATFORMS}"
    4547
    46 VER=$(echo gmp-*.tar.bz2 | sed -re "s/(.*-)(.*)(.*.tar.bz2)$/\2/" | tail --lines=1)
     48# OSX doesn't have the -r parameter as an option for sed.
     49VER=$(echo gmp-*.tar.bz2 | sed -re "s/(.*-)(.*)(.*.tar.bz2)$/\2/" | tail -n 1)
    4750if [ "$VER" == "" ] ; then
    4851        echo "ERROR! Can't find gmp source tarball."
     
    5861        TARGET="-windows-"
    5962        echo "Building windows .dlls for all architectures";;
     63Darwin*)
     64        PLATFORM_LIST=${DARWIN_PLATFORMS}"
     65        NAME="libjbigi"
     66        TYPE="jnilib"
     67        TARGET="-osx-"
     68        echo "Building ${TARGET} .jnilibs for all architectures";;
    6069Linux*)
    6170        NAME="libjbigi"
  • core/c/jbigi/mbuild_jbigi.sh

    r654aa59 r796d104b  
    11#!/bin/bash
    2 # When executed in Mingw: Produces an jbigi.dll
    3 # When executed in Linux/FreeBSD: Produces an libjbigi.so
    4 # What does Darwin produce? libjbigi.jnilib?
     2# When executed in Mingw: Produces a jbigi.dll
     3# When executed in Linux/FreeBSD: Produces a libjbigi.so
     4# When executed in OSX: Produces a libjbigi.jnilib
    55CC="gcc"
    66
     
    1919        LIBFILE="jbigi.dll";;
    2020Darwin*)
    21         JAVA_HOME="/Library/Java/Home"
    22         COMPILEFLAGS="-Wall"
     21        JAVA_HOME=$(/usr/libexec/java_home)
     22        COMPILEFLAGS="-fPIC -Wall"
    2323        INCLUDES="-I. -I../../jbigi/include -I$JAVA_HOME/include"
    2424        LINKFLAGS="-dynamiclib -framework JavaVM"
Note: See TracChangeset for help on using the changeset viewer.