Permalink
Browse files

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
  • Loading branch information...
1 parent 32212d5 commit 74e17fdbf662d04f21b484616174ca7abdf1d30f @kwwette kwwette committed May 28, 2014
View
@@ -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"]
}
]

0 comments on commit 74e17fd

Please sign in to comment.