1# 2# Copyright (C) 2015 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17LOCAL_PATH := $(call my-dir) 18 19libdivsufsort_src_files := \ 20 lib/divsufsort.c \ 21 lib/sssort.c \ 22 lib/trsort.c \ 23 lib/utils.c 24 25libdivsufsort_c_includes := \ 26 $(LOCAL_PATH)/android_include \ 27 $(LOCAL_PATH)/include 28 29libdivsufsort_export_c_include_dirs := $(LOCAL_PATH)/android_include 30 31libdivsufsort_cflags := \ 32 -Wall \ 33 -Werror \ 34 -Wextra \ 35 -DHAVE_CONFIG_H=1 36 37# libdivsufsort using 32-bit integers for the suffix array (host shared lib) 38include $(CLEAR_VARS) 39LOCAL_MODULE := libdivsufsort 40LOCAL_SRC_FILES := $(libdivsufsort_src_files) 41LOCAL_C_INCLUDES := $(libdivsufsort_c_includes) 42LOCAL_EXPORT_C_INCLUDE_DIRS := $(libdivsufsort_export_c_include_dirs) 43LOCAL_CFLAGS := $(libdivsufsort_cflags) 44include $(BUILD_HOST_SHARED_LIBRARY) 45 46# libdivsufsort using 64-bit integers for the suffix array (host shared lib) 47include $(CLEAR_VARS) 48LOCAL_MODULE := libdivsufsort64 49LOCAL_SRC_FILES := $(libdivsufsort_src_files) 50LOCAL_C_INCLUDES := $(libdivsufsort_c_includes) 51LOCAL_EXPORT_C_INCLUDE_DIRS := $(libdivsufsort_export_c_include_dirs) 52LOCAL_CFLAGS := \ 53 $(libdivsufsort_cflags) \ 54 -DBUILD_DIVSUFSORT64 55include $(BUILD_HOST_SHARED_LIBRARY) 56