[beast: 5/70] V8BSE: add basic rules to build v8bse.node module
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 5/70] V8BSE: add basic rules to build v8bse.node module
- Date: Tue, 28 Mar 2017 23:22:07 +0000 (UTC)
commit 11855623a05001b4b594806fa4e0012504263585
Author: Tim Janik <timj gnu org>
Date: Fri Feb 17 19:08:05 2017 +0100
V8BSE: add basic rules to build v8bse.node module
Signed-off-by: Tim Janik <timj gnu org>
ebeast/v8bse/Makefile.am | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/ebeast/v8bse/Makefile.am b/ebeast/v8bse/Makefile.am
index c2c1368..b0b5668 100644
--- a/ebeast/v8bse/Makefile.am
+++ b/ebeast/v8bse/Makefile.am
@@ -1,8 +1,34 @@
# BEAST & BSE
include $(top_srcdir)/Makefile.decl
+AM_CXXFLAGS += $(BSE_CFLAGS) $(RAPICORN_CFLAGS) -DRAPICORN_CONVENIENCE -DG_DISABLE_DEPRECATED
-DG_DISABLE_CONST_RETURNS
+AIDACC_VDEBUG = $(AIDACC) $(if $(findstring 1, $(V)), --aida-debug)
CLEANDIRS =
+# == v8bse ==
+AIDASTDINC = $(shell ${AIDACC} -x V8Stub.py -G --print-include-path /dev/null)
+# v8 Bse bindings
+v8bse.cc: ../../bse/bseapi.idl ./V8Stub.py
+ $(AM_V_GEN)
+ $(Q) ${AIDACC} -x V8Stub.py $< -o $@ -G strip-path=$(abs_top_srcdir)/
+ @touch v8bse.cc # FIXME
+CLEANFILES += v8bse.cc *.pyc *.pyo
+# v8 'Bse' node module
+NODE_GYP = $(strip \
+ HOME=./node_modules/.electron-gyp \
+ CXX="$(CXX)" CXXFLAGS="$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \
+ ./node_modules/.bin/node-gyp \
+ $(if $(findstring 1, $(V)) , --verbose) \
+ --target=$(shell ./node_modules/electron/dist/electron --version) \
+)
+v8bse.node: v8bse.cc ./node_modules/electron/dist/electron
+ $(AM_V_GEN)
+ $(Q) rm -f v8bse.node build/Release/v8bse.node
+ $(Q) $(NODE_GYP) rebuild --dist-url=https://atom.io/download/electron
+ $(Q) ln -sv build/Release/v8bse.node
+all: v8bse.node
+CLEANFILES += v8bse.node
+CLEANDIRS += build/
# == electron ==
npm:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]