blob: a15ac0280c6f98c403e95e4813336c333dc0b8e2 [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 \
35 libmtdutils \
36 libbase \
37 libcrypto_static \
38 libbz \
39 libz
Doug Zongker512536a2010-02-17 16:11:44 -080040include $(BUILD_STATIC_LIBRARY)
41
Tao Baod80a9982016-03-03 11:43:47 -080042# libimgpatch (static library)
43# ===============================
Doug Zongker512536a2010-02-17 16:11:44 -080044include $(CLEAR_VARS)
Tao Bao80e46e02015-06-03 10:49:29 -070045LOCAL_CLANG := true
Sen Jiang0cce9cd2016-01-22 20:49:07 +080046LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp
47LOCAL_MODULE := libimgpatch
Tao Baod80a9982016-03-03 11:43:47 -080048LOCAL_C_INCLUDES += \
49 $(LOCAL_PATH)/include \
50 bootable/recovery
Sen Jiang0cce9cd2016-01-22 20:49:07 +080051LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Sen Jiangc48cb5e2016-02-04 16:23:21 +080052LOCAL_STATIC_LIBRARIES += libcrypto_static libbz libz
Sen Jiang0cce9cd2016-01-22 20:49:07 +080053include $(BUILD_STATIC_LIBRARY)
54
Tao Baod80a9982016-03-03 11:43:47 -080055# libimgpatch (host static library)
56# ===============================
Sen Jiang0cce9cd2016-01-22 20:49:07 +080057include $(CLEAR_VARS)
Sen Jiang0cce9cd2016-01-22 20:49:07 +080058LOCAL_CLANG := true
59LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp
60LOCAL_MODULE := libimgpatch
Tao Baod80a9982016-03-03 11:43:47 -080061LOCAL_MODULE_HOST_OS := linux
62LOCAL_C_INCLUDES += \
63 $(LOCAL_PATH)/include \
64 bootable/recovery
Sen Jiang0cce9cd2016-01-22 20:49:07 +080065LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
Sen Jiangc48cb5e2016-02-04 16:23:21 +080066LOCAL_STATIC_LIBRARIES += libcrypto_static libbz libz
Sen Jiang0cce9cd2016-01-22 20:49:07 +080067include $(BUILD_HOST_STATIC_LIBRARY)
68
Tao Baod80a9982016-03-03 11:43:47 -080069# applypatch (executable)
70# ===============================
Sen Jiang0cce9cd2016-01-22 20:49:07 +080071include $(CLEAR_VARS)
Sen Jiang0cce9cd2016-01-22 20:49:07 +080072LOCAL_CLANG := true
Tao Baoba9a42a2015-06-23 23:23:33 -070073LOCAL_SRC_FILES := main.cpp
Doug Zongker512536a2010-02-17 16:11:44 -080074LOCAL_MODULE := applypatch
Doug Zongkerc4351c72010-02-22 14:46:32 -080075LOCAL_C_INCLUDES += bootable/recovery
Tao Baod80a9982016-03-03 11:43:47 -080076LOCAL_STATIC_LIBRARIES += \
77 libapplypatch \
78 libbase \
79 libedify \
80 libotafault \
81 libminzip \
82 libmtdutils \
83 libcrypto_static \
84 libbz
Dan Alberte49a9e52015-05-19 11:33:18 -070085LOCAL_SHARED_LIBRARIES += libz libcutils libc
Doug Zongker512536a2010-02-17 16:11:44 -080086include $(BUILD_EXECUTABLE)
87
Tao Baod80a9982016-03-03 11:43:47 -080088# imgdiff (host static executable)
89# ===============================
Doug Zongker512536a2010-02-17 16:11:44 -080090include $(CLEAR_VARS)
Tao Bao80e46e02015-06-03 10:49:29 -070091LOCAL_CLANG := true
Sen Jiang2fffcb12016-05-03 15:49:10 -070092LOCAL_SRC_FILES := imgdiff.cpp utils.cpp
Doug Zongker512536a2010-02-17 16:11:44 -080093LOCAL_MODULE := imgdiff
Sen Jiang2fffcb12016-05-03 15:49:10 -070094LOCAL_STATIC_LIBRARIES += \
95 libbsdiff \
96 libbz \
97 libdivsufsort64 \
98 libdivsufsort \
99 libz
Tao Baod80a9982016-03-03 11:43:47 -0800100LOCAL_FORCE_STATIC_EXECUTABLE := true
Doug Zongker512536a2010-02-17 16:11:44 -0800101include $(BUILD_HOST_EXECUTABLE)