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