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