blob: 9a6d2be2e858bc7ed7a25c9b3d6c94e9137c4492 [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -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 Zongker02d444b2009-05-27 18:24:03 -070015ifneq ($(TARGET_SIMULATOR),true)
16
The Android Open Source Project88b60792009-03-03 19:28:42 -080017LOCAL_PATH := $(call my-dir)
18include $(CLEAR_VARS)
19
Doug Zongker6b2bb3d2009-07-20 14:45:29 -070020LOCAL_SRC_FILES := applypatch.c bsdiff.c freecache.c imgpatch.c utils.c
Doug Zongker5a790872009-06-12 09:42:43 -070021LOCAL_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
The Android Open Source Project88b60792009-03-03 19:28:42 -080031LOCAL_MODULE := applypatch
32LOCAL_FORCE_STATIC_EXECUTABLE := true
33LOCAL_MODULE_TAGS := eng
Doug Zongker5a790872009-06-12 09:42:43 -070034LOCAL_STATIC_LIBRARIES += libapplypatch
35LOCAL_STATIC_LIBRARIES += libmtdutils libmincrypt libbz libz
36LOCAL_STATIC_LIBRARIES += libcutils libstdc++ libc
The Android Open Source Project88b60792009-03-03 19:28:42 -080037
38include $(BUILD_EXECUTABLE)
39
Doug Zongker02d444b2009-05-27 18:24:03 -070040include $(CLEAR_VARS)
41
Doug Zongker6b2bb3d2009-07-20 14:45:29 -070042LOCAL_SRC_FILES := imgdiff.c utils.c
Doug Zongker02d444b2009-05-27 18:24:03 -070043LOCAL_MODULE := imgdiff
44LOCAL_FORCE_STATIC_EXECUTABLE := true
45LOCAL_MODULE_TAGS := eng
46LOCAL_C_INCLUDES += external/zlib
47LOCAL_STATIC_LIBRARIES += libz
48
49include $(BUILD_HOST_EXECUTABLE)
50
The Android Open Source Project88b60792009-03-03 19:28:42 -080051endif # !TARGET_SIMULATOR