1# Copyright 2012 Google Inc. All Rights Reserved.
2# Author: npereira@google.com (Nicole Pereira)
3#
4# Android makefile for openfst library.
5
6OPENFST_DIR := $(call my-dir)
7
8define private-function-all-cpp-files-under
9$(patsubst ./%,%, \
10  $(shell cd $(LOCAL_PATH) ; \
11        find $(1) -name "*.cc" -and -not -name ".*"))
12endef
13LOCAL_PATH := $(OPENFST_DIR)
14include $(CLEAR_VARS)
15LOCAL_CPP_EXTENSION := .cc
16LOCAL_C_INCLUDES += \
17	$(OPENFST_DIR)/src/include/
18
19LOCAL_NDK_STL_VARIANT := gnustl_static
20LOCAL_SDK_VERSION := 14
21
22LOCAL_SRC_FILES := $(call private-function-all-cpp-files-under, src/lib)
23LOCAL_MODULE := libopenfst-gnustl-rtti
24
25include $(BUILD_STATIC_LIBRARY)
26