blob: 23d0f7bb12f2bf2eeb8602e8a52a62408df7db69 [file] [log] [blame]
Doug Zongker512536a2010-02-17 16:11:44 -08001# 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 Zongker512536a2010-02-17 16:11:44 -080015LOCAL_PATH := $(call my-dir)
Tao Bao80e46e02015-06-03 10:49:29 -070016
Doug Zongker512536a2010-02-17 16:11:44 -080017include $(CLEAR_VARS)
18
Tao Bao80e46e02015-06-03 10:49:29 -070019LOCAL_CLANG := true
Tao Baoba9a42a2015-06-23 23:23:33 -070020LOCAL_SRC_FILES := applypatch.cpp bspatch.cpp freecache.cpp imgpatch.cpp utils.cpp
Doug Zongker512536a2010-02-17 16:11:44 -080021LOCAL_MODULE := libapplypatch
22LOCAL_MODULE_TAGS := eng
Sen Jiang0cce9cd2016-01-22 20:49:07 +080023LOCAL_C_INCLUDES += bootable/recovery
Sen Jiangc48cb5e2016-02-04 16:23:21 +080024LOCAL_STATIC_LIBRARIES += libbase libmtdutils libcrypto_static libbz libz
Doug Zongker512536a2010-02-17 16:11:44 -080025
26include $(BUILD_STATIC_LIBRARY)
27
28include $(CLEAR_VARS)
29
Tao Bao80e46e02015-06-03 10:49:29 -070030LOCAL_CLANG := true
Sen Jiang0cce9cd2016-01-22 20:49:07 +080031LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp
32LOCAL_MODULE := libimgpatch
33LOCAL_C_INCLUDES += bootable/recovery
34LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Sen Jiangc48cb5e2016-02-04 16:23:21 +080035LOCAL_STATIC_LIBRARIES += libcrypto_static libbz libz
Sen Jiang0cce9cd2016-01-22 20:49:07 +080036
37include $(BUILD_STATIC_LIBRARY)
38
Tao Bao8b0db112016-01-28 21:56:06 -080039ifeq ($(HOST_OS),linux)
Sen Jiang0cce9cd2016-01-22 20:49:07 +080040include $(CLEAR_VARS)
41
42LOCAL_CLANG := true
43LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp
44LOCAL_MODULE := libimgpatch
45LOCAL_C_INCLUDES += bootable/recovery
46LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Sen Jiangc48cb5e2016-02-04 16:23:21 +080047LOCAL_STATIC_LIBRARIES += libcrypto_static libbz libz
Sen Jiang0cce9cd2016-01-22 20:49:07 +080048
49include $(BUILD_HOST_STATIC_LIBRARY)
Tao Bao8b0db112016-01-28 21:56:06 -080050endif # HOST_OS == linux
Sen Jiang0cce9cd2016-01-22 20:49:07 +080051
52include $(CLEAR_VARS)
53
54LOCAL_CLANG := true
Tao Baoba9a42a2015-06-23 23:23:33 -070055LOCAL_SRC_FILES := main.cpp
Doug Zongker512536a2010-02-17 16:11:44 -080056LOCAL_MODULE := applypatch
Doug Zongkerc4351c72010-02-22 14:46:32 -080057LOCAL_C_INCLUDES += bootable/recovery
Yabin Cuid483c202016-02-03 17:08:52 -080058LOCAL_STATIC_LIBRARIES += libapplypatch libbase libmtdutils libcrypto_static libbz libedify
Dan Alberte49a9e52015-05-19 11:33:18 -070059LOCAL_SHARED_LIBRARIES += libz libcutils libc
Doug Zongker512536a2010-02-17 16:11:44 -080060
61include $(BUILD_EXECUTABLE)
62
63include $(CLEAR_VARS)
64
Tao Bao80e46e02015-06-03 10:49:29 -070065LOCAL_CLANG := true
Tao Baoba9a42a2015-06-23 23:23:33 -070066LOCAL_SRC_FILES := imgdiff.cpp utils.cpp bsdiff.cpp
Doug Zongker512536a2010-02-17 16:11:44 -080067LOCAL_MODULE := imgdiff
68LOCAL_FORCE_STATIC_EXECUTABLE := true
Doug Zongker512536a2010-02-17 16:11:44 -080069LOCAL_C_INCLUDES += external/zlib external/bzip2
70LOCAL_STATIC_LIBRARIES += libz libbz
71
72include $(BUILD_HOST_EXECUTABLE)