blob: a146dfa828cf637f394dc7754a08edbe58977df5 [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
Matt Mower55c75ca2014-08-31 11:30:15 -050021LOCAL_C_INCLUDES += \
22 external/bzip2 \
23 external/zlib \
24 $(commands_recovery_local_path)
Dees Troyd63c7642013-11-03 13:03:55 +000025LOCAL_STATIC_LIBRARIES += libmtdutils libmincrypttwrp libbz libz
Doug Zongker512536a2010-02-17 16:11:44 -080026
27include $(BUILD_STATIC_LIBRARY)
28
29include $(CLEAR_VARS)
30
31LOCAL_SRC_FILES := main.c
32LOCAL_MODULE := applypatch
Matt Mower55c75ca2014-08-31 11:30:15 -050033LOCAL_C_INCLUDES += $(commands_recovery_local_path)
Dees Troyd63c7642013-11-03 13:03:55 +000034LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypttwrp libbz libminelf
Doug Zongker512536a2010-02-17 16:11:44 -080035LOCAL_SHARED_LIBRARIES += libz libcutils libstdc++ libc
36
37include $(BUILD_EXECUTABLE)
38
39include $(CLEAR_VARS)
40
41LOCAL_SRC_FILES := main.c
42LOCAL_MODULE := applypatch_static
43LOCAL_FORCE_STATIC_EXECUTABLE := true
44LOCAL_MODULE_TAGS := eng
Matt Mower55c75ca2014-08-31 11:30:15 -050045LOCAL_C_INCLUDES += $(commands_recovery_local_path)
Dees Troyd63c7642013-11-03 13:03:55 +000046LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypttwrp libbz libminelf
Doug Zongker512536a2010-02-17 16:11:44 -080047LOCAL_STATIC_LIBRARIES += libz libcutils libstdc++ libc
48
49include $(BUILD_EXECUTABLE)
50
51include $(CLEAR_VARS)
52
53LOCAL_SRC_FILES := imgdiff.c utils.c bsdiff.c
54LOCAL_MODULE := imgdiff
55LOCAL_FORCE_STATIC_EXECUTABLE := true
Doug Zongker512536a2010-02-17 16:11:44 -080056LOCAL_C_INCLUDES += external/zlib external/bzip2
57LOCAL_STATIC_LIBRARIES += libz libbz
Dees_Troy51a0e822012-09-05 15:24:24 -040058LOCAL_MODULE_TAGS := eng
Doug Zongker512536a2010-02-17 16:11:44 -080059
60include $(BUILD_HOST_EXECUTABLE)