X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2FJamfile;h=3c3451a3bbf807110f828a6102851c0a71424158;hb=8597837cd6e8a2d9b7f50d9d8e436a5981d49902;hp=7dc9dc0c5ce8547d01ca2d58efbacd34d59e59f3;hpb=63ccedcdc3dd65f3677c012f3d3e6e6233e5b002;p=supertux.git diff --git a/src/scripting/Jamfile b/src/scripting/Jamfile index 7dc9dc0c5..3c3451a3b 100644 --- a/src/scripting/Jamfile +++ b/src/scripting/Jamfile @@ -10,13 +10,18 @@ if $(MINISWIG) 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) ; + Depends $(headerfile) : $(cppfile) ; + local object = [ CompileObject $(cppfile) ] ; return $(object) ;