From 2a85f273e33a316bd044c4c8dce17c19633cffe6 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 11 Jul 2015 20:21:34 -0700 Subject: [PATCH] Generate Android version info from configure.ac This avoids having version data in two places. Signed-off-by: Keith Packard --- altosdroid/{AndroidManifest.xml => AndroidManifest.xml.in} | 4 ++-- configure.ac | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) rename altosdroid/{AndroidManifest.xml => AndroidManifest.xml.in} (97%) diff --git a/altosdroid/AndroidManifest.xml b/altosdroid/AndroidManifest.xml.in similarity index 97% rename from altosdroid/AndroidManifest.xml rename to altosdroid/AndroidManifest.xml.in index 58f5077c..24035796 100644 --- a/altosdroid/AndroidManifest.xml +++ b/altosdroid/AndroidManifest.xml.in @@ -17,8 +17,8 @@ --> + android:versionCode="@ANDROID_VERSION@" + android:versionName="@VERSION@"> diff --git a/configure.ac b/configure.ac index 0a7a7ea9..aa6cd798 100644 --- a/configure.ac +++ b/configure.ac @@ -19,12 +19,14 @@ dnl Process this file with autoconf to create configure. AC_PREREQ(2.57) AC_INIT([altos], 1.6.0.3) +ANDROID_VERSION=7 AC_CONFIG_SRCDIR([src/kernel/ao.h]) AM_INIT_AUTOMAKE([foreign dist-bzip2]) AM_MAINTAINER_MODE VERSION_DASH=`echo $VERSION | sed 's/\./-/g'` AC_SUBST(VERSION_DASH) +AC_SUBST(ANDROID_VERSION) dnl ========================================================================== dnl Java library versions @@ -529,6 +531,7 @@ telegps/Info.plist telegps/telegps-windows.nsi altosdroid/Makefile altosdroid/local.properties +altosdroid/AndroidManifest.xml ao-tools/Makefile ao-tools/lib/Makefile ao-tools/ao-rawload/Makefile -- 2.30.2