• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15cc_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    ],
42    static_libs: ["liblog"],
43    whole_static_libs: ["libziparchive"],
44
45    cflags: [
46        "-Wall",
47        "-Werror",
48        "-Wimplicit-fallthrough",
49    ],
50    target: {
51        windows: {
52            enabled: true,
53            cflags: ["-Wno-unused-parameter"],
54        },
55    },
56}
57