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_LDLIBS += -lpthread 20LOCAL_NDK_STL_VARIANT := gnustl_static 21LOCAL_SDK_VERSION := 14 22 23LOCAL_SRC_FILES := $(call private-function-all-cpp-files-under, src/lib) 24LOCAL_MODULE := libopenfst-gnustl-rtti 25 26include $(BUILD_STATIC_LIBRARY) 27