X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2FJamfile;h=a6df87e91c443fa5dd46278fecf2dea34541d39e;hb=0608116fe96de0edda6dcd8d1e0e528ff1c73f9f;hp=d4ab29d36bf3db5029f1e996129e251b0bb52132;hpb=e2ccc082212e81a7bc2d299d6d5ecb7dee374de2;p=supertux.git diff --git a/src/scripting/Jamfile b/src/scripting/Jamfile index d4ab29d36..a6df87e91 100644 --- a/src/scripting/Jamfile +++ b/src/scripting/Jamfile @@ -7,16 +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) ; - Depends $(cppfile) : $(headerfile) ; 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) ; @@ -35,7 +40,7 @@ if $(MINISWIG) } } -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 ] ; @@ -44,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 ] ; }