You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.9 KiB
79 lines
1.9 KiB
// Copyright 2017 The Android Open Source Project
|
|
|
|
//##########################################################################
|
|
// Build e2fsdroid
|
|
|
|
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "external_e2fsprogs_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["external_e2fsprogs_license"],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "e2fsdroid",
|
|
host_supported: true,
|
|
recovery_available: true,
|
|
defaults: ["e2fsprogs-defaults"],
|
|
|
|
srcs: [
|
|
"e2fsdroid.c",
|
|
"block_range.c",
|
|
"fsmap.c",
|
|
"block_list.c",
|
|
"base_fs.c",
|
|
"perms.c",
|
|
"basefs_allocator.c",
|
|
],
|
|
target: {
|
|
host: {
|
|
static_libs: [
|
|
"libext2_com_err",
|
|
"libext2_misc",
|
|
"libext2fs",
|
|
"libsparse",
|
|
"libz",
|
|
"libcutils",
|
|
"libbase",
|
|
"libselinux",
|
|
"libcrypto",
|
|
"liblog",
|
|
],
|
|
sanitize: {
|
|
address: false, // http://b/68387795 - heap overflow in e2fsdroid
|
|
},
|
|
},
|
|
android: {
|
|
shared_libs: [
|
|
"libext2fs",
|
|
"libext2_com_err",
|
|
"libext2_misc",
|
|
"libcutils",
|
|
"libbase",
|
|
"libselinux",
|
|
"libcrypto",
|
|
],
|
|
},
|
|
},
|
|
stl: "libc++_static",
|
|
}
|
|
|
|
//##########################################################################
|
|
// Build ext2simg
|
|
|
|
cc_binary {
|
|
name: "ext2simg",
|
|
host_supported: true,
|
|
defaults: ["e2fsprogs-defaults"],
|
|
|
|
srcs: ["ext2simg.c"],
|
|
shared_libs: [
|
|
"libext2fs",
|
|
"libext2_com_err",
|
|
"libsparse",
|
|
"libz",
|
|
],
|
|
}
|