IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4541 for trunk/psLib/swig


Ignore:
Timestamp:
Jul 12, 2005, 9:27:28 AM (21 years ago)
Author:
desonia
Message:

Massive code restructuring.

Location:
trunk/psLib/swig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/swig/Makefile.am

    r3937 r4541  
    66
    77SRCDIR = $(shell cd $(top_srcdir) && pwd)
    8 INCLUDES = -I$(SRCDIR)/src \
    9         -I$(SRCDIR)/src/astronomy \
    10         -I$(SRCDIR)/src/collections \
    11         -I$(SRCDIR)/src/dataManip \
    12         -I$(SRCDIR)/src/dataIO \
    13         -I$(SRCDIR)/src/image \
    14         -I$(SRCDIR)/src/sysUtils \
    15         -I/usr/include \
    16         -I/usr/local/include
    178
    189####################################################
     
    2718psLibModule/setup.txt:
    2819        if [ ! -d psLibModule ]; then mkdir psLibModule; fi
    29         echo "includes=$(INCLUDES)" > psLibModule/setup.txt
     20        echo "includes=$(SRCINC)" > psLibModule/setup.txt
    3021        echo "ldflags=-L$(top_builddir)/src $(PSLIB_LIBS)" >> psLibModule/setup.txt
    3122        echo "cflags=$(CFLAGS) -std=c99 -Wno-unused -Wno-strict-aliasing" >> psLibModule/setup.txt
     
    3324psLibModule/pslib_wrap.c: $(srcdir)/pslib.i
    3425        if [ ! -d psLibModule ]; then mkdir psLibModule; fi
    35         $(SWIG) -perl $(INCLUDES) -w451 -o $@ $(srcdir)/pslib.i
     26        $(SWIG) -perl $(SRCINC) -w451 -o $@ $(srcdir)/pslib.i
    3627
    3728psLibModule/Makefile:psLibModule/Makefile.PL psLibModule/setup.txt
  • trunk/psLib/swig/pslib.i

    r3684 r4541  
    22
    33%{
    4 #define PS_ALLOW_MALLOC 
     4#define PS_ALLOW_MALLOC
    55#define SWIG
    66#include "pslib.h"
    77
    88/* SWIG uses malloc/free - make it use the pslib memory functions instead. */
    9 /* 
     9/*
    1010#define malloc(S)    psAlloc(S)
    1111#define realloc(P,S) psRealloc(P,S)
     
    3636#if defined(SWIGPERL)
    3737   if (!SvOK($input)) {
    38       $1 = NULL;     
     38      $1 = NULL;
    3939   } else {
    4040      $1 = PerlIO_findFILE(IoIFP(sv_2io($input)));
     
    5858
    5959/* the actual including of headers are found in each of the directories. */
    60 %include "sysUtils.i"
    61 %include "image.i"
    62 %include "dataIO.i"
    63 %include "dataManip.i"
    64 %include "collections.i"
    65 %include "astronomy.i"
     60%include "astro.i"
     61%include "db.i"
     62%include "fft.i"
     63%include "fits.i"
     64%include "imageops.i"
     65%include "math.i"
     66%include "mathtypes.i"
     67%include "sys.i"
     68%include "types.i"
     69%include "xml.i"
Note: See TracChangeset for help on using the changeset viewer.