Ian Hodson | f4c12fc | 2012-05-30 21:27:06 +0100 | [diff] [blame] | 1 | # Copyright 2012 Google Inc. All Rights Reserved. |
| 2 | # Author: npereira@google.com (Nicole Pereira) |
| 3 | # |
| 4 | # Android makefile for openfst library. |
Ian Hodson | f4c12fc | 2012-05-30 21:27:06 +0100 | [diff] [blame] | 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 | |
Przemyslaw Szczepaniak | 3da1eb1 | 2012-11-06 14:40:33 +0000 | [diff] [blame] | 19 | LOCAL_NDK_STL_VARIANT := gnustl_static |
| 20 | LOCAL_SDK_VERSION := 14 |
Ian Hodson | f4c12fc | 2012-05-30 21:27:06 +0100 | [diff] [blame] | 21 | |
| 22 | LOCAL_SRC_FILES := $(call private-function-all-cpp-files-under, src/lib) |
Przemyslaw Szczepaniak | 3da1eb1 | 2012-11-06 14:40:33 +0000 | [diff] [blame] | 23 | LOCAL_MODULE := libopenfst-gnustl-rtti |
| 24 | |
Ian Hodson | f4c12fc | 2012-05-30 21:27:06 +0100 | [diff] [blame] | 25 | include $(BUILD_STATIC_LIBRARY) |