From 26879a3bec0f7473acba183a2059d4a09078397d Mon Sep 17 00:00:00 2001 From: rikky Date: Wed, 30 Mar 2011 19:26:44 +0000 Subject: [PATCH] Fix:android/cmake:Target sdk version may be specified before building (-DANDROID_API_VERSION=9). Default 8, minSDK=4. git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4408 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/Toolchain/arm-eabi.cmake | 2 +- navit/navit/android/AndroidManifest.xml.cmake | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/navit/Toolchain/arm-eabi.cmake b/navit/Toolchain/arm-eabi.cmake index 5f3a6b0..6dbfa27 100644 --- a/navit/Toolchain/arm-eabi.cmake +++ b/navit/Toolchain/arm-eabi.cmake @@ -1,7 +1,7 @@ set(CMAKE_SYSTEM_NAME GNU) set(ANDROID TRUE) -set(ANDROID_API_VERSION 4 CACHE STRING "Andriod API Version") +set(ANDROID_API_VERSION 8 CACHE STRING "Andriod API Version") find_program(CMAKE_C_COMPILER arm-eabi-gcc arm-eabi-gcc.exe) find_program(CMAKE_CXX_COMPILER arm-eabi-gcc arm-eabi-g++.exe) diff --git a/navit/navit/android/AndroidManifest.xml.cmake b/navit/navit/android/AndroidManifest.xml.cmake index dc395d2..87cd1ee 100644 --- a/navit/navit/android/AndroidManifest.xml.cmake +++ b/navit/navit/android/AndroidManifest.xml.cmake @@ -2,28 +2,29 @@ + android:versionCode="@ANDROID_VERSION_INT@" + android:versionName="@ANDROID_VERSION_NAME@" + android:configChanges="locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|fontScale"> - - - + + + - + - + - + @ANDROID_PERMISSIONS@ -- 2.7.4