summaryrefslogtreecommitdiff
path: root/Android.bp
blob: 7aacaf41d0eb049d6fc6a28d1c9f1d82bd5f910c (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
cc_defaults {
    name: "fio_defaults",
    cflags: [
        "-DFIO_VERSION=\"fio-2.20\"",
        "-DCONFIG_3ARG_AFFINITY",
        "-DCONFIG_CLOCK_GETTIME",
        "-DCONFIG_CLOCK_MONOTONIC",
        "-DCONFIG_FDATASYNC",
        "-DCONFIG_GETOPT_LONG_ONLY",
        "-DCONFIG_GETTIMEOFDAY",
        "-DCONFIG_IPV6",
        "-DCONFIG_LINUX_FALLOCATE",
        "-DCONFIG_LINUX_SPLICE",
        "-DCONFIG_LITTLE_ENDIAN",
        "-DCONFIG_PSHARED",
        "-DCONFIG_RLIMIT_MEMLOCK",
        "-DCONFIG_RUSAGE_THREAD",
        "-DCONFIG_SCHED_IDLE",
        "-DCONFIG_SETVBUF",
        "-DCONFIG_SFAA",
        "-DCONFIG_SOCKLEN_T",
        "-DCONFIG_STRCASESTR",
        "-DCONFIG_STRLCAT",
        "-DCONFIG_STRSEP",
        "-DCONFIG_TCP_NODELAY",
        "-DCONFIG_TLS_THREAD",
        "-DCONFIG_ZLIB",
        "-DFIO_HAVE_CGROUPS",
        "-DFIO_INC_DEBUG",
        "-DFIO_INTERNAL",
        "-D_FILE_OFFSET_BITS=64",
        "-O3",
        "-Wall",
        "-Werror",
        "-Wdeclaration-after-statement",
        "-Wwrite-strings",
        "-ffast-math",
        "-fno-omit-frame-pointer",
        "-std=gnu99",
        "-Wno-macro-redefined",
        "-Wno-missing-field-initializers",
        "-Wno-pointer-arith",
        "-Wno-sign-compare",
        "-Wno-unused-parameter",
        "-Wno-unused-variable",
        "-include sys/sysmacros.h",
    ],

    multilib: {
        lib32: {
            cflags: [
                "-DBITS_PER_LONG=32",
                "-DCONFIG_32BIT",
            ],
        },
        lib64: {
            cflags: [
                "-DBITS_PER_LONG=64",
                "-DCONFIG_64BIT",
            ],
        },
    },
    arch: {
        mips: {
            enabled: false,
        },
        mips64: {
            enabled: false,
        },
    },

    tidy_checks: ["-clang-analyzer*"],
}

cc_binary {
    name: "fio",
    defaults: ["fio_defaults"],
    shared_libs: ["libdl"],
    static_libs: [
        "libcutils",
        "libz",
    ],
    srcs: [
        "backend.c",
        "blktrace.c",
        "cconv.c",
        "cgroup.c",
        "client.c",
        "debug.c",
        "diskutil.c",
        "eta.c",
        "fifo.c",
        "filehash.c",
        "filelock.c",
        "filesetup.c",
        "fio.c",
        "flow.c",
        "gettime.c",
        "gettime-thread.c",
        "helpers.c",
        "helper_thread.c",
        "idletime.c",
        "init.c",
        "ioengines.c",
        "iolog.c",
        "io_u.c",
        "io_u_queue.c",
        "json.c",
        "libfio.c",
        "log.c",
        "memory.c",
        "mutex.c",
        "optgroup.c",
        "options.c",
        "parse.c",
        "profile.c",
        "rate-submit.c",
        "server.c",
        "smalloc.c",
        "stat.c",
        "steadystate.c",
        "td_error.c",
        "tickmarks.c",
        "time.c",
        "trim.c",
        "verify.c",
        "workqueue.c",
        "crc/*.c",
        "engines/cpu.c",
        "engines/mmap.c",
        "engines/null.c",
        "engines/net.c",
        "engines/sg.c",
        "engines/splice.c",
        "engines/sync.c",
        "lib/*.c",
        "oslib/linux-dev-lookup.c",
    ],
}