# Copyright 2012 Google Inc. All Rights Reserved.
# Author: npereira@google.com (Nicole Pereira)
#
# Android makefile for openfst library.
OPENFST_DIR := $(call my-dir)
define private-function-all-cpp-files-under
$(patsubst ./%,%, \
$(shell cd $(LOCAL_PATH) ; \
find $(1) -name "*.cc" -and -not -name ".*"))
endef
LOCAL_PATH := $(OPENFST_DIR)
include $(CLEAR_VARS)
LOCAL_CPP_EXTENSION := .cc
LOCAL_C_INCLUDES += \
$(OPENFST_DIR)/src/include/
LOCAL_LDLIBS += -lpthread
LOCAL_NDK_STL_VARIANT := gnustl_static
LOCAL_SDK_VERSION := 14
LOCAL_SRC_FILES := $(call private-function-all-cpp-files-under, src/lib)
LOCAL_MODULE := libopenfst-gnustl-rtti
include $(BUILD_STATIC_LIBRARY)