• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
15LOCAL_PATH := $(call my-dir)
16
17include $(CLEAR_VARS)
18
19LOCAL_CLANG := true
20LOCAL_SRC_FILES := applypatch.cpp bspatch.cpp freecache.cpp imgpatch.cpp utils.cpp
21LOCAL_MODULE := libapplypatch
22LOCAL_MODULE_TAGS := eng
23LOCAL_C_INCLUDES += bootable/recovery
24LOCAL_STATIC_LIBRARIES += libbase libotafault libmtdutils libcrypto_static libbz libz
25
26include $(BUILD_STATIC_LIBRARY)
27
28include $(CLEAR_VARS)
29
30LOCAL_CLANG := true
31LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp
32LOCAL_MODULE := libimgpatch
33LOCAL_C_INCLUDES += bootable/recovery
34LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
35LOCAL_STATIC_LIBRARIES += libcrypto_static libbz libz
36
37include $(BUILD_STATIC_LIBRARY)
38
39ifeq ($(HOST_OS),linux)
40include $(CLEAR_VARS)
41
42LOCAL_CLANG := true
43LOCAL_SRC_FILES := bspatch.cpp imgpatch.cpp utils.cpp
44LOCAL_MODULE := libimgpatch
45LOCAL_C_INCLUDES += bootable/recovery
46LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
47LOCAL_STATIC_LIBRARIES += libcrypto_static libbz libz
48
49include $(BUILD_HOST_STATIC_LIBRARY)
50endif  # HOST_OS == linux
51
52include $(CLEAR_VARS)
53
54LOCAL_CLANG := true
55LOCAL_SRC_FILES := main.cpp
56LOCAL_MODULE := applypatch
57LOCAL_C_INCLUDES += bootable/recovery
58LOCAL_STATIC_LIBRARIES += libapplypatch libbase libotafault libmtdutils libcrypto_static libbz \
59                          libedify \
60
61LOCAL_SHARED_LIBRARIES += libz libcutils libc
62
63include $(BUILD_EXECUTABLE)
64
65include $(CLEAR_VARS)
66
67LOCAL_CLANG := true
68LOCAL_SRC_FILES := imgdiff.cpp utils.cpp bsdiff.cpp
69LOCAL_MODULE := imgdiff
70LOCAL_FORCE_STATIC_EXECUTABLE := true
71LOCAL_C_INCLUDES += external/zlib external/bzip2
72LOCAL_STATIC_LIBRARIES += libz libbz
73
74include $(BUILD_HOST_EXECUTABLE)
75