Merged first chunk of Guile changes contributed by John Lenz.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
131f153f70
commit
e5ac3696bc
22 changed files with 1061 additions and 460 deletions
|
|
@ -338,6 +338,36 @@ guile_cpp: $(SRCS)
|
|||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(GUILE_INCLUDE) $(ICXXSRCS) $(SRCS) $(CXXSRCS)
|
||||
$(CXXSHARED) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o lib$(TARGET)$(SO)
|
||||
|
||||
#------------------------------------------------------------------
|
||||
# Build a dynamically loaded module with passive linkage and the scm interface
|
||||
#------------------------------------------------------------------
|
||||
guile_scm: $(SRCS)
|
||||
$(SWIG) -guile -scm -Linkage passive $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(GUILE_INCLUDE) $(ISRCS) $(SRCS)
|
||||
$(LDSHARED) $(OBJS) $(IOBJS) $(LIBS) -o lib$(TARGET)$(SO)
|
||||
|
||||
guile_scm_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -guile -scm -Linkage passive $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(GUILE_INCLUDE) $(ICXXSRCS) $(SRCS) $(CXXSRCS)
|
||||
$(CXXSHARED) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o lib$(TARGET)$(SO)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Build a dynamically loadable module with passive linkage using the scm interface,
|
||||
# linked against SWIG runtime lib
|
||||
# -----------------------------------------------------------------
|
||||
|
||||
GUILE_SCM_RUNTIME=-L$(RUNTIMEDIR) -lswigguilescm@release_suffix@
|
||||
|
||||
guile_scm_multi: $(SRCS)
|
||||
$(SWIG) -c -guile -scm -Linkage passive $(SWIGOPT) $(INTERFACE)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(GUILE_INCLUDE) $(ISRCS) $(SRCS)
|
||||
$(LDSHARED) $(OBJS) $(IOBJS) $(GUILE_SCM_RUNTIME) $(LIBS) -o lib$(TARGET)$(SO)
|
||||
|
||||
guile_scm_multi_cpp: $(SRCS)
|
||||
$(SWIG) -c -c++ -guile -scm -Linkage passive $(SWIGOPT) $(INTERFACE)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(INCLUDES) $(GUILE_INCLUDE) $(ICXXSRCS) $(SRCS) $(CXXSRCS)
|
||||
$(CXXSHARED) $(OBJS) $(IOBJS) $(GUILE_SCM_RUNTIME) $(LIBS) $(CPP_DLLIBS) -o lib$(TARGET)$(SO)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Build a dynamically loadable module with passive linkage
|
||||
# -----------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -8,8 +8,9 @@
|
|||
|
||||
#ifdef SWIGGUILE
|
||||
/* A silly testing typemap for feeding a doubly indirect integer */
|
||||
%typemap(in) int *&XYZZY (int temp1, int *temp2)
|
||||
"temp1 = gh_scm2int($input); temp2 = &temp1; $1 = &temp2;";
|
||||
%typemap(in) int *&XYZZY (int temp1, int *temp2) {
|
||||
temp1 = gh_scm2int($input); temp2 = &temp1; $1 = &temp2;
|
||||
};
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue