{
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) ;
}
}
-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 ] ;