blob: df45f045a6899793eca609c2efa9f054a709eb6d [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 := \
18 CmdUtils.c \
19 DexCatch.c \
20 DexClass.c \
21 DexDataMap.c \
22 DexFile.c \
23 DexInlines.c \
24 DexProto.c \
25 DexSwapVerify.c \
26 InstrUtils.c \
27 Leb128.c \
28 OptInvocation.c \
29 sha1.c \
30 SysUtil.c \
31 ZipArchive.c
32
33dex_include_files := \
34 dalvik \
35 $(JNI_H_INCLUDE) \
36 external/zlib \
37 external/safe-iop/include
38
39##
40##
41## Build the device version of libdex
42##
43##
44ifneq ($(SDK_ONLY),true) # SDK_only doesn't need device version
45
46include $(CLEAR_VARS)
47LOCAL_SRC_FILES := $(dex_src_files)
48LOCAL_C_INCLUDES += $(dex_include_files)
49LOCAL_MODULE := libdex
50include $(BUILD_STATIC_LIBRARY)
51
52endif # !SDK_ONLY
53
54
55##
56##
57## Build the host version of libdex
58##
59##
60include $(CLEAR_VARS)
61LOCAL_SRC_FILES := $(dex_src_files)
62LOCAL_C_INCLUDES += $(dex_include_files)
63LOCAL_MODULE := libdex
64include $(BUILD_HOST_STATIC_LIBRARY)