Convert to Android.bp
See build/soong/README.md for more information. Test: cd external/gptfdisk; mma Change-Id: Ie108b4ed8387b0864e63f73a0817eb131b7ef6dc
This commit is contained in:
39
Android.bp
Normal file
39
Android.bp
Normal file
@@ -0,0 +1,39 @@
|
||||
cc_binary {
|
||||
name: "sgdisk",
|
||||
host_supported: true,
|
||||
|
||||
srcs: [
|
||||
"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",
|
||||
],
|
||||
cflags: [
|
||||
"-Wno-unused-parameter",
|
||||
"-Wno-pragma-pack",
|
||||
"-Werror",
|
||||
],
|
||||
|
||||
shared_libs: ["libext2_uuid"],
|
||||
|
||||
target: {
|
||||
darwin: {
|
||||
cflags: [
|
||||
"-D_FILE_OFFSET_BITS=64",
|
||||
"-Doff64_t=off_t",
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
52
Android.mk
52
Android.mk
@@ -1,52 +0,0 @@
|
||||
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 -Wno-pragma-pack -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_C_INCLUDES := $(LOCAL_PATH) external/e2fsprogs/lib
|
||||
LOCAL_SRC_FILES := $(sgdisk_src_files)
|
||||
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-pragma-pack -Werror
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := libext2_uuid
|
||||
|
||||
LOCAL_MODULE := sgdisk_host
|
||||
LOCAL_MODULE_STEM := sgdisk
|
||||
|
||||
include $(BUILD_HOST_EXECUTABLE)
|
||||
Reference in New Issue
Block a user