Home | History | Annotate | Download | only in i18n
      1 // Copyright (C) 2008 The Android Open Source Project
      2 //
      3 // Licensed under the Apache License, Version 2.0 (the "License");
      4 // you may not use this file except in compliance with the License.
      5 // You may obtain a copy of the License at
      6 //
      7 //      http://www.apache.org/licenses/LICENSE-2.0
      8 //
      9 // Unless required by applicable law or agreed to in writing, software
     10 // distributed under the License is distributed on an "AS IS" BASIS,
     11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 // See the License for the specific language governing permissions and
     13 // limitations under the License.
     14 
     15 //
     16 // Common definitions.
     17 //
     18 
     19 cc_defaults {
     20     name: "libicui18n_defaults",
     21     srcs: [
     22         "*.cpp",
     23     ],
     24     cflags: [
     25         "-D_REENTRANT",
     26         "-DU_I18N_IMPLEMENTATION",
     27         "-O3",
     28         "-fvisibility=hidden",
     29         "-Wall",
     30         "-Werror",
     31         "-Wno-unused-parameter",
     32     ],
     33     cppflags: [
     34         "-std=c++11",
     35     ],
     36     rtti: true,
     37 
     38     target: {
     39         android: {
     40             cflags: [
     41                 "-DANDROID_LINK_SHARED_ICU4C",
     42                 "-DPIC",
     43                 "-fPIC",
     44             ],
     45         },
     46         windows: {
     47             enabled: true,
     48             cflags: [
     49                 "-Wno-ignored-attributes", // ICU-20356
     50                 "-Wno-missing-field-initializers", // ICU-20179
     51             ],
     52         },
     53     },
     54 }
     55 
     56 cc_library_headers {
     57     name: "libicui18n_headers",
     58     host_supported: true,
     59     export_include_dirs: ["."],
     60     target: {
     61         windows: {
     62             enabled: true,
     63         },
     64     },
     65 }
     66 
     67 //
     68 // Build for the host and target (device).
     69 //
     70 cc_library_shared {
     71     name: "libicui18n",
     72     defaults: ["libicui18n_defaults"],
     73     host_supported: true,
     74     unique_host_soname: true,
     75     shared_libs: ["libicuuc"],
     76     header_libs: [ "libicui18n_headers" ],
     77     export_header_lib_headers: [ "libicui18n_headers" ],
     78 }
     79