The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 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 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
| 17 | dex_src_files := \ |
| 18 | CmdUtils.c \ |
| 19 | DexCatch.c \ |
| 20 | DexClass.c \ |
| 21 | DexDataMap.c \ |
| 22 | DexFile.c \ |
| 23 | DexInlines.c \ |
Dan Bornstein | e377ef6 | 2010-08-31 16:50:00 -0700 | [diff] [blame] | 24 | DexOptData.c \ |
The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 25 | DexProto.c \ |
| 26 | DexSwapVerify.c \ |
| 27 | InstrUtils.c \ |
| 28 | Leb128.c \ |
Andy McFadden | c6b25c7 | 2010-06-22 11:01:20 -0700 | [diff] [blame] | 29 | OpCodeNames.c \ |
The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 30 | OptInvocation.c \ |
| 31 | sha1.c \ |
| 32 | SysUtil.c \ |
| 33 | ZipArchive.c |
| 34 | |
| 35 | dex_include_files := \ |
| 36 | dalvik \ |
| 37 | $(JNI_H_INCLUDE) \ |
| 38 | external/zlib \ |
| 39 | external/safe-iop/include |
| 40 | |
| 41 | ## |
| 42 | ## |
| 43 | ## Build the device version of libdex |
| 44 | ## |
| 45 | ## |
| 46 | ifneq ($(SDK_ONLY),true) # SDK_only doesn't need device version |
| 47 | |
| 48 | include $(CLEAR_VARS) |
Andy McFadden | d325011 | 2010-11-03 14:32:42 -0700 | [diff] [blame^] | 49 | #LOCAL_CFLAGS += -UNDEBUG -DDEBUG=1 |
The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 50 | LOCAL_SRC_FILES := $(dex_src_files) |
| 51 | LOCAL_C_INCLUDES += $(dex_include_files) |
Jesse Wilson | 42929e1 | 2010-09-16 15:56:25 -0700 | [diff] [blame] | 52 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 53 | LOCAL_MODULE := libdex |
| 54 | include $(BUILD_STATIC_LIBRARY) |
| 55 | |
| 56 | endif # !SDK_ONLY |
| 57 | |
| 58 | |
| 59 | ## |
| 60 | ## |
| 61 | ## Build the host version of libdex |
| 62 | ## |
| 63 | ## |
| 64 | include $(CLEAR_VARS) |
| 65 | LOCAL_SRC_FILES := $(dex_src_files) |
| 66 | LOCAL_C_INCLUDES += $(dex_include_files) |
Jesse Wilson | 42929e1 | 2010-09-16 15:56:25 -0700 | [diff] [blame] | 67 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | f6c3871 | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 68 | LOCAL_MODULE := libdex |
| 69 | include $(BUILD_HOST_STATIC_LIBRARY) |