blob: 0748c91ff2287d31ae907a0818b76455889e1fd1 [file] [log] [blame]
#
# Copyright 2012 Google Inc. All Rights Reserved.
# Author: npereira@google.com (Nicole Pereira)
#
# Android makefile for openfst library.
#
OPENFST_DIR := $(call my-dir)
define private-function-all-cpp-files-under
$(patsubst ./%,%, \
$(shell cd $(LOCAL_PATH) ; \
find $(1) -name "*.cc" -and -not -name ".*"))
endef
LOCAL_PATH := $(OPENFST_DIR)
include $(CLEAR_VARS)
LOCAL_CPP_EXTENSION := .cc
LOCAL_C_INCLUDES += \
$(OPENFST_DIR)/src/include/
LOCAL_LDLIBS += -lpthread
LOCAL_SRC_FILES := $(call private-function-all-cpp-files-under, src/lib)
LOCAL_MODULE := libopenfst
include external/stlport/libstlport.mk
include $(BUILD_STATIC_LIBRARY)