| Alex Deymo | e8ed694 | 2017-01-11 16:54:52 -0800 | [diff] [blame] | 1 | // Copyright 2010 The Android Open Source Project |
| 2 | |
| 3 | cc_library { |
| 4 | name: "libext4_utils", |
| Chih-Hung Hsieh | 16db672 | 2017-10-02 15:06:37 -0700 | [diff] [blame] | 5 | defaults: ["system-extras-cflags-defaults"], |
| Alex Deymo | e8ed694 | 2017-01-11 16:54:52 -0800 | [diff] [blame] | 6 | host_supported: true, |
| Jiyong Park | 02fd558 | 2018-05-24 14:10:32 +0900 | [diff] [blame] | 7 | recovery_available: true, |
| Alex Deymo | e8ed694 | 2017-01-11 16:54:52 -0800 | [diff] [blame] | 8 | srcs: [ |
| Alex Deymo | e8ed694 | 2017-01-11 16:54:52 -0800 | [diff] [blame] | 9 | "ext4_utils.c", |
| 10 | "allocate.c", |
| 11 | "contents.c", |
| 12 | "extent.c", |
| 13 | "indirect.c", |
| 14 | "sha1.c", |
| 15 | "wipe.c", |
| 16 | "crc16.c", |
| 17 | "ext4_sb.c", |
| 18 | ], |
| 19 | // Various instances of dereferencing a type-punned pointer in extent.c |
| 20 | cflags: ["-fno-strict-aliasing"], |
| 21 | export_include_dirs: ["include"], |
| 22 | shared_libs: [ |
| 23 | "libsparse", |
| Dan Willemsen | 23df846 | 2017-09-27 16:26:36 -0700 | [diff] [blame] | 24 | "libz", |
| Alex Deymo | e8ed694 | 2017-01-11 16:54:52 -0800 | [diff] [blame] | 25 | ], |
| 26 | |
| 27 | target: { |
| 28 | host: { |
| 29 | static_libs: ["libsparse"], |
| Alex Deymo | e8ed694 | 2017-01-11 16:54:52 -0800 | [diff] [blame] | 30 | }, |
| Dan Willemsen | 23df846 | 2017-09-27 16:26:36 -0700 | [diff] [blame] | 31 | not_windows: { |
| Alex Deymo | e8ed694 | 2017-01-11 16:54:52 -0800 | [diff] [blame] | 32 | static_libs: ["libselinux"], |
| 33 | }, |
| 34 | windows: { |
| 35 | host_ldlibs: ["-lws2_32"], |
| 36 | enabled: true, |
| 37 | }, |
| 38 | |
| 39 | android: { |
| 40 | srcs: [ |
| Alex Deymo | e8ed694 | 2017-01-11 16:54:52 -0800 | [diff] [blame] | 41 | "ext4_crypt.cpp", |
| 42 | ], |
| 43 | shared_libs: [ |
| 44 | "libbase", |
| Elliott Hughes | 3e17870 | 2017-05-09 17:04:14 -0700 | [diff] [blame] | 45 | "libkeyutils", |
| Alex Deymo | e8ed694 | 2017-01-11 16:54:52 -0800 | [diff] [blame] | 46 | "libselinux", |
| 47 | ], |
| 48 | |
| 49 | static: { |
| 50 | srcs: [ |
| 51 | "ext4_crypt_init_extensions.cpp", |
| 52 | ], |
| 53 | static_libs: [ |
| 54 | "liblogwrap", |
| 55 | ] |
| 56 | }, |
| 57 | shared: { |
| 58 | cflags: ["-DREAL_UUID"], |
| 59 | shared_libs: [ |
| 60 | "libcutils", |
| 61 | "libext2_uuid", |
| Alex Deymo | e8ed694 | 2017-01-11 16:54:52 -0800 | [diff] [blame] | 62 | ] |
| 63 | }, |
| 64 | }, |
| 65 | }, |
| 66 | } |