first step to support nodejs
This commit is contained in:
		| @@ -427,6 +427,33 @@ maintainer-clean-example-targets: | ||||
| EOF | ||||
| ]) | ||||
|  | ||||
| # use this in configure.ac to support C++ examples | ||||
| AC_DEFUN([AX_USE_NODEJS], [ | ||||
|   AC_PATH_PROG(ANDROID, [android], [0], | ||||
|                          [${PATH}${PATH_SEPARATOR}${ANDROID_HOME}/tools]) | ||||
|   AC_PATH_PROG(CORDOVA, [cordova], [0], | ||||
|                         [${PATH}${PATH_SEPARATOR}$(pwd)/node_modules/cordova/bin]) | ||||
|   if test ${CORDOVA} = 0; then | ||||
|      AC_MSG_WARN([cordova is missing, on ubuntu install cordova-cli from repository ppa:cordova-ubuntu/ppa]) | ||||
|   fi | ||||
|   if test ${ANDROID} = 0; then | ||||
|      AC_MSG_WARN([android sdk is missing, set variable ANDROID_HOME after installation]) | ||||
|   fi | ||||
|   AM_CONDITIONAL(HAVE_CORDOVA, [test ${CORDOVA} != 0 -a ${ANDROID} != 0]) | ||||
|   AX_SUBST(CORDOVA) | ||||
|   AC_CONFIG_FILES([nodejs/package.json]) | ||||
|   AC_CONFIG_FILES([nodejs/makefile]) | ||||
|   AC_CONFIG_FILES([cordova/makefile]) | ||||
|   AC_CONFIG_FILES([cordova/config.xml]) | ||||
|   AX_ADD_MAKEFILE_TARGET_DEP([maintainer-clean-am], [maintainer-clean-example-targets], [examples/makefile.in]) | ||||
|   test -f examples/makefile.in && cat >> examples/makefile.in <<EOF | ||||
| #### Begin: Appended by $0 | ||||
| maintainer-clean-example-targets: | ||||
| 	-rm makefile.in | ||||
| #### End: $0 | ||||
| EOF | ||||
| ]) | ||||
|  | ||||
| # use this in configure.ac to support HTML data for webservers | ||||
| AC_DEFUN([AX_BUILD_HTML], [ | ||||
|   AC_CONFIG_FILES([html/makefile]) | ||||
|   | ||||
| @@ -1020,6 +1020,10 @@ if testtag AX_USE_DOXYGEN; then | ||||
|         if testtag AX_BUILD_TEST AX_USE_CPPUNIT; then | ||||
|             doxyadd INPUT "@top_srcdir@/test" | ||||
|         fi | ||||
|         if testtag AX_USE_NODEJS; then | ||||
|             doxyadd INPUT "@top_srcdir@/nodejs" | ||||
|             doxyreplace EXCLUDE "@top_srcdir@/nodejs/node_modules" | ||||
|         fi | ||||
|         doxyreplace FILE_PATTERNS '*.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.idl *.ddl *.odl *.h *.hh *.hxx *.hpp *.h++ *.cs *.d *.php *.php4 *.php5 *.phtml *.inc *.m *.markdown *.md *.mm *.dox *.py *.f90 *.f *.for *.tcl *.vhd *.vhdl *.ucf *.qsf *.as *.js *.wt *.sql' | ||||
|         doxyreplace RECURSIVE YES | ||||
|         doxyreplace EXCLUDE_PATTERNS "moc_* uic_* qrc_* version.[ch]xx" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user