Home | History | Annotate | Download | only in libdex
      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 cc_library_static {
     16     name: "libdex",
     17     host_supported: true,
     18 
     19     srcs: [
     20         "CmdUtils.cpp",
     21         "DexCatch.cpp",
     22         "DexClass.cpp",
     23         "DexDataMap.cpp",
     24         "DexDebugInfo.cpp",
     25         "DexFile.cpp",
     26         "DexInlines.cpp",
     27         "DexOptData.cpp",
     28         "DexOpcodes.cpp",
     29         "DexProto.cpp",
     30         "DexSwapVerify.cpp",
     31         "DexUtf.cpp",
     32         "InstrUtils.cpp",
     33         "Leb128.cpp",
     34         "OptInvocation.cpp",
     35         "sha1.cpp",
     36         "SysUtil.cpp",
     37     ],
     38     include_dirs: [
     39         "dalvik",
     40         "external/zlib",
     41         "external/safe-iop/include",
     42     ],
     43     static_libs: ["liblog"],
     44     whole_static_libs: ["libziparchive"],
     45 
     46     cflags: [
     47         "-Wall",
     48         "-Werror",
     49     ],
     50     target: {
     51         android: {
     52             shared_libs: ["libutils"],
     53         },
     54         host: {
     55             static_libs: ["libutils"],
     56         },
     57         windows: {
     58             enabled: true,
     59             cflags: ["-Wno-unused-parameter"],
     60         },
     61     },
     62 }
     63