X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2FJamfile;h=7dc9dc0c5ce8547d01ca2d58efbacd34d59e59f3;hb=5cb6d627c8c62aa8ed7947a0e2e7ce3fcf08c3b5;hp=6214f71733dc3a56de3731c5560f92b1dcd6ef1b;hpb=78724e8ddcdb94a7b691464ea9e558d0a6665aa7;p=supertux.git diff --git a/src/scripting/Jamfile b/src/scripting/Jamfile index 6214f7173..7dc9dc0c5 100644 --- a/src/scripting/Jamfile +++ b/src/scripting/Jamfile @@ -7,9 +7,10 @@ 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) ; @@ -24,26 +25,25 @@ if $(MINISWIG) rule MiniSwig { Depends $(<) : $(>) $(MINISWIG) ; - Clean clean : $(<) ; } 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 += wrapper.cpp ; + wrapper_sources += [ SearchSource wrapper.cpp ] ; } 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 ] ; }