1LOCAL_PATH := $(call my-dir)
2
3libext2_uuid_src_files := \
4	clear.c \
5	compare.c \
6	copy.c \
7	gen_uuid.c \
8	isnull.c \
9	pack.c \
10	parse.c \
11	unpack.c \
12	unparse.c \
13	uuid_time.c
14
15
16libext2_uuid_c_includes := external/e2fsprogs/lib
17
18libext2_uuid_cflags := -O2 -g -W -Wall \
19	-DHAVE_INTTYPES_H \
20	-DHAVE_UNISTD_H \
21	-DHAVE_ERRNO_H \
22	-DHAVE_NETINET_IN_H \
23	-DHAVE_SYS_IOCTL_H \
24	-DHAVE_SYS_MMAN_H \
25	-DHAVE_SYS_MOUNT_H \
26	-DHAVE_SYS_PRCTL_H \
27	-DHAVE_SYS_RESOURCE_H \
28	-DHAVE_SYS_SELECT_H \
29	-DHAVE_SYS_STAT_H \
30	-DHAVE_SYS_TYPES_H \
31	-DHAVE_STDLIB_H \
32	-DHAVE_STRDUP \
33	-DHAVE_MMAP \
34	-DHAVE_UTIME_H \
35	-DHAVE_GETPAGESIZE \
36	-DHAVE_LSEEK64 \
37	-DHAVE_LSEEK64_PROTOTYPE \
38	-DHAVE_EXT2_IOCTLS \
39	-DHAVE_LINUX_FD_H \
40	-DHAVE_TYPE_SSIZE_T \
41	-DHAVE_SYS_TIME_H \
42        -DHAVE_SYS_PARAM_H \
43	-DHAVE_SYSCONF
44
45libext2_uuid_system_shared_libraries := libc
46
47include $(CLEAR_VARS)
48
49LOCAL_SRC_FILES := $(libext2_uuid_src_files)
50LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
51LOCAL_CFLAGS := $(libext2_uuid_cflags)
52LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) $(LOCAL_PATH)/..
53LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2_uuid_system_shared_libraries)
54LOCAL_MODULE := libext2_uuid
55LOCAL_MODULE_TAGS := optional
56
57include $(BUILD_SHARED_LIBRARY)
58
59include $(CLEAR_VARS)
60
61LOCAL_SRC_FILES := $(libext2_uuid_src_files)
62LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
63LOCAL_CFLAGS := $(libext2_uuid_cflags)
64LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
65LOCAL_MODULE := libext2_uuid-host
66LOCAL_MODULE_TAGS := optional
67
68include $(BUILD_HOST_SHARED_LIBRARY)
69
70
71include $(CLEAR_VARS)
72
73LOCAL_SRC_FILES := $(libext2_uuid_src_files)
74LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
75LOCAL_CFLAGS := $(libext2_uuid_cflags)
76LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
77LOCAL_STATIC_LIBRARIES := libc
78LOCAL_MODULE := libext2_uuid_static
79LOCAL_MODULE_TAGS := optional
80
81include $(BUILD_STATIC_LIBRARY)
82
83
84include $(CLEAR_VARS)
85
86LOCAL_SRC_FILES := $(libext2_uuid_src_files)
87LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
88LOCAL_CFLAGS := $(libext2_uuid_cflags)
89LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
90LOCAL_MODULE := libext2_uuid-host
91LOCAL_MODULE_TAGS := optional
92
93include $(BUILD_HOST_STATIC_LIBRARY)
94