From 8597837cd6e8a2d9b7f50d9d8e436a5981d49902 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sat, 3 Mar 2007 15:24:07 +0000 Subject: [PATCH] fix jamfile to avoid having to rum jam twice when miniswig inputfiles changed SVN-Revision: 4912 --- src/scripting/Jamfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) ; -- 2.11.0