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 cc_defaults {
     18     name: "libdivsufsort_defaults",
     19     host_supported: true,
     20     srcs: [
     21         "lib/divsufsort.c",
     22         "lib/sssort.c",
     23         "lib/trsort.c",
     24         "lib/utils.c",
     25     ],
     26     local_include_dirs: ["include"],
     27     export_include_dirs: ["android_include"],
     28     cflags: [
     29         "-Wall",
     30         "-Werror",
     31         "-Wextra",
     32         "-DHAVE_CONFIG_H=1",
     33     ],
     34 }
     35 
     36 // libdivsufsort defines two different libraries compiled from the same
     37 // codebase. The libraries export different symbols and differ on the integer
     38 // type used in the suffix array index. "libdivsufsort" uses 32-bit integers
     39 // allowing input sizes up to 2GiB, while "libdivsufsort64" uses 64-bit integers
     40 // allowing larger input sizes (8 EiB) but also requiring twice as much memory
     41 // for the smaller inputs.
     42 
     43 // libdivsufsort using 32-bit integers for the suffix array.
     44 cc_library_static {
     45     name: "libdivsufsort",
     46     defaults: ["libdivsufsort_defaults"],
     47 }
     48 
     49 // libdivsufsort using 64-bit integers for the suffix array.
     50 cc_library_static {
     51     name: "libdivsufsort64",
     52     defaults: ["libdivsufsort_defaults"],
     53     cflags: ["-DBUILD_DIVSUFSORT64"],
     54 }
     55