Home | History | Annotate | Download | only in libdivsufsort
      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 
     17 LOCAL_PATH := $(call my-dir)
     18 
     19 libdivsufsort_src_files := \
     20     lib/divsufsort.c \
     21     lib/sssort.c \
     22     lib/trsort.c \
     23     lib/utils.c
     24 
     25 libdivsufsort_c_includes := \
     26     $(LOCAL_PATH)/android_include \
     27     $(LOCAL_PATH)/include
     28 
     29 libdivsufsort_export_c_include_dirs := $(LOCAL_PATH)/android_include
     30 
     31 libdivsufsort_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)
     38 include $(CLEAR_VARS)
     39 LOCAL_MODULE := libdivsufsort
     40 LOCAL_SRC_FILES := $(libdivsufsort_src_files)
     41 LOCAL_C_INCLUDES := $(libdivsufsort_c_includes)
     42 LOCAL_EXPORT_C_INCLUDE_DIRS := $(libdivsufsort_export_c_include_dirs)
     43 LOCAL_CFLAGS := $(libdivsufsort_cflags)
     44 include $(BUILD_HOST_SHARED_LIBRARY)
     45 
     46 # libdivsufsort using 64-bit integers for the suffix array (host shared lib)
     47 include $(CLEAR_VARS)
     48 LOCAL_MODULE := libdivsufsort64
     49 LOCAL_SRC_FILES := $(libdivsufsort_src_files)
     50 LOCAL_C_INCLUDES := $(libdivsufsort_c_includes)
     51 LOCAL_EXPORT_C_INCLUDE_DIRS := $(libdivsufsort_export_c_include_dirs)
     52 LOCAL_CFLAGS := \
     53     $(libdivsufsort_cflags) \
     54     -DBUILD_DIVSUFSORT64
     55 include $(BUILD_HOST_SHARED_LIBRARY)
     56