OSDN Git Service

Merge "Add a test for repeated neighbour probes."
[android-x86/system-extras.git] / ext4_utils / Android.mk
1 # Copyright 2010 The Android Open Source Project
2
3 LOCAL_PATH:= $(call my-dir)
4
5 libext4_utils_src_files := \
6     make_ext4fs.c \
7     ext4fixup.c \
8     ext4_utils.c \
9     allocate.c \
10     contents.c \
11     extent.c \
12     indirect.c \
13     sha1.c \
14     wipe.c \
15     crc16.c \
16     ext4_sb.c
17
18 #
19 # -- All host/targets including windows
20 #
21
22 include $(CLEAR_VARS)
23 LOCAL_SRC_FILES := $(libext4_utils_src_files)
24 LOCAL_MODULE := libext4_utils_host
25 # Various instances of dereferencing a type-punned pointer in extent.c
26 LOCAL_CFLAGS += -fno-strict-aliasing
27 LOCAL_STATIC_LIBRARIES := \
28     libsparse_host \
29     libz
30 ifneq ($(HOST_OS),windows)
31   LOCAL_STATIC_LIBRARIES += libselinux
32 endif
33 include $(BUILD_HOST_STATIC_LIBRARY)
34
35
36 include $(CLEAR_VARS)
37 LOCAL_SRC_FILES := make_ext4fs_main.c canned_fs_config.c
38 LOCAL_MODULE := make_ext4fs
39 LOCAL_SHARED_LIBRARIES += libcutils
40 LOCAL_STATIC_LIBRARIES += \
41     libext4_utils_host \
42     libsparse_host \
43     libz
44 ifeq ($(HOST_OS),windows)
45   LOCAL_LDLIBS += -lws2_32
46 else
47   LOCAL_SHARED_LIBRARIES += libselinux
48   LOCAL_CFLAGS := -DHOST
49 endif
50 include $(BUILD_HOST_EXECUTABLE)
51
52
53 #
54 # -- All host/targets excluding windows
55 #
56
57 libext4_utils_src_files += \
58     key_control.cpp \
59     ext4_crypt.cpp \
60     unencrypted_properties.cpp
61
62 ifneq ($(HOST_OS),windows)
63
64 include $(CLEAR_VARS)
65 LOCAL_SRC_FILES := $(libext4_utils_src_files)
66 LOCAL_MODULE := libext4_utils
67 LOCAL_C_INCLUDES += system/core/logwrapper/include
68 # Various instances of dereferencing a type-punned pointer in extent.c
69 LOCAL_CFLAGS += -fno-strict-aliasing
70 LOCAL_SHARED_LIBRARIES := \
71     libcutils \
72     libext2_uuid \
73     libselinux \
74     libsparse \
75     libz
76 LOCAL_CFLAGS := -DREAL_UUID
77 include $(BUILD_SHARED_LIBRARY)
78
79
80 include $(CLEAR_VARS)
81 LOCAL_SRC_FILES := $(libext4_utils_src_files) \
82     ext4_crypt_init_extensions.cpp
83 LOCAL_MODULE := libext4_utils_static
84 # Various instances of dereferencing a type-punned pointer in extent.c
85 LOCAL_CFLAGS += -fno-strict-aliasing
86 LOCAL_STATIC_LIBRARIES := \
87     libsparse_static
88 include $(BUILD_STATIC_LIBRARY)
89
90
91 include $(CLEAR_VARS)
92 LOCAL_SRC_FILES := make_ext4fs_main.c canned_fs_config.c
93 LOCAL_MODULE := make_ext4fs
94 LOCAL_SHARED_LIBRARIES := \
95     libcutils \
96     libext2_uuid \
97     libext4_utils \
98     libselinux \
99     libz
100 LOCAL_CFLAGS := -DREAL_UUID
101 include $(BUILD_EXECUTABLE)
102
103
104 include $(CLEAR_VARS)
105 LOCAL_SRC_FILES := ext2simg.c
106 LOCAL_MODULE := ext2simg
107 LOCAL_SHARED_LIBRARIES += \
108     libext4_utils \
109     libselinux \
110     libsparse \
111     libz
112 include $(BUILD_EXECUTABLE)
113
114
115 include $(CLEAR_VARS)
116 LOCAL_SRC_FILES := ext2simg.c
117 LOCAL_MODULE := ext2simg
118 LOCAL_SHARED_LIBRARIES += \
119     libselinux
120 LOCAL_STATIC_LIBRARIES += \
121     libext4_utils_host \
122     libsparse_host \
123     libz
124 include $(BUILD_HOST_EXECUTABLE)
125
126
127 include $(CLEAR_VARS)
128 LOCAL_SRC_FILES := setup_fs.c
129 LOCAL_MODULE := setup_fs
130 LOCAL_SHARED_LIBRARIES += libcutils
131 include $(BUILD_EXECUTABLE)
132
133
134 include $(CLEAR_VARS)
135 LOCAL_SRC_FILES := ext4fixup_main.c
136 LOCAL_MODULE := ext4fixup
137 LOCAL_SHARED_LIBRARIES += \
138     libext4_utils \
139     libsparse \
140     libz
141 include $(BUILD_EXECUTABLE)
142
143
144 include $(CLEAR_VARS)
145 LOCAL_SRC_FILES := ext4fixup_main.c
146 LOCAL_MODULE := ext4fixup
147 LOCAL_STATIC_LIBRARIES += \
148     libext4_utils_host \
149     libsparse_host \
150     libz
151 include $(BUILD_HOST_EXECUTABLE)
152
153
154 include $(CLEAR_VARS)
155 LOCAL_MODULE := mkuserimg.sh
156 LOCAL_SRC_FILES := mkuserimg.sh
157 LOCAL_MODULE_CLASS := EXECUTABLES
158 # We don't need any additional suffix.
159 LOCAL_MODULE_SUFFIX :=
160 LOCAL_BUILT_MODULE_STEM := $(notdir $(LOCAL_SRC_FILES))
161 LOCAL_IS_HOST_MODULE := true
162 include $(BUILD_PREBUILT)
163
164 endif