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 | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 20 | LOCAL_SRC_FILES := \ |
21 | applypatch.cpp \ | ||||
22 | bspatch.cpp \ | ||||
23 | freecache.cpp \ | ||||
Tianjie Xu | 12b9055 | 2017-03-07 14:44:14 -0800 | [diff] [blame] | 24 | imgpatch.cpp |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 25 | LOCAL_MODULE := libapplypatch |
26 | LOCAL_MODULE_TAGS := eng | ||||
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 27 | LOCAL_C_INCLUDES := \ |
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 28 | $(LOCAL_PATH)/include |
29 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ | ||||
30 | $(LOCAL_PATH)/include | ||||
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 31 | LOCAL_STATIC_LIBRARIES := \ |
Tao Bao | e6f7f95 | 2017-10-04 09:33:01 -0700 | [diff] [blame] | 32 | libedify \ |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 33 | libotafault \ |
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 34 | libotautil \ |
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 \ |
Sen Jiang | 25c5697 | 2016-05-10 15:23:25 -0700 | [diff] [blame] | 37 | libbspatch \ |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 38 | libbz \ |
39 | libz | ||||
Tao Bao | 087bc0c | 2017-01-19 10:46:39 -0800 | [diff] [blame] | 40 | LOCAL_CFLAGS := \ |
41 | -DZLIB_CONST \ | ||||
Tianjie Xu | c89d1e7 | 2017-08-28 14:15:07 -0700 | [diff] [blame] | 42 | -Wall \ |
Tao Bao | 087bc0c | 2017-01-19 10:46:39 -0800 | [diff] [blame] | 43 | -Werror |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 44 | include $(BUILD_STATIC_LIBRARY) |
45 | |||||
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 46 | # libimgpatch (static library) |
47 | # =============================== | ||||
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 48 | include $(CLEAR_VARS) |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 49 | LOCAL_SRC_FILES := \ |
50 | bspatch.cpp \ | ||||
Tianjie Xu | 12b9055 | 2017-03-07 14:44:14 -0800 | [diff] [blame] | 51 | imgpatch.cpp |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 52 | LOCAL_MODULE := libimgpatch |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 53 | LOCAL_C_INCLUDES := \ |
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 54 | $(LOCAL_PATH)/include |
55 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ | ||||
56 | $(LOCAL_PATH)/include | ||||
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 57 | LOCAL_STATIC_LIBRARIES := \ |
Tao Bao | 38d78d1 | 2017-10-09 11:03:38 -0700 | [diff] [blame] | 58 | libedify \ |
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 59 | libotautil \ |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 60 | libcrypto \ |
Sen Jiang | 25c5697 | 2016-05-10 15:23:25 -0700 | [diff] [blame] | 61 | libbspatch \ |
Tianjie Xu | 12b9055 | 2017-03-07 14:44:14 -0800 | [diff] [blame] | 62 | libbase \ |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 63 | libbz \ |
64 | libz | ||||
Tao Bao | 087bc0c | 2017-01-19 10:46:39 -0800 | [diff] [blame] | 65 | LOCAL_CFLAGS := \ |
66 | -DZLIB_CONST \ | ||||
Tianjie Xu | c89d1e7 | 2017-08-28 14:15:07 -0700 | [diff] [blame] | 67 | -Wall \ |
Tao Bao | 087bc0c | 2017-01-19 10:46:39 -0800 | [diff] [blame] | 68 | -Werror |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 69 | include $(BUILD_STATIC_LIBRARY) |
70 | |||||
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 71 | # libimgpatch (host static library) |
72 | # =============================== | ||||
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 73 | include $(CLEAR_VARS) |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 74 | LOCAL_SRC_FILES := \ |
75 | bspatch.cpp \ | ||||
Tianjie Xu | 12b9055 | 2017-03-07 14:44:14 -0800 | [diff] [blame] | 76 | imgpatch.cpp |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 77 | LOCAL_MODULE := libimgpatch |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 78 | LOCAL_MODULE_HOST_OS := linux |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 79 | LOCAL_C_INCLUDES := \ |
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 80 | $(LOCAL_PATH)/include |
81 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ | ||||
82 | $(LOCAL_PATH)/include | ||||
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 83 | LOCAL_STATIC_LIBRARIES := \ |
Tao Bao | 38d78d1 | 2017-10-09 11:03:38 -0700 | [diff] [blame] | 84 | libedify \ |
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 85 | libotautil \ |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 86 | libcrypto \ |
Sen Jiang | 25c5697 | 2016-05-10 15:23:25 -0700 | [diff] [blame] | 87 | libbspatch \ |
Tianjie Xu | 12b9055 | 2017-03-07 14:44:14 -0800 | [diff] [blame] | 88 | libbase \ |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 89 | libbz \ |
90 | libz | ||||
Tao Bao | 087bc0c | 2017-01-19 10:46:39 -0800 | [diff] [blame] | 91 | LOCAL_CFLAGS := \ |
92 | -DZLIB_CONST \ | ||||
Tianjie Xu | c89d1e7 | 2017-08-28 14:15:07 -0700 | [diff] [blame] | 93 | -Wall \ |
Tao Bao | 087bc0c | 2017-01-19 10:46:39 -0800 | [diff] [blame] | 94 | -Werror |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 95 | include $(BUILD_HOST_STATIC_LIBRARY) |
96 | |||||
Tao Bao | 36c3511 | 2016-10-25 14:17:26 -0700 | [diff] [blame] | 97 | # libapplypatch_modes (static library) |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 98 | # =============================== |
Sen Jiang | 0cce9cd | 2016-01-22 20:49:07 +0800 | [diff] [blame] | 99 | include $(CLEAR_VARS) |
Tao Bao | 36c3511 | 2016-10-25 14:17:26 -0700 | [diff] [blame] | 100 | LOCAL_SRC_FILES := \ |
101 | applypatch_modes.cpp | ||||
102 | LOCAL_MODULE := libapplypatch_modes | ||||
Tao Bao | 36c3511 | 2016-10-25 14:17:26 -0700 | [diff] [blame] | 103 | LOCAL_STATIC_LIBRARIES := \ |
104 | libapplypatch \ | ||||
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 105 | libotautil \ |
Tao Bao | 36c3511 | 2016-10-25 14:17:26 -0700 | [diff] [blame] | 106 | libbase \ |
107 | libedify \ | ||||
108 | libcrypto | ||||
Tianjie Xu | c89d1e7 | 2017-08-28 14:15:07 -0700 | [diff] [blame] | 109 | LOCAL_CFLAGS := -Wall -Werror |
Tao Bao | 36c3511 | 2016-10-25 14:17:26 -0700 | [diff] [blame] | 110 | include $(BUILD_STATIC_LIBRARY) |
111 | |||||
112 | # applypatch (target executable) | ||||
113 | # =============================== | ||||
114 | include $(CLEAR_VARS) | ||||
Tao Bao | 36c3511 | 2016-10-25 14:17:26 -0700 | [diff] [blame] | 115 | LOCAL_SRC_FILES := applypatch_main.cpp |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 116 | LOCAL_MODULE := applypatch |
Tao Bao | 36c3511 | 2016-10-25 14:17:26 -0700 | [diff] [blame] | 117 | LOCAL_STATIC_LIBRARIES := \ |
118 | libapplypatch_modes \ | ||||
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 119 | libapplypatch \ |
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 120 | libedify \ |
121 | libotafault \ | ||||
Tao Bao | 1fc5bf3 | 2017-10-06 07:43:41 -0700 | [diff] [blame] | 122 | libotautil \ |
Tao Bao | 44fc7b1 | 2017-10-11 11:32:46 -0700 | [diff] [blame] | 123 | libbspatch |
Tao Bao | 36c3511 | 2016-10-25 14:17:26 -0700 | [diff] [blame] | 124 | LOCAL_SHARED_LIBRARIES := \ |
125 | libbase \ | ||||
Tao Bao | 44fc7b1 | 2017-10-11 11:32:46 -0700 | [diff] [blame] | 126 | libbz \ |
Tao Bao | 3db3205 | 2017-10-10 15:02:13 -0700 | [diff] [blame] | 127 | libcrypto \ |
128 | liblog \ | ||||
Tao Bao | 36c3511 | 2016-10-25 14:17:26 -0700 | [diff] [blame] | 129 | libz \ |
Tao Bao | 3db3205 | 2017-10-10 15:02:13 -0700 | [diff] [blame] | 130 | libziparchive |
Tianjie Xu | c89d1e7 | 2017-08-28 14:15:07 -0700 | [diff] [blame] | 131 | LOCAL_CFLAGS := -Wall -Werror |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 132 | include $(BUILD_EXECUTABLE) |
133 | |||||
Tianjie Xu | 12b9055 | 2017-03-07 14:44:14 -0800 | [diff] [blame] | 134 | libimgdiff_src_files := imgdiff.cpp |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 135 | |
136 | # libbsdiff is compiled with -D_FILE_OFFSET_BITS=64. | ||||
137 | libimgdiff_cflags := \ | ||||
Tianjie Xu | c89d1e7 | 2017-08-28 14:15:07 -0700 | [diff] [blame] | 138 | -Wall \ |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 139 | -Werror \ |
Tianjie Xu | 6b03ba7 | 2017-07-19 14:16:30 -0700 | [diff] [blame] | 140 | -D_FILE_OFFSET_BITS=64 \ |
141 | -DZLIB_CONST | ||||
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 142 | |
143 | libimgdiff_static_libraries := \ | ||||
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 144 | libotautil \ |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 145 | libbsdiff \ |
Sen Jiang | 930edb6 | 2017-01-18 17:26:42 -0800 | [diff] [blame] | 146 | libdivsufsort \ |
147 | libdivsufsort64 \ | ||||
Tianjie Xu | 1ea84d6 | 2017-02-22 18:23:58 -0800 | [diff] [blame] | 148 | libziparchive \ |
149 | libutils \ | ||||
150 | liblog \ | ||||
Tao Bao | d37ce8f | 2016-12-17 17:10:04 -0800 | [diff] [blame] | 151 | libbase \ |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 152 | libz |
153 | |||||
154 | # libimgdiff (static library) | ||||
155 | # =============================== | ||||
156 | include $(CLEAR_VARS) | ||||
157 | LOCAL_SRC_FILES := \ | ||||
158 | $(libimgdiff_src_files) | ||||
159 | LOCAL_MODULE := libimgdiff | ||||
160 | LOCAL_CFLAGS := \ | ||||
161 | $(libimgdiff_cflags) | ||||
162 | LOCAL_STATIC_LIBRARIES := \ | ||||
163 | $(libimgdiff_static_libraries) | ||||
164 | LOCAL_C_INCLUDES := \ | ||||
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 165 | $(LOCAL_PATH)/include |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 166 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
167 | include $(BUILD_STATIC_LIBRARY) | ||||
168 | |||||
169 | # libimgdiff (host static library) | ||||
170 | # =============================== | ||||
171 | include $(CLEAR_VARS) | ||||
172 | LOCAL_SRC_FILES := \ | ||||
173 | $(libimgdiff_src_files) | ||||
174 | LOCAL_MODULE := libimgdiff | ||||
175 | LOCAL_CFLAGS := \ | ||||
176 | $(libimgdiff_cflags) | ||||
177 | LOCAL_STATIC_LIBRARIES := \ | ||||
178 | $(libimgdiff_static_libraries) | ||||
179 | LOCAL_C_INCLUDES := \ | ||||
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 180 | $(LOCAL_PATH)/include |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 181 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
182 | include $(BUILD_HOST_STATIC_LIBRARY) | ||||
183 | |||||
Tao Bao | d80a998 | 2016-03-03 11:43:47 -0800 | [diff] [blame] | 184 | # imgdiff (host static executable) |
185 | # =============================== | ||||
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 186 | include $(CLEAR_VARS) |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 187 | LOCAL_SRC_FILES := imgdiff_main.cpp |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 188 | LOCAL_MODULE := imgdiff |
Tianjie Xu | c89d1e7 | 2017-08-28 14:15:07 -0700 | [diff] [blame] | 189 | LOCAL_CFLAGS := -Wall -Werror |
Tao Bao | 97555da | 2016-12-15 10:15:06 -0800 | [diff] [blame] | 190 | LOCAL_STATIC_LIBRARIES := \ |
191 | libimgdiff \ | ||||
192 | $(libimgdiff_static_libraries) \ | ||||
Sen Jiang | 930edb6 | 2017-01-18 17:26:42 -0800 | [diff] [blame] | 193 | libbz |
Tianjie Xu | 57dd961 | 2017-08-17 17:50:56 -0700 | [diff] [blame] | 194 | LOCAL_C_INCLUDES := \ |
Tao Bao | 09e468f | 2017-09-29 14:39:33 -0700 | [diff] [blame] | 195 | $(LOCAL_PATH)/include |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 196 | include $(BUILD_HOST_EXECUTABLE) |