projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ Patch #1793 ] Turn physic into POD
[supertux.git]
/
src
/
scripting
/
Jamfile
diff --git
a/src/scripting/Jamfile
b/src/scripting/Jamfile
index
9def306
..
7dc9dc0
100644
(file)
--- a/
src/scripting/Jamfile
+++ b/
src/scripting/Jamfile
@@
-7,11
+7,12
@@
if $(MINISWIG)
{
local sources = [ SearchSource $(>) ] ;
local cppfile = [ LocateTarget $(<) : $(SUBDIR) ] ;
{
local sources = [ SearchSource $(>) ] ;
local cppfile = [ LocateTarget $(<) : $(SUBDIR) ] ;
- local headerfile = [ LocateTarget $(<:S=.h
) : $(SUBDIR) ] ;
+ local headerfile = [ LocateTarget $(<:S=.h
pp) : $(SUBDIR) ] ;
SEARCH on $(headerfile) = $(SOURCH_SOURCE) ;
SEARCH on $(headerfile) = $(SOURCH_SOURCE) ;
-
+
+ Depends $(cppfile) : $(headerfile) ;
MiniSwig $(cppfile) : $(sources) ;
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) ;
headerfile on $(cppfile) = $(headerfile) ;
modulename on $(cppfile) = $(3) ;
FLAGS on $(cppfile) = $(4) ;
@@
-24,26
+25,25
@@
if $(MINISWIG)
rule MiniSwig
{
Depends $(<) : $(>) $(MINISWIG) ;
rule MiniSwig
{
Depends $(<) : $(>) $(MINISWIG) ;
- Clean clean : $(<) ;
}
actions MiniSwig bind headerfile
{
}
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
}
}
./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 *.h
pp ] : wrapper.cpp wrapper.hpp
] ;
if ! $(MINISWIG)
{
if ! $(MINISWIG)
{
- wrapper_sources +=
wrapper.cpp
;
+ wrapper_sources +=
[ SearchSource wrapper.cpp ]
;
}
wrapper_objects = [ CompileObjects $(wrapper_sources) ] ;
if $(MINISWIG)
{
wrapper_objects +=
}
wrapper_objects = [ CompileObjects $(wrapper_sources) ] ;
if $(MINISWIG)
{
wrapper_objects +=
- [ MiniSwigRule wrapper.cpp : wrapper.interface.h : supertux : --select-namespace Scripting ] ;
+ [ MiniSwigRule wrapper.cpp : wrapper.interface.h
pp
: supertux : --select-namespace Scripting ] ;
}
}