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