1// Copyright 2017 The Android Open Source Project 2 3package { 4 // See: http://go/android-license-faq 5 // A large-scale-change added 'default_applicable_licenses' to import 6 // all of the 'license_kinds' from "external_e2fsprogs_license" 7 // to get the below license kinds: 8 // SPDX-license-identifier-GPL 9 default_applicable_licenses: ["external_e2fsprogs_license"], 10} 11 12resize2fs_libs = [ 13 "libext2fs", 14 "libext2_com_err", 15 "libext2_e2p", 16 "libext2_uuid", 17 "libext2_blkid", 18] 19 20cc_defaults { 21 name: "resize2fs-defaults", 22 defaults: ["e2fsprogs-defaults"], 23 srcs: [ 24 "extent.c", 25 "resize2fs.c", 26 "main.c", 27 "online.c", 28 "sim_progress.c", 29 "resource_track.c", 30 ], 31} 32 33cc_binary { 34 name: "resize2fs", 35 host_supported: true, 36 vendor_ramdisk_available: true, 37 defaults: ["resize2fs-defaults"], 38 39 // Host binaries can be compiled statically to be re-used in other environments. 40 // For android binaries, we keep shared libraries to keep the binary size smaller. 41 target: { 42 host: { 43 static_libs: resize2fs_libs, 44 }, 45 android: { 46 shared_libs: resize2fs_libs, 47 }, 48 }, 49 system_shared_libs: ["libc", "libdl"], 50} 51 52cc_binary { 53 name: "resize2fs_ramdisk", 54 stem: "resize2fs", 55 static_executable: true, 56 ramdisk: true, 57 defaults: ["resize2fs-defaults"], 58 system_shared_libs: [], 59 static_libs: resize2fs_libs, 60} 61