blob: 1f73fd897df8199305e14ec98cf63ae7fcf81dc5 [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 Bao485b6372015-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
23LOCAL_C_INCLUDES += external/bzip2 external/zlib bootable/recovery
24LOCAL_STATIC_LIBRARIES += libmtdutils libmincrypt libbz libz
25
26include $(BUILD_STATIC_LIBRARY)
27
28include $(CLEAR_VARS)
29
Tao Bao80e46e02015-06-03 10:49:29 -070030LOCAL_CLANG := true
Tao Bao485b6372015-06-23 23:23:33 -070031LOCAL_SRC_FILES := main.cpp
Doug Zongker512536a2010-02-17 16:11:44 -080032LOCAL_MODULE := applypatch
Doug Zongkerc4351c72010-02-22 14:46:32 -080033LOCAL_C_INCLUDES += bootable/recovery
Doug Zongker3eb681d2014-02-13 15:49:35 -080034LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz
Dan Alberte49a9e52015-05-19 11:33:18 -070035LOCAL_SHARED_LIBRARIES += libz libcutils libc
Doug Zongker512536a2010-02-17 16:11:44 -080036
37include $(BUILD_EXECUTABLE)
38
39include $(CLEAR_VARS)
40
Tao Bao80e46e02015-06-03 10:49:29 -070041LOCAL_CLANG := true
Tao Bao485b6372015-06-23 23:23:33 -070042LOCAL_SRC_FILES := main.cpp
Doug Zongker512536a2010-02-17 16:11:44 -080043LOCAL_MODULE := applypatch_static
44LOCAL_FORCE_STATIC_EXECUTABLE := true
45LOCAL_MODULE_TAGS := eng
Doug Zongkerc4351c72010-02-22 14:46:32 -080046LOCAL_C_INCLUDES += bootable/recovery
Doug Zongker3eb681d2014-02-13 15:49:35 -080047LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz
Dan Alberte49a9e52015-05-19 11:33:18 -070048LOCAL_STATIC_LIBRARIES += libz libcutils libc
Doug Zongker512536a2010-02-17 16:11:44 -080049
50include $(BUILD_EXECUTABLE)
51
52include $(CLEAR_VARS)
53
Tao Bao80e46e02015-06-03 10:49:29 -070054LOCAL_CLANG := true
Tao Bao485b6372015-06-23 23:23:33 -070055LOCAL_SRC_FILES := imgdiff.cpp utils.cpp bsdiff.cpp
Doug Zongker512536a2010-02-17 16:11:44 -080056LOCAL_MODULE := imgdiff
57LOCAL_FORCE_STATIC_EXECUTABLE := true
Doug Zongker512536a2010-02-17 16:11:44 -080058LOCAL_C_INCLUDES += external/zlib external/bzip2
59LOCAL_STATIC_LIBRARIES += libz libbz
60
61include $(BUILD_HOST_EXECUTABLE)