The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -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 | |
Doug Zongker | 02d444b | 2009-05-27 18:24:03 -0700 | [diff] [blame] | 15 | ifneq ($(TARGET_SIMULATOR),true) |
| 16 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 17 | LOCAL_PATH := $(call my-dir) |
| 18 | include $(CLEAR_VARS) |
| 19 | |
Doug Zongker | 6b2bb3d | 2009-07-20 14:45:29 -0700 | [diff] [blame] | 20 | LOCAL_SRC_FILES := applypatch.c bsdiff.c freecache.c imgpatch.c utils.c |
Doug Zongker | 5a79087 | 2009-06-12 09:42:43 -0700 | [diff] [blame] | 21 | LOCAL_MODULE := libapplypatch |
| 22 | LOCAL_MODULE_TAGS := eng |
| 23 | LOCAL_C_INCLUDES += external/bzip2 external/zlib bootable/recovery |
| 24 | LOCAL_STATIC_LIBRARIES += libmtdutils libmincrypt libbz libz |
| 25 | |
| 26 | include $(BUILD_STATIC_LIBRARY) |
| 27 | |
| 28 | include $(CLEAR_VARS) |
| 29 | |
| 30 | LOCAL_SRC_FILES := main.c |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 31 | LOCAL_MODULE := applypatch |
Doug Zongker | 6c77046 | 2009-07-22 18:27:31 -0700 | [diff] [blame] | 32 | LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz |
| 33 | LOCAL_SHARED_LIBRARIES += libz libcutils libstdc++ libc |
| 34 | |
| 35 | include $(BUILD_EXECUTABLE) |
| 36 | |
| 37 | include $(CLEAR_VARS) |
| 38 | |
| 39 | LOCAL_SRC_FILES := main.c |
| 40 | LOCAL_MODULE := applypatch_static |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 41 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 42 | LOCAL_MODULE_TAGS := eng |
Doug Zongker | 6c77046 | 2009-07-22 18:27:31 -0700 | [diff] [blame] | 43 | LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz |
| 44 | LOCAL_STATIC_LIBRARIES += libz libcutils libstdc++ libc |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 45 | |
| 46 | include $(BUILD_EXECUTABLE) |
| 47 | |
Doug Zongker | 02d444b | 2009-05-27 18:24:03 -0700 | [diff] [blame] | 48 | include $(CLEAR_VARS) |
| 49 | |
Doug Zongker | 6b2bb3d | 2009-07-20 14:45:29 -0700 | [diff] [blame] | 50 | LOCAL_SRC_FILES := imgdiff.c utils.c |
Doug Zongker | 02d444b | 2009-05-27 18:24:03 -0700 | [diff] [blame] | 51 | LOCAL_MODULE := imgdiff |
| 52 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 53 | LOCAL_MODULE_TAGS := eng |
| 54 | LOCAL_C_INCLUDES += external/zlib |
| 55 | LOCAL_STATIC_LIBRARIES += libz |
| 56 | |
| 57 | include $(BUILD_HOST_EXECUTABLE) |
| 58 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 59 | endif # !TARGET_SIMULATOR |