Fix Javascript examples so that "make clean" works properly with node

- Need to copy example.cxx to build directory so that build products
  end up in the right place; use a gyp command expansion to do so
This commit is contained in:
Karl Wette 2014-05-28 23:39:10 +02:00
commit 74e17fdbf6
9 changed files with 9 additions and 8 deletions

1
.gitignore vendored
View file

@ -124,6 +124,7 @@ Examples/test-suite/tcl/*/
Examples/test-suite/uffi/*/
*_wrap.c
*_wrap.cxx
*-gypcopy.cxx
# C# generated files
*_runme.exe.mdb

View file

@ -730,7 +730,7 @@ javascript_clean:
rm -f *_wrap* $(RUNME)
rm -f core @EXTRA_CLEAN@
rm -f *.@OBJEXT@ *@JSSO@ *.$(SO)
rm -f binding.gyp
rm -f binding.gyp example-gypcopy.cxx
cd $(ROOT_DIR)/Tools/javascript && $(MAKE) -s clean
##################################################################

View file

@ -2,7 +2,7 @@
"targets": [
{
"target_name": "example",
"sources": [ "$srcdir/example.cxx", "example_wrap.cxx" ],
"sources": [ "<!(cp $srcdir/example.cxx example-gypcopy.cxx && echo example-gypcopy.cxx)", "example_wrap.cxx" ],
"include_dirs": ["$srcdir"]
}
]

View file

@ -2,7 +2,7 @@
"targets": [
{
"target_name": "example",
"sources": [ "$srcdir/example.cxx", "example_wrap.cxx" ],
"sources": [ "<!(cp $srcdir/example.cxx example-gypcopy.cxx && echo example-gypcopy.cxx)", "example_wrap.cxx" ],
"include_dirs": ["$srcdir"]
}
]

View file

@ -2,7 +2,7 @@
"targets": [
{
"target_name": "example",
"sources": [ "$srcdir/example.cxx", "example_wrap.cxx" ],
"sources": [ "<!(cp $srcdir/example.cxx example-gypcopy.cxx && echo example-gypcopy.cxx)", "example_wrap.cxx" ],
"include_dirs": ["$srcdir"],
'defines': [
'BUILDING_NODE_EXTENSION=1',

View file

@ -2,7 +2,7 @@
"targets": [
{
"target_name": "example",
"sources": [ "$srcdir/example.cxx", "example_wrap.cxx" ],
"sources": [ "<!(cp $srcdir/example.cxx example-gypcopy.cxx && echo example-gypcopy.cxx)", "example_wrap.cxx" ],
"include_dirs": ["$srcdir"]
}
]

View file

@ -2,7 +2,7 @@
"targets": [
{
"target_name": "example",
"sources": [ "$srcdir/example.cxx", "example_wrap.cxx" ],
"sources": [ "<!(cp $srcdir/example.cxx example-gypcopy.cxx && echo example-gypcopy.cxx)", "example_wrap.cxx" ],
"include_dirs": ["$srcdir"]
}
]

View file

@ -2,7 +2,7 @@
"targets": [
{
"target_name": "example",
"sources": [ "$srcdir/example.cxx", "example_wrap.cxx" ],
"sources": [ "<!(cp $srcdir/example.cxx example-gypcopy.cxx && echo example-gypcopy.cxx)", "example_wrap.cxx" ],
"include_dirs": ["$srcdir"]
}
]

View file

@ -2,7 +2,7 @@
"targets": [
{
"target_name": "example",
"sources": [ "$srcdir/example.cxx", "example_wrap.cxx" ],
"sources": [ "<!(cp $srcdir/example.cxx example-gypcopy.cxx && echo example-gypcopy.cxx)", "example_wrap.cxx" ],
"include_dirs": ["$srcdir"]
}
]