1 LOCAL_PATH := $(call my-dir)
3 libext2fs_src_files := \
73 libext2fs_src_files += test_io.c
75 libext2fs_shared_libraries := \
81 libext2fs_system_shared_libraries := libc
83 libext2fs_c_includes := external/e2fsprogs/lib
85 libext2fs_cflags := -O2 -g -W -Wall \
92 -DHAVE_SYS_RESOURCE_H \
102 -DHAVE_TYPE_SSIZE_T \
107 libext2fs_cflags_linux := \
111 -DHAVE_LSEEK64_PROTOTYPE
113 include $(CLEAR_VARS)
115 LOCAL_SRC_FILES := $(libext2fs_src_files)
116 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2fs_system_shared_libraries)
117 LOCAL_SHARED_LIBRARIES := $(libext2fs_shared_libraries)
118 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
119 LOCAL_CFLAGS := $(libext2fs_cflags) $(libext2fs_cflags_linux)
120 LOCAL_PRELINK_MODULE := false
121 LOCAL_MODULE := libext2fs
122 LOCAL_MODULE_TAGS := optional
124 include $(BUILD_SHARED_LIBRARY)
126 include $(CLEAR_VARS)
128 LOCAL_SRC_FILES := $(libext2fs_src_files)
129 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(libext2fs_shared_libraries))
130 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
131 ifeq ($(HOST_OS),linux)
132 LOCAL_CFLAGS := $(libext2fs_cflags) $(libext2fs_cflags_linux)
134 LOCAL_CFLAGS := $(libext2fs_cflags)
136 LOCAL_MODULE := libext2fs_host
137 LOCAL_MODULE_TAGS := optional
139 include $(BUILD_HOST_SHARED_LIBRARY)