1f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson# Copyright 2012 Google Inc. All Rights Reserved.
2f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson# Author: npereira@google.com (Nicole Pereira)
3f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson#
4f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson# Android makefile for openfst library.
5f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson
6f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian HodsonOPENFST_DIR := $(call my-dir)
7f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson
8f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodsondefine private-function-all-cpp-files-under
9f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson$(patsubst ./%,%, \
10f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson  $(shell cd $(LOCAL_PATH) ; \
11f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson        find $(1) -name "*.cc" -and -not -name ".*"))
12f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodsonendef
13f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian HodsonLOCAL_PATH := $(OPENFST_DIR)
14f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodsoninclude $(CLEAR_VARS)
15f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian HodsonLOCAL_CPP_EXTENSION := .cc
16f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian HodsonLOCAL_C_INCLUDES += \
17f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson	$(OPENFST_DIR)/src/include/
18f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson
193da1eb108d36da35333b2d655202791af854996bPrzemyslaw SzczepaniakLOCAL_NDK_STL_VARIANT := gnustl_static
203da1eb108d36da35333b2d655202791af854996bPrzemyslaw SzczepaniakLOCAL_SDK_VERSION := 14
21f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson
22f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian HodsonLOCAL_SRC_FILES := $(call private-function-all-cpp-files-under, src/lib)
233da1eb108d36da35333b2d655202791af854996bPrzemyslaw SzczepaniakLOCAL_MODULE := libopenfst-gnustl-rtti
243da1eb108d36da35333b2d655202791af854996bPrzemyslaw Szczepaniak
25f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodsoninclude $(BUILD_STATIC_LIBRARY)
26