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 | |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 15 | LOCAL_PATH := $(call my-dir) |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 16 | |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 17 | include $(CLEAR_VARS) |
| 18 | |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 19 | LOCAL_CLANG := true |
Tao Bao | ba9a42a | 2015-06-23 23:23:33 -0700 | [diff] [blame] | 20 | LOCAL_SRC_FILES := applypatch.cpp bspatch.cpp freecache.cpp imgpatch.cpp utils.cpp |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 21 | LOCAL_MODULE := libapplypatch |
| 22 | LOCAL_MODULE_TAGS := eng |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 23 | LOCAL_C_INCLUDES += bootable/recovery |
Sen Jiang | c48cb5e | 2016-02-04 16:23:21 +0800 | [diff] [blame] | 24 | LOCAL_STATIC_LIBRARIES += libbase libmtdutils libcrypto_static libbz libz |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 25 | |
| 26 | include $(BUILD_STATIC_LIBRARY) |
| 27 | |
| 28 | include $(CLEAR_VARS) |
| 29 | |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 30 | LOCAL_CLANG := true |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 31 | LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp |
| 32 | LOCAL_MODULE := libimgpatch |
| 33 | LOCAL_C_INCLUDES += bootable/recovery |
| 34 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Sen Jiang | c48cb5e | 2016-02-04 16:23:21 +0800 | [diff] [blame] | 35 | LOCAL_STATIC_LIBRARIES += libcrypto_static libbz libz |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 36 | |
| 37 | include $(BUILD_STATIC_LIBRARY) |
| 38 | |
Tao Bao | 8b0db11 | 2016-01-28 21:56:06 -0800 | [diff] [blame] | 39 | ifeq ($(HOST_OS),linux) |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 40 | include $(CLEAR_VARS) |
| 41 | |
| 42 | LOCAL_CLANG := true |
| 43 | LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp |
| 44 | LOCAL_MODULE := libimgpatch |
| 45 | LOCAL_C_INCLUDES += bootable/recovery |
| 46 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Sen Jiang | c48cb5e | 2016-02-04 16:23:21 +0800 | [diff] [blame] | 47 | LOCAL_STATIC_LIBRARIES += libcrypto_static libbz libz |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 48 | |
| 49 | include $(BUILD_HOST_STATIC_LIBRARY) |
Tao Bao | 8b0db11 | 2016-01-28 21:56:06 -0800 | [diff] [blame] | 50 | endif # HOST_OS == linux |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 51 | |
| 52 | include $(CLEAR_VARS) |
| 53 | |
| 54 | LOCAL_CLANG := true |
Tao Bao | ba9a42a | 2015-06-23 23:23:33 -0700 | [diff] [blame] | 55 | LOCAL_SRC_FILES := main.cpp |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 56 | LOCAL_MODULE := applypatch |
Doug Zongker | c4351c7 | 2010-02-22 14:46:32 -0800 | [diff] [blame] | 57 | LOCAL_C_INCLUDES += bootable/recovery |
Yabin Cui | d483c20 | 2016-02-03 17:08:52 -0800 | [diff] [blame] | 58 | LOCAL_STATIC_LIBRARIES += libapplypatch libbase libmtdutils libcrypto_static libbz libedify |
Dan Albert | e49a9e5 | 2015-05-19 11:33:18 -0700 | [diff] [blame] | 59 | LOCAL_SHARED_LIBRARIES += libz libcutils libc |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 60 | |
| 61 | include $(BUILD_EXECUTABLE) |
| 62 | |
| 63 | include $(CLEAR_VARS) |
| 64 | |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 65 | LOCAL_CLANG := true |
Tao Bao | ba9a42a | 2015-06-23 23:23:33 -0700 | [diff] [blame] | 66 | LOCAL_SRC_FILES := imgdiff.cpp utils.cpp bsdiff.cpp |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 67 | LOCAL_MODULE := imgdiff |
| 68 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 69 | LOCAL_C_INCLUDES += external/zlib external/bzip2 |
| 70 | LOCAL_STATIC_LIBRARIES += libz libbz |
| 71 | |
| 72 | include $(BUILD_HOST_EXECUTABLE) |