1 # Copyright (C) 2008 The Android Open Source Project
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 ifneq ($(TARGET_SIMULATOR),true)
16 ifneq ($(TARGET_ARCH),x86)
18 LOCAL_PATH := $(call my-dir)
21 LOCAL_SRC_FILES := applypatch.c bsdiff.c freecache.c imgpatch.c utils.c
22 LOCAL_MODULE := libapplypatch
23 LOCAL_MODULE_TAGS := eng
24 LOCAL_C_INCLUDES += external/bzip2 external/zlib bootable/recovery
25 LOCAL_STATIC_LIBRARIES += libmtdutils libmincrypt libbz libz
27 include $(BUILD_STATIC_LIBRARY)
31 LOCAL_SRC_FILES := main.c
32 LOCAL_MODULE := applypatch
33 LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz
34 LOCAL_SHARED_LIBRARIES += libz libcutils libstdc++ libc
36 include $(BUILD_EXECUTABLE)
40 LOCAL_SRC_FILES := main.c
41 LOCAL_MODULE := applypatch_static
42 LOCAL_FORCE_STATIC_EXECUTABLE := true
43 LOCAL_MODULE_TAGS := eng
44 LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz
45 LOCAL_STATIC_LIBRARIES += libz libcutils libstdc++ libc
47 include $(BUILD_EXECUTABLE)
51 LOCAL_SRC_FILES := imgdiff.c utils.c
52 LOCAL_MODULE := imgdiff
53 LOCAL_FORCE_STATIC_EXECUTABLE := true
54 LOCAL_MODULE_TAGS := eng
55 LOCAL_C_INCLUDES += external/zlib
56 LOCAL_STATIC_LIBRARIES += libz
58 include $(BUILD_HOST_EXECUTABLE)
61 endif # !TARGET_SIMULATOR