]>
Commit | Line | Data |
---|---|---|
a95c632b AD |
1 | // Copyright 2017 The Android Open Source Project |
2 | ||
9c897f01 BB |
3 | package { |
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 | // SPDX-license-identifier-LGPL | |
10 | // SPDX-license-identifier-LGPL-2.1 | |
11 | // SPDX-license-identifier-LGPL-3.0 | |
12 | default_applicable_licenses: ["external_e2fsprogs_license"], | |
13 | } | |
14 | ||
a95c632b AD |
15 | cc_library { |
16 | name: "libext2_blkid", | |
17 | host_supported: true, | |
a431f19f | 18 | ramdisk_available: true, |
9892631d | 19 | vendor_available: true, |
643ee340 | 20 | vendor_ramdisk_available: true, |
722b9ca4 | 21 | recovery_available: true, |
a95c632b | 22 | unique_host_soname: true, |
c19b18f8 | 23 | defaults: ["e2fsprogs-defaults"], |
a95c632b AD |
24 | srcs: [ |
25 | "cache.c", | |
26 | "dev.c", | |
27 | "devname.c", | |
28 | "devno.c", | |
29 | "getsize.c", | |
30 | "llseek.c", | |
31 | "probe.c", | |
32 | "read.c", | |
33 | "resolve.c", | |
34 | "save.c", | |
35 | "tag.c", | |
36 | "version.c", | |
37 | ], | |
38 | shared_libs: ["libext2_uuid"], | |
39 | ||
0a3d8041 JQ |
40 | target: { |
41 | windows: { | |
0a3d8041 JQ |
42 | cflags: [ |
43 | "-Wno-pointer-to-int-cast", | |
182fa0cd | 44 | "-Wno-error=typedef-redefinition", |
0a3d8041 | 45 | ], |
80c777a3 A |
46 | |
47 | enabled: true, | |
0a3d8041 JQ |
48 | }, |
49 | }, | |
50 | ||
a95c632b | 51 | cflags: [ |
c19b18f8 TT |
52 | "-Wno-error=attributes", |
53 | "-Wno-error=pointer-sign", | |
54 | "-Wno-unused-parameter", | |
a95c632b AD |
55 | ], |
56 | ||
57 | header_libs: ["libext2-headers"], | |
58 | export_include_dirs: ["."], | |
59 | export_header_lib_headers: ["libext2-headers"], | |
60 | } |