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:
parent
32212d5cc0
commit
74e17fdbf6
9 changed files with 9 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -124,6 +124,7 @@ Examples/test-suite/tcl/*/
|
|||
Examples/test-suite/uffi/*/
|
||||
*_wrap.c
|
||||
*_wrap.cxx
|
||||
*-gypcopy.cxx
|
||||
|
||||
# C# generated files
|
||||
*_runme.exe.mdb
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
##################################################################
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue