summaryrefslogtreecommitdiff
path: root/legacy/elementary/Makefile_Eolian_Js_Helper.am
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-12-09 16:41:16 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-12-23 22:23:46 -0200
commit4f44ca0a16be2b2637f2a31ca20dc28f2cbf234d (patch)
tree378bb3741e2c835071bb1a64c9331cedf161d64d /legacy/elementary/Makefile_Eolian_Js_Helper.am
parent81bf2796c68c808c2652ca93b596d866b82e9f0d (diff)
efl-js: JavaScript Eolian binding
To configure elementary sources with bindings to use in nodejs add ––with-js=nodejs in configure flags in EFL compilation to generate node files, then compile elementary normally: path/to/efl$ configure --with-js=nodejs path/to/efl$ make path/to/efl$ make install path/to/elm$ configure path/to/efl$ make path/to/efl$ make install To use, you have to require elm: elm = require('elm') The bindings is divided in two parts: generated and manually written. The generation uses the Eolian library for parsing Eo files and generate C++ code that is compiled against V8 interpreter library to create a elm.node file that can be required in a node.js instance. @feature
Diffstat (limited to 'legacy/elementary/Makefile_Eolian_Js_Helper.am')
-rw-r--r--legacy/elementary/Makefile_Eolian_Js_Helper.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/legacy/elementary/Makefile_Eolian_Js_Helper.am b/legacy/elementary/Makefile_Eolian_Js_Helper.am
new file mode 100644
index 0000000000..11c31347ec
--- /dev/null
+++ b/legacy/elementary/Makefile_Eolian_Js_Helper.am
@@ -0,0 +1,15 @@
1
2if HAVE_JS
3EOLIAN_JS = @eolian_js@
4_EOLIAN_JS_DEP = @eolian_js@
5endif
6
7AM_V_EOLJS = $(am__v_EOLJS_@AM_V@)
8am__v_EOLJS_ = $(am__v_EOLJS_@AM_DEFAULT_V@)
9am__v_EOLJS_0 = @echo " EOLJS " $@;
10
11SUFFIXES += .eo.js.cc
12
13%.eo.js.cc: %.eo $(_EOLIAN_JS_DEP)
14 $(AM_V_EOLJS)$(EOLIAN_JS) $(EOLIAN_FLAGS) -o $@ $<
15