diff options
author | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2014-12-09 16:41:16 -0200 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2015-12-23 22:23:46 -0200 |
commit | 9dbba7412358ac31af2f8e962d30438681b0f097 (patch) | |
tree | 91d4a92a3d9e89c8fffad6766b6c8e1b0e85b5f2 /Makefile_Eolian_Js_Helper.am | |
parent | b2ad8058c7e56dc2f0942b5291a630ea03a3202d (diff) | |
download | elementary-9dbba7412358ac31af2f8e962d30438681b0f097.tar.gz |
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 'Makefile_Eolian_Js_Helper.am')
-rw-r--r-- | Makefile_Eolian_Js_Helper.am | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile_Eolian_Js_Helper.am b/Makefile_Eolian_Js_Helper.am new file mode 100644 index 000000000..11c31347e --- /dev/null +++ b/Makefile_Eolian_Js_Helper.am @@ -0,0 +1,15 @@ + +if HAVE_JS +EOLIAN_JS = @eolian_js@ +_EOLIAN_JS_DEP = @eolian_js@ +endif + +AM_V_EOLJS = $(am__v_EOLJS_@AM_V@) +am__v_EOLJS_ = $(am__v_EOLJS_@AM_DEFAULT_V@) +am__v_EOLJS_0 = @echo " EOLJS " $@; + +SUFFIXES += .eo.js.cc + +%.eo.js.cc: %.eo $(_EOLIAN_JS_DEP) + $(AM_V_EOLJS)$(EOLIAN_JS) $(EOLIAN_FLAGS) -o $@ $< + |