public
Last active

Node.js patch: Add-node-headers-installation.patch

  • Download Gist
Add-node-headers-installation.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
From c980b2e11f5a477b63fc797e4ebf37b4a19c876c Mon Sep 17 00:00:00 2001
From: Oleg Efimov <efimovov@gmail.com>
Date: Fri, 29 Oct 2010 18:10:37 +0400
Subject: [PATCH 2/2] Add node headers installation
 
---
Makefile | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
 
diff --git a/Makefile b/Makefile
index 67b5026..d20467c 100644
--- a/Makefile
+++ b/Makefile
@@ -103,6 +103,22 @@ node_sources = src/node.cc \
src/node_timer.cc \
src/node_javascript.cc \
+node_install_includes = src/node.h \
+ src/node_object_wrap.h \
+ src/node_buffer.h \
+ src/node_events.h \
+ src/node_version.h \
+ deps/libeio/eio.h \
+ deps/libev/ev.h \
+ deps/v8/include/*.h \
+
+ifdef DEBUG
+node_install_includes += $(builddir)/debug/src/node_config.h
+else
+node_install_includes += $(builddir)/release/src/node_config.h
+endif
+
+
node_debug_objects = $(addprefix $(builddir)/debug/,$(node_sources:.cc=.o))
node_release_objects = $(addprefix $(builddir)/release/,$(node_sources:.cc=.o))
@@ -316,6 +332,8 @@ $(builddir)/debug/src/node.o: $(builddir)/debug/src/node_config.h
install: all
$(INSTALL) -d -m 755 '$(DESTDIR)$(PREFIX)/bin'
$(INSTALL) $(builddir)/node '$(DESTDIR)$(PREFIX)/bin'
+ $(INSTALL) -d -m 755 '$(DESTDIR)$(PREFIX)/include/node'
+ $(INSTALL) $(node_install_includes) '$(DESTDIR)$(PREFIX)/include/node'
$(INSTALL) -d -m 755 '$(DESTDIR)$(PREFIX)/share/man/man1/'
$(INSTALL) -d -m 755 '$(DESTDIR)$(PREFIX)/lib/node/wafadmin/Tools'
$(INSTALL) tools/wafadmin/*.py '$(DESTDIR)$(PREFIX)/lib/node/wafadmin'
--
1.7.1

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.