1 # Copyright 2010 The Android Open Source Project
3 LOCAL_PATH
:= $(call my-dir
)
5 libsparse_src_files
:= \
15 LOCAL_EXPORT_C_INCLUDE_DIRS
:= $(LOCAL_PATH
)/include
16 LOCAL_SRC_FILES
:= $(libsparse_src_files
)
17 LOCAL_MODULE
:= libsparse_host
18 LOCAL_STATIC_LIBRARIES
:= libz
19 LOCAL_C_INCLUDES
:= $(LOCAL_PATH
)/include
20 LOCAL_CFLAGS
:= -Werror
21 include $(BUILD_HOST_STATIC_LIBRARY
)
25 LOCAL_EXPORT_C_INCLUDE_DIRS
:= $(LOCAL_PATH
)/include
26 LOCAL_SRC_FILES
:= $(libsparse_src_files
)
27 LOCAL_MODULE
:= libsparse
28 LOCAL_C_INCLUDES
+= $(LOCAL_PATH
)/include
29 LOCAL_SHARED_LIBRARIES
:= \
31 LOCAL_CFLAGS
:= -Werror
32 include $(BUILD_SHARED_LIBRARY
)
36 LOCAL_EXPORT_C_INCLUDE_DIRS
:= $(LOCAL_PATH
)/include
37 LOCAL_SRC_FILES
:= $(libsparse_src_files
)
38 LOCAL_MODULE
:= libsparse_static
39 LOCAL_C_INCLUDES
+= $(LOCAL_PATH
)/include
40 LOCAL_STATIC_LIBRARIES
:= libz
41 LOCAL_CFLAGS
:= -Werror
42 include $(BUILD_STATIC_LIBRARY
)
46 LOCAL_SRC_FILES
:= simg2img.c \
48 LOCAL_MODULE
:= simg2img_host
49 # Need a unique module name, but exe should still be called simg2img
50 LOCAL_MODULE_STEM
:= simg2img
51 LOCAL_STATIC_LIBRARIES
:= \
54 LOCAL_CFLAGS
:= -Werror
55 include $(BUILD_HOST_EXECUTABLE
)
59 LOCAL_SRC_FILES
:= simg2img.c \
61 LOCAL_MODULE
:= simg2img
62 LOCAL_STATIC_LIBRARIES
:= \
65 LOCAL_CFLAGS
:= -Werror
66 include $(BUILD_EXECUTABLE
)
70 LOCAL_SRC_FILES
:= img2simg.c
71 LOCAL_MODULE
:= img2simg_host
72 # Need a unique module name, but exe should still be called simg2img
73 LOCAL_MODULE_STEM
:= img2simg
74 LOCAL_STATIC_LIBRARIES
:= \
77 LOCAL_CFLAGS
:= -Werror
78 include $(BUILD_HOST_EXECUTABLE
)
82 LOCAL_SRC_FILES
:= img2simg.c
83 LOCAL_MODULE
:= img2simg
84 LOCAL_STATIC_LIBRARIES
:= \
87 LOCAL_CFLAGS
:= -Werror
88 include $(BUILD_EXECUTABLE
)
91 ifneq ($(HOST_OS
),windows
)
94 LOCAL_SRC_FILES
:= append2simg.c
95 LOCAL_MODULE
:= append2simg
96 LOCAL_STATIC_LIBRARIES
:= \
99 LOCAL_CFLAGS
:= -Werror
100 include $(BUILD_HOST_EXECUTABLE
)
104 include $(CLEAR_VARS
)
105 LOCAL_MODULE
:= simg_dump.py
106 LOCAL_SRC_FILES
:= simg_dump.py
107 LOCAL_MODULE_CLASS
:= EXECUTABLES
108 LOCAL_IS_HOST_MODULE
:= true
109 LOCAL_CFLAGS
:= -Werror
110 include $(BUILD_PREBUILT
)