blob: 2cce81f6d6ba76cfa4381929d7fa3cb7b907efa0 [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
Conn O'Griofad9201042014-03-25 01:26:49 +000018BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY
19
20$(foreach board_define,$(BOARD_RECOVERY_DEFINES), \
21 $(if $($(board_define)), \
22 $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \
23 ) \
24 )
25
Doug Zongker512536a2010-02-17 16:11:44 -080026LOCAL_SRC_FILES := applypatch.c bspatch.c freecache.c imgpatch.c utils.c
27LOCAL_MODULE := libapplypatch
28LOCAL_MODULE_TAGS := eng
Matt Mower55c75ca2014-08-31 11:30:15 -050029LOCAL_C_INCLUDES += \
30 external/bzip2 \
31 external/zlib \
32 $(commands_recovery_local_path)
Dees Troyd63c7642013-11-03 13:03:55 +000033LOCAL_STATIC_LIBRARIES += libmtdutils libmincrypttwrp libbz libz
Doug Zongker512536a2010-02-17 16:11:44 -080034
35include $(BUILD_STATIC_LIBRARY)
36
37include $(CLEAR_VARS)
38
39LOCAL_SRC_FILES := main.c
40LOCAL_MODULE := applypatch
Matt Mower031163b2014-11-01 15:13:03 -050041LOCAL_MODULE_TAGS := optional
Matt Mower55c75ca2014-08-31 11:30:15 -050042LOCAL_C_INCLUDES += $(commands_recovery_local_path)
Ethan Yonkera1674162014-11-06 08:35:10 -060043LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypttwrp libbz
Doug Zongker512536a2010-02-17 16:11:44 -080044LOCAL_SHARED_LIBRARIES += libz libcutils libstdc++ libc
45
46include $(BUILD_EXECUTABLE)
47
48include $(CLEAR_VARS)
49
50LOCAL_SRC_FILES := main.c
51LOCAL_MODULE := applypatch_static
52LOCAL_FORCE_STATIC_EXECUTABLE := true
Ethan Yonkera1674162014-11-06 08:35:10 -060053LOCAL_MODULE_TAGS := optional eng
Matt Mower55c75ca2014-08-31 11:30:15 -050054LOCAL_C_INCLUDES += $(commands_recovery_local_path)
Ethan Yonkera1674162014-11-06 08:35:10 -060055LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypttwrp libbz
Doug Zongker512536a2010-02-17 16:11:44 -080056LOCAL_STATIC_LIBRARIES += libz libcutils libstdc++ libc
57
58include $(BUILD_EXECUTABLE)
59
60include $(CLEAR_VARS)
61
62LOCAL_SRC_FILES := imgdiff.c utils.c bsdiff.c
63LOCAL_MODULE := imgdiff
64LOCAL_FORCE_STATIC_EXECUTABLE := true
Doug Zongker512536a2010-02-17 16:11:44 -080065LOCAL_C_INCLUDES += external/zlib external/bzip2
66LOCAL_STATIC_LIBRARIES += libz libbz
Dees_Troy51a0e822012-09-05 15:24:24 -040067LOCAL_MODULE_TAGS := eng
Doug Zongker512536a2010-02-17 16:11:44 -080068
69include $(BUILD_HOST_EXECUTABLE)