1// 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 15cc_defaults { 16 name: "ioshark_defaults", 17 18 cflags: [ 19 "-g", 20 "-O2", 21 "-Wall", 22 "-Werror", 23 ], 24 25 target: { 26 darwin: { 27 enabled: false, 28 }, 29 host: { 30 cflags: [ 31 "-D_GNU_SOURCE", 32 ], 33 }, 34 }, 35} 36 37cc_binary { 38 name: "ioshark_bench", 39 defaults: ["ioshark_defaults"], 40 srcs: [ 41 "ioshark_bench.c", 42 "ioshark_bench_subr.c", 43 "ioshark_bench_mmap.c", 44 ], 45} 46 47cc_binary_host { 48 name: "compile_ioshark", 49 defaults: ["ioshark_defaults"], 50 srcs: [ 51 "compile_ioshark.c", 52 "compile_ioshark_subr.c", 53 ], 54} 55 56cc_binary_host { 57 name: "dump_ioshark_filenames", 58 defaults: ["ioshark_defaults"], 59 srcs: ["dump_ioshark_filenames.c"], 60} 61 62cc_binary_host { 63 name: "convert_format", 64 defaults: ["ioshark_defaults"], 65 srcs: ["convert_format.c"], 66} 67