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