X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2FJamfile;h=27116aa4a3bcbe6256d9b93b6fdc751ba58701a9;hb=01a345ecc4e807d4e1bbdd7c25f87a6013ed54fe;hp=9def30629ca400c9673e150fba0c1e145e0bf90a;hpb=8cecc7815e5ab5fe2b646dbe6aaa8e95cf08e71f;p=supertux.git diff --git a/src/scripting/Jamfile b/src/scripting/Jamfile index 9def30629..27116aa4a 100644 --- a/src/scripting/Jamfile +++ b/src/scripting/Jamfile @@ -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,7 +25,6 @@ if $(MINISWIG) rule MiniSwig { Depends $(<) : $(>) $(MINISWIG) ; - Clean clean : $(<) ; } actions MiniSwig bind headerfile @@ -38,7 +38,7 @@ if $(MINISWIG) 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)