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