build for cordova an android is now optional, only if tools are available

php
Marc Wäckerlin 9 years ago
parent a0a9d8cca3
commit 2d48d657b6
  1. 5
      configure.ac
  2. 2
      cordova/makefile.am
  3. 2
      debian/control.in

@ -29,9 +29,12 @@ AX_BUILD_HTML
#AX_CHECK_QT([QT], [QtCore QtGui QtNetwork], [QtWidgets])
#AX_QT_NO_KEYWORDS
AC_CHECK_PROG(CORDOVA, [cordova android], [yes], [no],
[${PATH}${PATH_SEPARATOR}${ANDROID_HOME}/tools])
AM_CONDITIONAL(CORDOVA, [test ${CORDOVA} = "yes"])
AC_CONFIG_FILES([html/index.html])
AC_CONFIG_FILES([cordova/config.xml])
AC_CONFIG_FILES([cordova/makefile])
AC_CONFIG_FILES([cordova/config.xml])
# create output
AC_OUTPUT

@ -8,8 +8,10 @@ EXTRA_DIST = config.xml.in ${cordova_sources}
ANDROID = safechat.apk
#ANDROID_SRC = platforms/android/build/outputs/apk/android-release-unsigned.apk
ANDROID_SRC = platforms/android/build/outputs/apk/android-debug.apk
if CORDOVA
wwwdir = ${pkgdatadir}/html
www_DATA = ${ANDROID}
endif
${ANDROID_SRC}:
for file in ${cordova_sources}; do \

2
debian/control.in vendored

@ -1,7 +1,7 @@
Source: @PACKAGE_NAME@
Priority: extra
Maintainer: @AUTHOR@
Build-Depends: debhelper, pkg-config, autotools-dev, lsb-release
Build-Depends: debhelper, pkg-config, autotools-dev, lsb-release
Package: @PACKAGE_NAME@
Section: web

Loading…
Cancel
Save