blob: 02952a35f5d497f8344f53d7a1326605378cb044 [file] [log] [blame]
Dan Willemsen212e1bb2018-05-09 16:26:42 -07001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Bob Badour4e060082021-02-16 18:59:28 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Dan Willemsen212e1bb2018-05-09 16:26:42 -070019cc_defaults {
20 name: "ioshark_defaults",
21
22 cflags: [
23 "-g",
24 "-O2",
25 "-Wall",
26 "-Werror",
27 ],
28
29 target: {
30 darwin: {
31 enabled: false,
32 },
33 host: {
34 cflags: [
35 "-D_GNU_SOURCE",
36 ],
37 },
38 },
39}
40
41cc_binary {
42 name: "ioshark_bench",
43 defaults: ["ioshark_defaults"],
44 srcs: [
45 "ioshark_bench.c",
46 "ioshark_bench_subr.c",
47 "ioshark_bench_mmap.c",
48 ],
49}
50
51cc_binary_host {
52 name: "compile_ioshark",
53 defaults: ["ioshark_defaults"],
54 srcs: [
55 "compile_ioshark.c",
56 "compile_ioshark_subr.c",
57 ],
58}
59
60cc_binary_host {
61 name: "dump_ioshark_filenames",
62 defaults: ["ioshark_defaults"],
63 srcs: ["dump_ioshark_filenames.c"],
64}
65
66cc_binary_host {
67 name: "convert_format",
68 defaults: ["ioshark_defaults"],
69 srcs: ["convert_format.c"],
70}