]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - lib/ext2fs/Android.mk
Merge remote-tracking branch 'origin/maint' into next
[thirdparty/e2fsprogs.git] / lib / ext2fs / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 libext2fs_src_files := \
4 ext2_err.c \
5 alloc.c \
6 alloc_sb.c \
7 alloc_stats.c \
8 alloc_tables.c \
9 atexit.c \
10 badblocks.c \
11 bb_inode.c \
12 bitmaps.c \
13 bitops.c \
14 blkmap64_ba.c \
15 blkmap64_rb.c \
16 blknum.c \
17 block.c \
18 bmap.c \
19 check_desc.c \
20 crc16.c \
21 crc32c.c \
22 csum.c \
23 closefs.c \
24 dblist.c \
25 dblist_dir.c \
26 digest_encode.c \
27 dirblock.c \
28 dirhash.c \
29 dir_iterate.c \
30 dupfs.c \
31 expanddir.c \
32 ext_attr.c \
33 extent.c \
34 fallocate.c \
35 fileio.c \
36 finddev.c \
37 flushb.c \
38 freefs.c \
39 gen_bitmap.c \
40 gen_bitmap64.c \
41 get_num_dirs.c \
42 get_pathname.c \
43 getsize.c \
44 getsectsize.c \
45 i_block.c \
46 icount.c \
47 imager.c \
48 ind_block.c \
49 initialize.c \
50 inline.c \
51 inline_data.c \
52 inode.c \
53 io_manager.c \
54 ismounted.c \
55 link.c \
56 llseek.c \
57 lookup.c \
58 mmp.c \
59 mkdir.c \
60 mkjournal.c \
61 namei.c \
62 native.c \
63 newdir.c \
64 openfs.c \
65 progress.c \
66 punch.c \
67 qcow2.c \
68 rbtree.c \
69 read_bb.c \
70 read_bb_file.c \
71 res_gdt.c \
72 rw_bitmaps.c \
73 sha256.c \
74 sha512.c \
75 swapfs.c \
76 symlink.c \
77 tdb.c \
78 undo_io.c \
79 unix_io.c \
80 unlink.c \
81 valid_blk.c \
82 version.c
83
84 # get rid of this?!
85 libext2fs_src_files += test_io.c
86
87 libext2fs_shared_libraries := \
88 libext2_com_err \
89 libext2_uuid \
90 libext2_blkid \
91 libext2_e2p
92
93 libext2fs_system_shared_libraries := libc
94
95 libext2fs_static_libraries := \
96 libext2_com_err \
97 libext2_uuid_static \
98 libext2_blkid \
99 libext2_e2p
100
101 libext2fs_system_static_libraries := libc
102
103 libext2fs_c_includes := external/e2fsprogs/lib
104
105 libext2fs_cflags := -O2 -g -W -Wall
106
107 include $(CLEAR_VARS)
108
109 LOCAL_SRC_FILES := $(libext2fs_src_files)
110 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2fs_system_shared_libraries)
111 LOCAL_SHARED_LIBRARIES := $(libext2fs_shared_libraries)
112 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
113 LOCAL_CFLAGS := $(libext2fs_cflags)
114 LOCAL_MODULE := libext2fs
115 LOCAL_MODULE_TAGS := optional
116
117 include $(BUILD_SHARED_LIBRARY)
118
119 include $(CLEAR_VARS)
120
121 LOCAL_SRC_FILES := $(libext2fs_src_files)
122 LOCAL_STATIC_LIBRARIES := $(libext2fs_static_libraries) $(libext2fs_system_static_libraries)
123 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
124 LOCAL_CFLAGS := $(libext2fs_cflags) $(libext2fs_cflags_linux)
125 LOCAL_PRELINK_MODULE := false
126 LOCAL_MODULE := libext2fs
127 LOCAL_MODULE_TAGS := optional
128
129 include $(BUILD_STATIC_LIBRARY)
130
131 include $(CLEAR_VARS)
132
133 LOCAL_SRC_FILES := $(libext2fs_src_files)
134 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(libext2fs_shared_libraries))
135 LOCAL_C_INCLUDES := $(libext2fs_c_includes)
136 LOCAL_CFLAGS := $(libext2fs_cflags)
137 LOCAL_MODULE := libext2fs_host
138 LOCAL_MODULE_TAGS := optional
139
140 include $(BUILD_HOST_SHARED_LIBRARY)