blob: 0fc6e3682a82367cc9766972a968b9d91ce1ce9f [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
Tao Baod80a9982016-03-03 11:43:47 -080017# libapplypatch (static library)
18# ===============================
Doug Zongker512536a2010-02-17 16:11:44 -080019include $(CLEAR_VARS)
Tao Bao80e46e02015-06-03 10:49:29 -070020LOCAL_CLANG := true
Tao Baod80a9982016-03-03 11:43:47 -080021LOCAL_SRC_FILES := \
22 applypatch.cpp \
23 bspatch.cpp \
24 freecache.cpp \
25 imgpatch.cpp \
26 utils.cpp
Doug Zongker512536a2010-02-17 16:11:44 -080027LOCAL_MODULE := libapplypatch
28LOCAL_MODULE_TAGS := eng
Tao Baod80a9982016-03-03 11:43:47 -080029LOCAL_C_INCLUDES += \
30 $(LOCAL_PATH)/include \
31 bootable/recovery
32LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
33LOCAL_STATIC_LIBRARIES += \
34 libotafault \
Tao Baod80a9982016-03-03 11:43:47 -080035 libbase \
Josh Gao073164f2016-08-05 15:59:05 -070036 libcrypto \
Tao Baod80a9982016-03-03 11:43:47 -080037 libbz \
38 libz
Doug Zongker512536a2010-02-17 16:11:44 -080039include $(BUILD_STATIC_LIBRARY)
40
Tao Baod80a9982016-03-03 11:43:47 -080041# libimgpatch (static library)
42# ===============================
Doug Zongker512536a2010-02-17 16:11:44 -080043include $(CLEAR_VARS)
Tao Bao80e46e02015-06-03 10:49:29 -070044LOCAL_CLANG := true
Sen Jiang0cce9cd2016-01-22 20:49:07 +080045LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp
46LOCAL_MODULE := libimgpatch
Tao Baod80a9982016-03-03 11:43:47 -080047LOCAL_C_INCLUDES += \
48 $(LOCAL_PATH)/include \
49 bootable/recovery
Sen Jiang0cce9cd2016-01-22 20:49:07 +080050LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Josh Gao073164f2016-08-05 15:59:05 -070051LOCAL_STATIC_LIBRARIES += libcrypto libbz libz
Sen Jiang0cce9cd2016-01-22 20:49:07 +080052include $(BUILD_STATIC_LIBRARY)
53
Tao Baod80a9982016-03-03 11:43:47 -080054# libimgpatch (host static library)
55# ===============================
Sen Jiang0cce9cd2016-01-22 20:49:07 +080056include $(CLEAR_VARS)
Sen Jiang0cce9cd2016-01-22 20:49:07 +080057LOCAL_CLANG := true
58LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp
59LOCAL_MODULE := libimgpatch
Tao Baod80a9982016-03-03 11:43:47 -080060LOCAL_MODULE_HOST_OS := linux
61LOCAL_C_INCLUDES += \
62 $(LOCAL_PATH)/include \
63 bootable/recovery
Sen Jiang0cce9cd2016-01-22 20:49:07 +080064LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Josh Gao073164f2016-08-05 15:59:05 -070065LOCAL_STATIC_LIBRARIES += libcrypto libbz libz
Sen Jiang0cce9cd2016-01-22 20:49:07 +080066include $(BUILD_HOST_STATIC_LIBRARY)
67
Tao Baod80a9982016-03-03 11:43:47 -080068# applypatch (executable)
69# ===============================
Sen Jiang0cce9cd2016-01-22 20:49:07 +080070include $(CLEAR_VARS)
Sen Jiang0cce9cd2016-01-22 20:49:07 +080071LOCAL_CLANG := true
Tao Baoba9a42a2015-06-23 23:23:33 -070072LOCAL_SRC_FILES := main.cpp
Doug Zongker512536a2010-02-17 16:11:44 -080073LOCAL_MODULE := applypatch
Doug Zongkerc4351c72010-02-22 14:46:32 -080074LOCAL_C_INCLUDES += bootable/recovery
Tao Baod80a9982016-03-03 11:43:47 -080075LOCAL_STATIC_LIBRARIES += \
76 libapplypatch \
77 libbase \
78 libedify \
79 libotafault \
80 libminzip \
Josh Gao073164f2016-08-05 15:59:05 -070081 libcrypto \
Tao Baod80a9982016-03-03 11:43:47 -080082 libbz
Tianjie Xu7b0ad9c2016-08-05 18:00:04 -070083LOCAL_SHARED_LIBRARIES += libbase libz libcutils libc
Doug Zongker512536a2010-02-17 16:11:44 -080084include $(BUILD_EXECUTABLE)
85
Tao Baod80a9982016-03-03 11:43:47 -080086# imgdiff (host static executable)
87# ===============================
Doug Zongker512536a2010-02-17 16:11:44 -080088include $(CLEAR_VARS)
Tao Bao80e46e02015-06-03 10:49:29 -070089LOCAL_CLANG := true
Sen Jiang2fffcb12016-05-03 15:49:10 -070090LOCAL_SRC_FILES := imgdiff.cpp utils.cpp
Doug Zongker512536a2010-02-17 16:11:44 -080091LOCAL_MODULE := imgdiff
Sen Jiang2fffcb12016-05-03 15:49:10 -070092LOCAL_STATIC_LIBRARIES += \
93 libbsdiff \
94 libbz \
95 libdivsufsort64 \
96 libdivsufsort \
97 libz
Tao Bao16e38612016-06-01 00:08:40 +000098LOCAL_FORCE_STATIC_EXECUTABLE := true
Doug Zongker512536a2010-02-17 16:11:44 -080099include $(BUILD_HOST_EXECUTABLE)