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", |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 33 | ], |
| 34 | |
ThiƩbaud Weksteen | 21a9932 | 2020-10-23 10:20:33 +0200 | [diff] [blame] | 35 | export_include_dirs: ["."], |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | cc_binary { |
| 39 | name: "f2fs_sparseblock", |
Elliott Hughes | 5f5a886 | 2018-08-27 12:11:07 -0700 | [diff] [blame] | 40 | cflags: ["-Werror"], |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 41 | |
| 42 | srcs: ["f2fs_sparseblock.c"], |
| 43 | |
| 44 | shared_libs: [ |
| 45 | "liblog", |
| 46 | "libcutils", |
| 47 | ], |
| 48 | |
| 49 | include_dirs: [ |
| 50 | "external/f2fs-tools/include", |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 51 | ], |
| 52 | } |
| 53 | |
Dan Willemsen | ebab937 | 2019-03-23 13:53:03 -0700 | [diff] [blame] | 54 | sh_binary { |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 55 | name: "mkf2fsuserimg.sh", |
| 56 | |
Dan Willemsen | ebab937 | 2019-03-23 13:53:03 -0700 | [diff] [blame] | 57 | src: "mkf2fsuserimg.sh", |
ThiƩbaud Weksteen | 21a9932 | 2020-10-23 10:20:33 +0200 | [diff] [blame] | 58 | required: [ |
| 59 | "make_f2fs", |
| 60 | "sload_f2fs", |
| 61 | ], |
Jayant Chowdhary | b2e7992 | 2017-05-09 19:12:01 -0700 | [diff] [blame] | 62 | host_supported: true, |
| 63 | } |