oops forgot files again
[supertux.git] / src / scripting / Jamfile
index eb5c492..27116aa 100644 (file)
@@ -7,11 +7,12 @@ if $(MINISWIG)
     {
         local sources = [ SearchSource $(>) ] ;
         local cppfile = [ LocateTarget $(<) : $(SUBDIR) ] ;
-        local headerfile = [ LocateTarget $(<:S=.h) : $(SUBDIR) ] ;
+        local headerfile = [ LocateTarget $(<:S=.h) : $(SUBDIR) ] ;    
         SEARCH on $(headerfile) = $(SOURCH_SOURCE) ;
-    
+
+        Depends $(cppfile) : $(headerfile) ;
         MiniSwig $(cppfile) : $(sources) ;
-        CPPFLAGS on $(cppfile) = $(CPPFLAGS) ;
+        CPPFLAGS on $(cppfile) = $(CPPFLAGS) -DSCRIPTING_API ;
         headerfile on $(cppfile) = $(headerfile) ;
         modulename on $(cppfile) = $(3) ;
         FLAGS on $(cppfile) = $(4) ;
@@ -24,21 +25,20 @@ if $(MINISWIG)
     rule MiniSwig
     {
         Depends $(<) : $(>) $(MINISWIG) ;
-        Clean clean : $(<) ;
     }
 
     actions MiniSwig bind headerfile
     {
         $(CPP) -x c $(CPPFLAGS) $(>) -o $(LOCATE_OBJECTS)/miniswig.tmp
-        $(MINISWIG) --output-cpp $(<) --input $(LOCATE_OBJECTS)/miniswig.tmp --output-hpp $(headerfile) --module $(modulename) $(FLAGS)
-#        rm -f $(LOCATE_OBJECTS)/miniswig.tmp
+        ./miniswig --output-cpp $(<) --input $(LOCATE_OBJECTS)/miniswig.tmp --output-hpp $(headerfile) --module $(modulename) $(FLAGS)
+#       rm -f $(LOCATE_OBJECTS)/miniswig.tmp
     }
 }
 
 wrapper_sources = [ Filter [ Wildcard *.cpp *.h ] : wrapper.cpp wrapper.h ] ;
 if ! $(MINISWIG)
 {
-    wrapper_sources += wrapper.cpp ;
+    wrapper_sources += [ SearchSource wrapper.cpp ] ;
 }
 wrapper_objects = [ CompileObjects $(wrapper_sources) ] ;
 if $(MINISWIG)