Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 1 | // Copyright 2017 The Android Open Source Project |
| 2 | |
Bob Badour | 4e06008 | 2021-02-16 18:59:28 -0800 | [diff] [blame] | 3 | package { |
| 4 | default_applicable_licenses: ["system_extras_f2fs_utils_license"], |
| 5 | } |
| 6 | |
| 7 | // Added automatically by a large-scale-change |
| 8 | // See: http://go/android-license-faq |
| 9 | license { |
| 10 | name: "system_extras_f2fs_utils_license", |
| 11 | visibility: [":__subpackages__"], |
| 12 | license_kinds: [ |
| 13 | "SPDX-license-identifier-Apache-2.0", |
| 14 | ], |
| 15 | license_text: [ |
| 16 | "NOTICE", |
| 17 | ], |
| 18 | } |
| 19 | |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 20 | cc_library_shared { |
| 21 | name: "libf2fs_sparseblock", |
Elliott Hughes | 5f5a886 | 2018-08-27 12:11:07 -0700 | [diff] [blame] | 22 | cflags: ["-Werror"], |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 23 | |
| 24 | srcs: ["f2fs_sparseblock.c"], |
| 25 | |
| 26 | shared_libs: [ |
| 27 | "liblog", |
| 28 | "libcutils", |
| 29 | ], |
| 30 | |
| 31 | include_dirs: [ |
| 32 | "external/f2fs-tools/include", |
Jaegeuk Kim | 412d7e5 | 2022-05-18 18:24:14 -0700 | [diff] [blame] | 33 | "bionic/libc", |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 34 | ], |
| 35 | |
ThiƩbaud Weksteen | 21a9932 | 2020-10-23 10:20:33 +0200 | [diff] [blame] | 36 | export_include_dirs: ["."], |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | cc_binary { |
| 40 | name: "f2fs_sparseblock", |
Elliott Hughes | 5f5a886 | 2018-08-27 12:11:07 -0700 | [diff] [blame] | 41 | cflags: ["-Werror"], |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 42 | |
| 43 | srcs: ["f2fs_sparseblock.c"], |
| 44 | |
| 45 | shared_libs: [ |
| 46 | "liblog", |
| 47 | "libcutils", |
| 48 | ], |
| 49 | |
| 50 | include_dirs: [ |
| 51 | "external/f2fs-tools/include", |
Jaegeuk Kim | 412d7e5 | 2022-05-18 18:24:14 -0700 | [diff] [blame] | 52 | "bionic/libc", |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 53 | ], |
| 54 | } |
| 55 | |
jiajia tang | 173b0a3 | 2022-05-13 11:51:25 +0800 | [diff] [blame] | 56 | sh_binary_host { |
Cole Faust | f61af98 | 2022-09-05 18:33:35 -0700 | [diff] [blame] | 57 | name: "mkf2fsuserimg", |
Dan Willemsen | ebab937 | 2019-03-23 13:53:03 -0700 | [diff] [blame] | 58 | src: "mkf2fsuserimg.sh", |
ThiƩbaud Weksteen | 21a9932 | 2020-10-23 10:20:33 +0200 | [diff] [blame] | 59 | required: [ |
| 60 | "make_f2fs", |
| 61 | "sload_f2fs", |
| 62 | ], |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 63 | } |