blob: f3a186c1fc22d89ca667258d3a93cf348a031f66 [file] [log] [blame]
JP Abgralla27df872014-06-11 23:46:42 -07001# Copyright 2014 The Android Open Source Project
2
3LOCAL_PATH:= $(call my-dir)
4
5libf2fs_ioutils_src_files := \
6 f2fs_ioutils.c
7
8# ---------------------------------------
9include $(CLEAR_VARS)
10LOCAL_SRC_FILES := $(libf2fs_ioutils_src_files)
11LOCAL_C_INCLUDES := external/f2fs-tools/include external/f2fs-tools/mkfs
12LOCAL_STATIC_LIBRARIES := \
13 libsparse_host \
14 libext2_uuid_host \
15 libz
16LOCAL_MODULE := libf2fs_ioutils_host
17include $(BUILD_HOST_STATIC_LIBRARY)
18
19# ---------------------------------------
20include $(CLEAR_VARS)
21LOCAL_SRC_FILES := f2fs_dlutils.c
22LOCAL_C_INCLUDES := external/f2fs-tools/include external/f2fs-tools/mkfs
23# Will attempt to dlopen("libf2fs_fmt_host_dyn")
24LOCAL_LDLIBS := -ldl
25LOCAL_MODULE := libf2fs_dlutils_host
26include $(BUILD_HOST_STATIC_LIBRARY)
27
28include $(CLEAR_VARS)
29LOCAL_MODULE := libf2fs_utils_host
30LOCAL_SRC_FILES := f2fs_utils.c
31LOCAL_STATIC_LIBRARIES := \
32 libsparse_host \
33 libz
34LOCAL_C_INCLUDES := external/f2fs-tools/include external/f2fs-tools/mkfs
35include $(BUILD_HOST_STATIC_LIBRARY)
36
37
38#
39# -- All host/targets excluding windows
40#
41
42ifneq ($(HOST_OS),windows)
43
44include $(CLEAR_VARS)
45LOCAL_MODULE := libf2fs_dlutils
46LOCAL_SRC_FILES := f2fs_dlutils.c
47LOCAL_C_INCLUDES := external/f2fs-tools/include external/f2fs-tools/mkfs
48LOCAL_SHARED_LIBRARIES := libdl
49include $(BUILD_SHARED_LIBRARY)
50
51include $(CLEAR_VARS)
52LOCAL_MODULE := libf2fs_dlutils_static
53LOCAL_SRC_FILES := f2fs_dlutils.c
54LOCAL_C_INCLUDES := external/f2fs-tools/include external/f2fs-tools/mkfs
55LOCAL_SHARED_LIBRARIES := libdl
56include $(BUILD_STATIC_LIBRARY)
57
58include $(CLEAR_VARS)
59LOCAL_MODULE := libf2fs_utils_static
60LOCAL_SRC_FILES := f2fs_utils.c
61LOCAL_C_INCLUDES := external/f2fs-tools/include external/f2fs-tools/mkfs
62LOCAL_STATIC_LIBRARIES := \
63 libsparse_static
64include $(BUILD_STATIC_LIBRARY)
65
66endif
67