diff options
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..0748c91 --- /dev/null +++ b/Android.mk @@ -0,0 +1,26 @@ +# +# 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) |