|
|
@ -443,8 +443,23 @@ maintainer-clean-example-targets: |
|
|
|
EOF |
|
|
|
EOF |
|
|
|
]) |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
# use this in configure.ac to support C++ examples |
|
|
|
# use this in configure.ac to support NodeJS |
|
|
|
AC_DEFUN([AX_USE_NODEJS], [ |
|
|
|
AC_DEFUN([AX_USE_NODEJS], [ |
|
|
|
|
|
|
|
AC_PATH_PROG(ANDROID, [android], [0], |
|
|
|
|
|
|
|
[${PATH}${PATH_SEPARATOR}${ANDROID_HOME}/tools]) |
|
|
|
|
|
|
|
AC_CONFIG_FILES([nodejs/package.json]) |
|
|
|
|
|
|
|
AC_CONFIG_FILES([nodejs/makefile]) |
|
|
|
|
|
|
|
AX_ADD_MAKEFILE_TARGET_DEP([maintainer-clean-am], [maintainer-clean-nodejs-targets], [nodejs/makefile.in]) |
|
|
|
|
|
|
|
test -f nodejs/makefile.in && cat >> nodejs/makefile.in <<EOF |
|
|
|
|
|
|
|
#### Begin: Appended by $0 |
|
|
|
|
|
|
|
maintainer-clean-nodejs-targets: |
|
|
|
|
|
|
|
-rm makefile.in |
|
|
|
|
|
|
|
#### End: $0 |
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# use this in configure.ac to support Cordova |
|
|
|
|
|
|
|
AC_DEFUN([AX_USE_CORDOVA], [ |
|
|
|
AC_PATH_PROG(ANDROID, [android], [0], |
|
|
|
AC_PATH_PROG(ANDROID, [android], [0], |
|
|
|
[${PATH}${PATH_SEPARATOR}${ANDROID_HOME}/tools]) |
|
|
|
[${PATH}${PATH_SEPARATOR}${ANDROID_HOME}/tools]) |
|
|
|
AC_PATH_PROG(CORDOVA, [cordova], [0], |
|
|
|
AC_PATH_PROG(CORDOVA, [cordova], [0], |
|
|
@ -457,14 +472,13 @@ AC_DEFUN([AX_USE_NODEJS], [ |
|
|
|
fi |
|
|
|
fi |
|
|
|
AM_CONDITIONAL(HAVE_CORDOVA, [test ${CORDOVA} != 0 -a ${ANDROID} != 0]) |
|
|
|
AM_CONDITIONAL(HAVE_CORDOVA, [test ${CORDOVA} != 0 -a ${ANDROID} != 0]) |
|
|
|
AX_SUBST(CORDOVA) |
|
|
|
AX_SUBST(CORDOVA) |
|
|
|
AC_CONFIG_FILES([nodejs/package.json]) |
|
|
|
|
|
|
|
AC_CONFIG_FILES([nodejs/makefile]) |
|
|
|
|
|
|
|
AC_CONFIG_FILES([cordova/makefile]) |
|
|
|
AC_CONFIG_FILES([cordova/makefile]) |
|
|
|
AC_CONFIG_FILES([cordova/config.xml]) |
|
|
|
AC_CONFIG_FILES([cordova/config.xml]) |
|
|
|
AX_ADD_MAKEFILE_TARGET_DEP([maintainer-clean-am], [maintainer-clean-example-targets], [examples/makefile.in]) |
|
|
|
EOF |
|
|
|
test -f examples/makefile.in && cat >> examples/makefile.in <<EOF |
|
|
|
AX_ADD_MAKEFILE_TARGET_DEP([maintainer-clean-am], [maintainer-clean-cordova-targets], [cordova/makefile.in]) |
|
|
|
|
|
|
|
test -f cordova/makefile.in && cat >> cordova/makefile.in <<EOF |
|
|
|
#### Begin: Appended by $0 |
|
|
|
#### Begin: Appended by $0 |
|
|
|
maintainer-clean-example-targets: |
|
|
|
maintainer-clean-cordova-targets: |
|
|
|
-rm makefile.in |
|
|
|
-rm makefile.in |
|
|
|
#### End: $0 |
|
|
|
#### End: $0 |
|
|
|
EOF |
|
|
|
EOF |
|
|
|