aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
blob: 5fc7a9b6dbd65df3033757a18a83cba3be1c9da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package {
    default_applicable_licenses: ["external_liburing_license"],
}

// Added automatically by a large-scale-change
//
// large-scale-change included anything that looked like it might be a license
// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
//
// Please consider removing redundant or irrelevant files from 'license_text:'.
// See: http://go/android-license-faq
license {
    name: "external_liburing_license",
    visibility: [":__subpackages__"],
    license_kinds: [
        "legacy_notice",
    ],
    license_text: [
        "COPYING",
        "COPYING.GPL",
        "LICENSE",
        "NOTICE",
    ],
}

cc_defaults {
    name: "iouring_defaults",

    cflags: [
        "-Wall",
        "-Werror",
        "-Wno-pointer-arith",
        "-Wno-unused-parameter",
	"-Wno-implicit-function-declaration",
	"-D_GNU_SOURCE"
    ],
    include_dirs: ["bionic/libc/kernel"],
    export_include_dirs: [
        "src/include",
	"src/arch",
    ],
    srcs: [
        "src/queue.c",
        "src/register.c",
        "src/setup.c",
        "src/syscall.c",
    ],
}

cc_library_static {
    name: "liburing",
    defaults: [
        "iouring_defaults",
    ],
    recovery_available: true,
    ramdisk_available: true,
    vendor_ramdisk_available: true,
    host_supported: true,
    device_supported: true,
}