# HG changeset patch # User Thinker K.F. Li # Date 1275661748 -28800 # Node ID 7630dac0a104c48eb2cff190900073103e25f14d # Parent d7f224b97b7f6192c6fbd73011c14d6fdad86463 Create Makefile for nodejs plugin diff -r d7f224b97b7f -r 7630dac0a104 Makefile.am --- a/Makefile.am Wed May 26 00:51:12 2010 +0800 +++ b/Makefile.am Fri Jun 04 22:29:08 2010 +0800 @@ -2,3 +2,7 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libmbfly.pc EXTRA_DIST = libmbfly.pc.in Doxyfile README.h + +if NODEJS + SUBDIRS += nodejs +endif diff -r d7f224b97b7f -r 7630dac0a104 configure.ac --- a/configure.ac Wed May 26 00:51:12 2010 +0800 +++ b/configure.ac Fri Jun 04 22:29:08 2010 +0800 @@ -86,6 +86,18 @@ cairo=true [fi] +AC_ARG_ENABLE([nodejs], + [ --enable-nodejs Turn on nodejs support], +[case "${enableval}" in + yes) nodejs=true ;; + no) nodejs=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-nodejs]) ;; +esac],[nodejs=false]) +[if [ x"${nodejs}" = xtrue ]; then ] + AC_CHECK_PROG([has_node], [node], [true], [false]) +[fi] +AM_CONDITIONAL([NODEJS], [test x"${nodejs}-${has_node}" = xtrue-true]) + # Define AM and AC variable for sh_text AM_CONDITIONAL([SH_TEXT], [test x$sh_text = xtrue -a x$cairo = xtrue]) [if [ x"${sh_text}" = xtrue -a x$cairo = xtrue ]; then] @@ -118,6 +130,7 @@ src/Makefile include/Makefile inkscape/Makefile + nodejs/Makefile tools/Makefile]) AH_TEMPLATE([SH_TEXT],[Enable sh_text object]) diff -r d7f224b97b7f -r 7630dac0a104 nodejs/Makefile.am --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nodejs/Makefile.am Fri Jun 04 22:29:08 2010 +0800 @@ -0,0 +1,1 @@ +# empty