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