blob: 2848b517ecb687533d1de76d188c6addc0cce105 [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
15ifneq ($(TARGET_SIMULATOR),true)
16
17LOCAL_PATH := $(call my-dir)
18include $(CLEAR_VARS)
19
20LOCAL_SRC_FILES := applypatch.c bspatch.c freecache.c imgpatch.c utils.c
21LOCAL_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
30LOCAL_SRC_FILES := main.c
31LOCAL_MODULE := applypatch
Doug Zongkerc4351c72010-02-22 14:46:32 -080032LOCAL_C_INCLUDES += bootable/recovery
Hristo Bojinovdb314d62010-08-02 10:29:49 -070033LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz libminelf
Doug Zongker512536a2010-02-17 16:11:44 -080034LOCAL_SHARED_LIBRARIES += libz libcutils libstdc++ libc
35
36include $(BUILD_EXECUTABLE)
37
38include $(CLEAR_VARS)
39
40LOCAL_SRC_FILES := main.c
41LOCAL_MODULE := applypatch_static
42LOCAL_FORCE_STATIC_EXECUTABLE := true
43LOCAL_MODULE_TAGS := eng
Doug Zongkerc4351c72010-02-22 14:46:32 -080044LOCAL_C_INCLUDES += bootable/recovery
Hristo Bojinovdb314d62010-08-02 10:29:49 -070045LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz libminelf
Doug Zongker512536a2010-02-17 16:11:44 -080046LOCAL_STATIC_LIBRARIES += libz libcutils libstdc++ libc
47
48include $(BUILD_EXECUTABLE)
49
50include $(CLEAR_VARS)
51
52LOCAL_SRC_FILES := imgdiff.c utils.c bsdiff.c
53LOCAL_MODULE := imgdiff
54LOCAL_FORCE_STATIC_EXECUTABLE := true
55LOCAL_MODULE_TAGS := eng
56LOCAL_C_INCLUDES += external/zlib external/bzip2
57LOCAL_STATIC_LIBRARIES += libz libbz
58
59include $(BUILD_HOST_EXECUTABLE)
60
Doug Zongker512536a2010-02-17 16:11:44 -080061endif # !TARGET_SIMULATOR