blob: 61d904ec631ffc3d57b79159449cfa4310fb4bb3 [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)
16include $(CLEAR_VARS)
17
18LOCAL_SRC_FILES := applypatch.c bspatch.c freecache.c imgpatch.c utils.c
19LOCAL_MODULE := libapplypatch
20LOCAL_MODULE_TAGS := eng
21LOCAL_C_INCLUDES += external/bzip2 external/zlib bootable/recovery
Dees Troyd63c7642013-11-03 13:03:55 +000022LOCAL_STATIC_LIBRARIES += libmtdutils libmincrypttwrp libbz libz
Doug Zongker512536a2010-02-17 16:11:44 -080023
24include $(BUILD_STATIC_LIBRARY)
25
26include $(CLEAR_VARS)
27
28LOCAL_SRC_FILES := main.c
29LOCAL_MODULE := applypatch
Doug Zongkerc4351c72010-02-22 14:46:32 -080030LOCAL_C_INCLUDES += bootable/recovery
Dees Troyd63c7642013-11-03 13:03:55 +000031LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypttwrp libbz libminelf
Doug Zongker512536a2010-02-17 16:11:44 -080032LOCAL_SHARED_LIBRARIES += libz libcutils libstdc++ libc
33
34include $(BUILD_EXECUTABLE)
35
36include $(CLEAR_VARS)
37
38LOCAL_SRC_FILES := main.c
39LOCAL_MODULE := applypatch_static
40LOCAL_FORCE_STATIC_EXECUTABLE := true
41LOCAL_MODULE_TAGS := eng
Doug Zongkerc4351c72010-02-22 14:46:32 -080042LOCAL_C_INCLUDES += bootable/recovery
Dees Troyd63c7642013-11-03 13:03:55 +000043LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypttwrp libbz libminelf
Doug Zongker512536a2010-02-17 16:11:44 -080044LOCAL_STATIC_LIBRARIES += libz libcutils libstdc++ libc
45
46include $(BUILD_EXECUTABLE)
47
48include $(CLEAR_VARS)
49
50LOCAL_SRC_FILES := imgdiff.c utils.c bsdiff.c
51LOCAL_MODULE := imgdiff
52LOCAL_FORCE_STATIC_EXECUTABLE := true
Doug Zongker512536a2010-02-17 16:11:44 -080053LOCAL_C_INCLUDES += external/zlib external/bzip2
54LOCAL_STATIC_LIBRARIES += libz libbz
Dees_Troy51a0e822012-09-05 15:24:24 -040055LOCAL_MODULE_TAGS := eng
Doug Zongker512536a2010-02-17 16:11:44 -080056
57include $(BUILD_HOST_EXECUTABLE)