blob: c566edf15b968b0550af2e668b89a1b5d03a63fb [file] [log] [blame]
Ian Hodsonf4c12fc2012-05-30 21:27:06 +01001# Copyright 2012 Google Inc. All Rights Reserved.
2# Author: npereira@google.com (Nicole Pereira)
3#
4# Android makefile for openfst library.
Ian Hodsonf4c12fc2012-05-30 21:27:06 +01005
6OPENFST_DIR := $(call my-dir)
7
8define private-function-all-cpp-files-under
9$(patsubst ./%,%, \
10 $(shell cd $(LOCAL_PATH) ; \
11 find $(1) -name "*.cc" -and -not -name ".*"))
12endef
13LOCAL_PATH := $(OPENFST_DIR)
14include $(CLEAR_VARS)
15LOCAL_CPP_EXTENSION := .cc
16LOCAL_C_INCLUDES += \
17 $(OPENFST_DIR)/src/include/
18
Przemyslaw Szczepaniak3da1eb12012-11-06 14:40:33 +000019LOCAL_NDK_STL_VARIANT := gnustl_static
20LOCAL_SDK_VERSION := 14
Ian Hodsonf4c12fc2012-05-30 21:27:06 +010021
22LOCAL_SRC_FILES := $(call private-function-all-cpp-files-under, src/lib)
Przemyslaw Szczepaniak3da1eb12012-11-06 14:40:33 +000023LOCAL_MODULE := libopenfst-gnustl-rtti
Dan Albertcfb846e2014-11-25 15:32:35 -080024LOCAL_CLANG := true
Ian Hodsonf4c12fc2012-05-30 21:27:06 +010025include $(BUILD_STATIC_LIBRARY)