-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAndroid.mk
64 lines (49 loc) · 1.35 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
LOCAL_PATH := $(call my-dir)
sgdisk_src_files := \
sgdisk.cc \
gptcl.cc \
crc32.cc \
support.cc \
guid.cc \
gptpart.cc \
mbrpart.cc \
basicmbr.cc \
mbr.cc \
gpt.cc \
bsd.cc \
parttypes.cc \
attributes.cc \
diskio.cc \
diskio-unix.cc \
android_popt.cc \
include $(CLEAR_VARS)
LOCAL_CPP_EXTENSION := .cc
LOCAL_C_INCLUDES := $(LOCAL_PATH) external/e2fsprogs/lib
LOCAL_SRC_FILES := $(sgdisk_src_files)
LOCAL_CFLAGS += -Wno-unused-parameter -Werror
LOCAL_SHARED_LIBRARIES := libext2_uuid
LOCAL_MODULE := sgdisk
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_CPP_EXTENSION := .cc
ifeq ($(HOST_OS),darwin)
LOCAL_CFLAGS := -D_FILE_OFFSET_BITS=64 -Doff64_t=off_t
endif
LOCAL_CFLAGS += -Dmain=sgdisk_main
LOCAL_C_INCLUDES := $(LOCAL_PATH) external/e2fsprogs/lib
LOCAL_SRC_FILES := $(sgdisk_src_files)
LOCAL_MODULE := libsgdisk_static
LOCAL_MODULE_TAGS := optional
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_CPP_EXTENSION := .cc
ifeq ($(HOST_OS),darwin)
LOCAL_CFLAGS := -D_FILE_OFFSET_BITS=64 -Doff64_t=off_t
endif
LOCAL_C_INCLUDES := $(LOCAL_PATH) external/e2fsprogs/lib
LOCAL_SRC_FILES := $(sgdisk_src_files)
LOCAL_CFLAGS += -Wno-unused-parameter -Werror
LOCAL_SHARED_LIBRARIES := libext2_uuid
LOCAL_MODULE := sgdisk_host
LOCAL_MODULE_STEM := sgdisk
include $(BUILD_HOST_EXECUTABLE)