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 | |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 17 | # libapplypatch (static library) |
| 18 | # =============================== |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 19 | include $(CLEAR_VARS) |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 20 | LOCAL_CLANG := true |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 21 | LOCAL_SRC_FILES := \ |
| 22 | applypatch.cpp \ |
| 23 | bspatch.cpp \ |
| 24 | freecache.cpp \ |
| 25 | imgpatch.cpp \ |
| 26 | utils.cpp |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 27 | LOCAL_MODULE := libapplypatch |
| 28 | LOCAL_MODULE_TAGS := eng |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 29 | LOCAL_C_INCLUDES += \ |
| 30 | $(LOCAL_PATH)/include \ |
| 31 | bootable/recovery |
| 32 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 33 | LOCAL_STATIC_LIBRARIES += \ |
| 34 | libotafault \ |
| 35 | libmtdutils \ |
| 36 | libbase \ |
| 37 | libcrypto_static \ |
| 38 | libbz \ |
| 39 | libz |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 40 | include $(BUILD_STATIC_LIBRARY) |
| 41 | |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 42 | # libimgpatch (static library) |
| 43 | # =============================== |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 44 | include $(CLEAR_VARS) |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 45 | LOCAL_CLANG := true |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 46 | LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp |
| 47 | LOCAL_MODULE := libimgpatch |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 48 | LOCAL_C_INCLUDES += \ |
| 49 | $(LOCAL_PATH)/include \ |
| 50 | bootable/recovery |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 51 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Sen Jiang | c48cb5e | 2016-02-04 16:23:21 +0800 | [diff] [blame] | 52 | LOCAL_STATIC_LIBRARIES += libcrypto_static libbz libz |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 53 | include $(BUILD_STATIC_LIBRARY) |
| 54 | |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 55 | # libimgpatch (host static library) |
| 56 | # =============================== |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 57 | include $(CLEAR_VARS) |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 58 | LOCAL_CLANG := true |
| 59 | LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp |
| 60 | LOCAL_MODULE := libimgpatch |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 61 | LOCAL_MODULE_HOST_OS := linux |
| 62 | LOCAL_C_INCLUDES += \ |
| 63 | $(LOCAL_PATH)/include \ |
| 64 | bootable/recovery |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 65 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
Sen Jiang | c48cb5e | 2016-02-04 16:23:21 +0800 | [diff] [blame] | 66 | LOCAL_STATIC_LIBRARIES += libcrypto_static libbz libz |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 67 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 68 | |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 69 | # applypatch (executable) |
| 70 | # =============================== |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 71 | include $(CLEAR_VARS) |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 72 | LOCAL_CLANG := true |
Tao Bao | ba9a42a | 2015-06-23 23:23:33 -0700 | [diff] [blame] | 73 | LOCAL_SRC_FILES := main.cpp |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 74 | LOCAL_MODULE := applypatch |
Doug Zongker | c4351c7 | 2010-02-22 14:46:32 -0800 | [diff] [blame] | 75 | LOCAL_C_INCLUDES += bootable/recovery |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 76 | LOCAL_STATIC_LIBRARIES += \ |
| 77 | libapplypatch \ |
| 78 | libbase \ |
| 79 | libedify \ |
| 80 | libotafault \ |
| 81 | libminzip \ |
| 82 | libmtdutils \ |
| 83 | libcrypto_static \ |
| 84 | libbz |
Dan Albert | e49a9e5 | 2015-05-19 11:33:18 -0700 | [diff] [blame] | 85 | LOCAL_SHARED_LIBRARIES += libz libcutils libc |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 86 | include $(BUILD_EXECUTABLE) |
| 87 | |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 88 | # imgdiff (host static executable) |
| 89 | # =============================== |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 90 | include $(CLEAR_VARS) |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 91 | LOCAL_CLANG := true |
Sen Jiang | 2fffcb1 | 2016-05-03 15:49:10 -0700 | [diff] [blame] | 92 | LOCAL_SRC_FILES := imgdiff.cpp utils.cpp |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 93 | LOCAL_MODULE := imgdiff |
Sen Jiang | 2fffcb1 | 2016-05-03 15:49:10 -0700 | [diff] [blame] | 94 | LOCAL_STATIC_LIBRARIES += \ |
| 95 | libbsdiff \ |
| 96 | libbz \ |
| 97 | libdivsufsort64 \ |
| 98 | libdivsufsort \ |
| 99 | libz |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 100 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 101 | include $(BUILD_HOST_EXECUTABLE) |