]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - lib/uuid/Android.mk
Add files to build on Android
[thirdparty/e2fsprogs.git] / lib / uuid / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 libext2_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
16 libext2_uuid_c_includes := external/e2fsprogs/lib
17
18 libext2_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
45 libext2_uuid_system_shared_libraries := libc
46
47 include $(CLEAR_VARS)
48
49 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
50 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
51 LOCAL_CFLAGS := $(libext2_uuid_cflags)
52 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2_uuid_system_shared_libraries)
53 LOCAL_MODULE := libext2_uuid
54 LOCAL_MODULE_TAGS := optional
55
56 include $(BUILD_SHARED_LIBRARY)
57
58 include $(CLEAR_VARS)
59
60 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
61 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
62 LOCAL_CFLAGS := $(libext2_uuid_cflags)
63 LOCAL_MODULE := libext2_uuid_host
64 LOCAL_MODULE_TAGS := optional
65
66 include $(BUILD_HOST_SHARED_LIBRARY)
67
68
69 include $(CLEAR_VARS)
70
71 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
72 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
73 LOCAL_CFLAGS := $(libext2_uuid_cflags)
74 LOCAL_STATIC_LIBRARIES := libc
75 LOCAL_MODULE := libext2_uuid_static
76 LOCAL_MODULE_TAGS := optional
77
78 include $(BUILD_STATIC_LIBRARY)
79
80
81 include $(CLEAR_VARS)
82
83 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
84 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
85 LOCAL_CFLAGS := $(libext2_uuid_cflags)
86 LOCAL_MODULE := libext2_uuid_host
87 LOCAL_MODULE_TAGS := optional
88
89 include $(BUILD_HOST_STATIC_LIBRARY)