1 # Copyright 2010 The Android Open Source Project
3 LOCAL_PATH:= $(call my-dir)
5 libext4_utils_src_files := \
20 # -- All host/targets including windows
24 LOCAL_SRC_FILES := $(libext4_utils_src_files)
25 LOCAL_MODULE := libext4_utils_host
26 LOCAL_STATIC_LIBRARIES := \
29 ifneq ($(HOST_OS),windows)
30 LOCAL_STATIC_LIBRARIES += libselinux
32 include $(BUILD_HOST_STATIC_LIBRARY)
36 LOCAL_SRC_FILES := make_ext4fs_main.c
37 LOCAL_MODULE := make_ext4fs
38 LOCAL_SHARED_LIBRARIES += libcutils
39 LOCAL_STATIC_LIBRARIES += \
43 ifeq ($(HOST_OS),windows)
44 LOCAL_LDLIBS += -lws2_32
46 LOCAL_SHARED_LIBRARIES += libselinux
47 LOCAL_CFLAGS := -DHOST
49 include $(BUILD_HOST_EXECUTABLE)
53 # -- All host/targets excluding windows
56 libext4_utils_src_files += \
59 unencrypted_properties.cpp
61 ifneq ($(HOST_OS),windows)
64 LOCAL_SRC_FILES := $(libext4_utils_src_files)
65 LOCAL_MODULE := libext4_utils
66 LOCAL_C_INCLUDES += system/core/logwrapper/include
67 LOCAL_SHARED_LIBRARIES := \
73 LOCAL_CFLAGS := -DREAL_UUID
75 ifeq ($(BOARD_SUPPRESS_EMMC_WIPE),true)
76 LOCAL_CFLAGS += -DSUPPRESS_EMMC_WIPE
79 include $(BUILD_SHARED_LIBRARY)
83 LOCAL_SRC_FILES := $(libext4_utils_src_files) \
84 ext4_crypt_init_extensions.cpp
85 LOCAL_MODULE := libext4_utils_static
86 LOCAL_STATIC_LIBRARIES := \
89 ifeq ($(BOARD_SUPPRESS_EMMC_WIPE),true)
90 LOCAL_CFLAGS += -DSUPPRESS_EMMC_WIPE
93 include $(BUILD_STATIC_LIBRARY)
97 LOCAL_SRC_FILES := make_ext4fs_main.c
98 LOCAL_MODULE := make_ext4fs
99 LOCAL_SHARED_LIBRARIES := \
105 LOCAL_CFLAGS := -DREAL_UUID
106 include $(BUILD_EXECUTABLE)
109 include $(CLEAR_VARS)
110 LOCAL_SRC_FILES := ext2simg.c
111 LOCAL_MODULE := ext2simg
112 LOCAL_SHARED_LIBRARIES += \
117 include $(BUILD_EXECUTABLE)
120 include $(CLEAR_VARS)
121 LOCAL_SRC_FILES := ext2simg.c
122 LOCAL_MODULE := ext2simg
123 LOCAL_SHARED_LIBRARIES += \
125 LOCAL_STATIC_LIBRARIES += \
129 include $(BUILD_HOST_EXECUTABLE)
132 include $(CLEAR_VARS)
133 LOCAL_SRC_FILES := setup_fs.c
134 LOCAL_MODULE := setup_fs
135 LOCAL_SHARED_LIBRARIES += libcutils
136 include $(BUILD_EXECUTABLE)
139 include $(CLEAR_VARS)
140 LOCAL_SRC_FILES := ext4fixup_main.c
141 LOCAL_MODULE := ext4fixup
142 LOCAL_SHARED_LIBRARIES += \
146 include $(BUILD_EXECUTABLE)
149 include $(CLEAR_VARS)
150 LOCAL_SRC_FILES := ext4fixup_main.c
151 LOCAL_MODULE := ext4fixup
152 LOCAL_STATIC_LIBRARIES += \
156 include $(BUILD_HOST_EXECUTABLE)
159 include $(CLEAR_VARS)
160 LOCAL_MODULE := mkuserimg.sh
161 LOCAL_SRC_FILES := mkuserimg.sh
162 LOCAL_MODULE_CLASS := EXECUTABLES
163 # We don't need any additional suffix.
164 LOCAL_MODULE_SUFFIX :=
165 LOCAL_BUILT_MODULE_STEM := $(notdir $(LOCAL_SRC_FILES))
166 LOCAL_IS_HOST_MODULE := true
167 include $(BUILD_PREBUILT)