Home | History | Annotate | Download | only in applypatch
      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 
     15 LOCAL_PATH := $(call my-dir)
     16 include $(CLEAR_VARS)
     17 
     18 LOCAL_SRC_FILES := applypatch.c bspatch.c freecache.c imgpatch.c utils.c
     19 LOCAL_MODULE := libapplypatch
     20 LOCAL_MODULE_TAGS := eng
     21 LOCAL_C_INCLUDES += external/bzip2 external/zlib bootable/recovery
     22 LOCAL_STATIC_LIBRARIES += libmtdutils libmincrypt libbz libz
     23 
     24 include $(BUILD_STATIC_LIBRARY)
     25 
     26 include $(CLEAR_VARS)
     27 
     28 LOCAL_SRC_FILES := main.c
     29 LOCAL_MODULE := applypatch
     30 LOCAL_C_INCLUDES += bootable/recovery
     31 LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz
     32 LOCAL_SHARED_LIBRARIES += libz libcutils libstdc++ libc
     33 
     34 include $(BUILD_EXECUTABLE)
     35 
     36 include $(CLEAR_VARS)
     37 
     38 LOCAL_SRC_FILES := main.c
     39 LOCAL_MODULE := applypatch_static
     40 LOCAL_FORCE_STATIC_EXECUTABLE := true
     41 LOCAL_MODULE_TAGS := eng
     42 LOCAL_C_INCLUDES += bootable/recovery
     43 LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypt libbz
     44 LOCAL_STATIC_LIBRARIES += libz libcutils libstdc++ libc
     45 
     46 include $(BUILD_EXECUTABLE)
     47 
     48 include $(CLEAR_VARS)
     49 
     50 LOCAL_SRC_FILES := imgdiff.c utils.c bsdiff.c
     51 LOCAL_MODULE := imgdiff
     52 LOCAL_FORCE_STATIC_EXECUTABLE := true
     53 LOCAL_C_INCLUDES += external/zlib external/bzip2
     54 LOCAL_STATIC_LIBRARIES += libz libbz
     55 
     56 include $(BUILD_HOST_EXECUTABLE)
     57