blob: 48263c9f7ae1296276ed235b0d1b7b412225f952 [file] [log] [blame]
The Android Open Source Projectf6c38712009-03-03 19:28:47 -08001# 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
15LOCAL_PATH:= $(call my-dir)
16
17dex_src_files := \
Dan Bornsteina70a3d82011-04-14 13:08:06 -070018 CmdUtils.cpp \
19 DexCatch.cpp \
20 DexClass.cpp \
21 DexDataMap.cpp \
22 DexDebugInfo.cpp \
23 DexFile.cpp \
24 DexInlines.cpp \
25 DexOptData.cpp \
26 DexOpcodes.cpp \
27 DexProto.cpp \
28 DexSwapVerify.cpp \
29 DexUtf.cpp \
30 InstrUtils.cpp \
31 Leb128.cpp \
32 OptInvocation.cpp \
33 sha1.cpp \
34 SysUtil.cpp \
35 ZipArchive.cpp
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080036
37dex_include_files := \
38 dalvik \
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080039 external/zlib \
40 external/safe-iop/include
41
42##
43##
44## Build the device version of libdex
45##
46##
47ifneq ($(SDK_ONLY),true) # SDK_only doesn't need device version
48
49include $(CLEAR_VARS)
Andy McFaddend3250112010-11-03 14:32:42 -070050#LOCAL_CFLAGS += -UNDEBUG -DDEBUG=1
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080051LOCAL_SRC_FILES := $(dex_src_files)
52LOCAL_C_INCLUDES += $(dex_include_files)
Jesse Wilson42929e12010-09-16 15:56:25 -070053LOCAL_MODULE_TAGS := optional
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080054LOCAL_MODULE := libdex
55include $(BUILD_STATIC_LIBRARY)
56
57endif # !SDK_ONLY
58
59
60##
61##
62## Build the host version of libdex
63##
64##
65include $(CLEAR_VARS)
66LOCAL_SRC_FILES := $(dex_src_files)
67LOCAL_C_INCLUDES += $(dex_include_files)
Jesse Wilson42929e12010-09-16 15:56:25 -070068LOCAL_MODULE_TAGS := optional
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080069LOCAL_MODULE := libdex
70include $(BUILD_HOST_STATIC_LIBRARY)