Copying appcompat library to project now and configuring for build.

This commit is contained in:
Armin Novak 2014-06-23 12:58:59 +02:00
parent 65127a8c3e
commit 71992acd56

View File

@ -42,6 +42,13 @@ if(ANDROID_BUILD_JAVA)
endif()
endif(ANDROID_BUILD_JAVA)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
find_program(ANDROID_COMMAND android)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
if(ANDROID_COMMAND STREQUAL "ANDROID_COMMAND-NOTFOUND")
message(FATAL_ERROR "android not found but required to build android java")
endif()
if(ANDROID_BUILD_JAVA_DEBUG)
set(ANDROID_BUILD_TYPE "debug")
else()