Doug Zongker | 512536a | 2010-02-17 16:11:44 -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 | ifneq ($(TARGET_SIMULATOR),true) |
| 16 | |
Bruce Beare | 97ca48e | 2010-04-28 14:12:52 -0700 | [diff] [blame] | 17 | ifeq ($(TARGET_ARCH),arm) |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 18 | LOCAL_PATH := $(call my-dir) |
| 19 | include $(CLEAR_VARS) |
| 20 | |
| 21 | LOCAL_SRC_FILES := applypatch.c bspatch.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 |
| 26 | |
| 27 | include $(BUILD_STATIC_LIBRARY) |
| 28 | |
| 29 | include $(CLEAR_VARS) |
| 30 | |
| 31 | LOCAL_SRC_FILES := main.c |
| 32 | LOCAL_MODULE := applypatch |
Doug Zongker | c4351c7 | 2010-02-22 14:46:32 -0800 | [diff] [blame] | 33 | LOCAL_C_INCLUDES += bootable/recovery |
Hristo Bojinov | db314d6 | 2010-08-02 10:29:49 -0700 | [diff] [blame] | 34 | LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz libminelf |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 35 | LOCAL_SHARED_LIBRARIES += libz libcutils libstdc++ libc |
| 36 | |
| 37 | include $(BUILD_EXECUTABLE) |
| 38 | |
| 39 | include $(CLEAR_VARS) |
| 40 | |
| 41 | LOCAL_SRC_FILES := main.c |
| 42 | LOCAL_MODULE := applypatch_static |
| 43 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 44 | LOCAL_MODULE_TAGS := eng |
Doug Zongker | c4351c7 | 2010-02-22 14:46:32 -0800 | [diff] [blame] | 45 | LOCAL_C_INCLUDES += bootable/recovery |
Hristo Bojinov | db314d6 | 2010-08-02 10:29:49 -0700 | [diff] [blame] | 46 | LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz libminelf |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 47 | LOCAL_STATIC_LIBRARIES += libz libcutils libstdc++ libc |
| 48 | |
| 49 | include $(BUILD_EXECUTABLE) |
| 50 | |
| 51 | include $(CLEAR_VARS) |
| 52 | |
| 53 | LOCAL_SRC_FILES := imgdiff.c utils.c bsdiff.c |
| 54 | LOCAL_MODULE := imgdiff |
| 55 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 56 | LOCAL_MODULE_TAGS := eng |
| 57 | LOCAL_C_INCLUDES += external/zlib external/bzip2 |
| 58 | LOCAL_STATIC_LIBRARIES += libz libbz |
| 59 | |
| 60 | include $(BUILD_HOST_EXECUTABLE) |
| 61 | |
Bruce Beare | 97ca48e | 2010-04-28 14:12:52 -0700 | [diff] [blame] | 62 | endif # TARGET_ARCH == arm |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 63 | endif # !TARGET_SIMULATOR |