Option to jump with up on keyboard.
[supertux.git] / src / scripting / Jamfile
index 64d4e09..a6df87e 100644 (file)
@@ -7,15 +7,21 @@ if $(MINISWIG)
     {
         local sources = [ SearchSource $(>) ] ;
         local cppfile = [ LocateTarget $(<) : $(SUBDIR) ] ;
-        local headerfile = [ LocateTarget $(<:S=.h) : $(SUBDIR) ] ;
+        local headerfile = [ LocateTarget $(<:S=.hpp) : $(SUBDIR) ] ;  
         SEARCH on $(headerfile) = $(SOURCH_SOURCE) ;
-    
+
         MiniSwig $(cppfile) : $(sources) ;
+
         CPPFLAGS on $(cppfile) = $(CPPFLAGS) -DSCRIPTING_API ;
         headerfile on $(cppfile) = $(headerfile) ;
         modulename on $(cppfile) = $(3) ;
         FLAGS on $(cppfile) = $(4) ;
 
+        local h = $(headerfile:G=) ;
+        h = $(h:D=) ;
+        Includes $(h) : $(headerfile) ;
+        Includes $(headerfile) : $(cppfile) ;
+
         local object = [ CompileObject $(cppfile) ] ;
 
         return $(object) ;
@@ -28,13 +34,13 @@ if $(MINISWIG)
 
     actions MiniSwig bind headerfile
     {
-        $(CPP) -x c $(CPPFLAGS) $(>) -o $(LOCATE_OBJECTS)/miniswig.tmp
+        $(CPP) -x c -CC $(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
     }
 }
 
-wrapper_sources = [ Filter [ Wildcard *.cpp *.h ] : wrapper.cpp wrapper.h ] ;
+wrapper_sources = [ Filter [ Wildcard *.cpp *.hpp ] : wrapper.cpp wrapper.hpp ] ;
 if ! $(MINISWIG)
 {
     wrapper_sources += [ SearchSource wrapper.cpp ] ;
@@ -43,6 +49,6 @@ wrapper_objects = [ CompileObjects $(wrapper_sources) ] ;
 if $(MINISWIG)
 {
     wrapper_objects += 
-        [ MiniSwigRule wrapper.cpp : wrapper.interface.h : supertux : --select-namespace Scripting ] ;
+        [ MiniSwigRule wrapper.cpp : wrapper.interface.hpp : supertux : --select-namespace Scripting ] ;
 }