1// 2// Copyright (C) 2019 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17cc_defaults { 18 name: "simpleperf_runtest_defaults", 19 host_supported: true, 20 cflags: [ 21 "-Wall", 22 "-Wextra", 23 "-Werror", 24 "-Wunused", 25 "-O0", 26 ], 27 compile_multilib: "both", 28 multilib: { 29 lib64: { 30 suffix: "64", 31 }, 32 lib32: { 33 suffix: "32", 34 }, 35 }, 36 target: { 37 darwin: { 38 enabled: false, 39 }, 40 }, 41} 42 43cc_binary { 44 name: "simpleperf_runtest_one_function", 45 defaults: ["simpleperf_runtest_defaults"], 46 srcs: ["one_function.cpp"], 47} 48 49cc_binary { 50 name: "simpleperf_runtest_two_functions", 51 defaults: ["simpleperf_runtest_defaults"], 52 srcs: ["two_functions.cpp"], 53} 54 55cc_binary { 56 name: "simpleperf_runtest_function_fork", 57 defaults: ["simpleperf_runtest_defaults"], 58 srcs: ["function_fork.cpp"], 59} 60 61cc_binary { 62 name: "simpleperf_runtest_function_pthread", 63 defaults: ["simpleperf_runtest_defaults"], 64 srcs: ["function_pthread.cpp"], 65} 66 67cc_binary { 68 name: "simpleperf_runtest_comm_change", 69 defaults: ["simpleperf_runtest_defaults"], 70 srcs: ["comm_change.cpp"], 71} 72 73cc_binary { 74 name: "simpleperf_runtest_function_recursive", 75 defaults: ["simpleperf_runtest_defaults"], 76 srcs: ["function_recursive.cpp"], 77} 78 79cc_binary { 80 name: "simpleperf_runtest_function_indirect_recursive", 81 defaults: ["simpleperf_runtest_defaults"], 82 srcs: ["function_indirect_recursive.cpp"], 83} 84 85cc_binary { 86 name: "simpleperf_runtest_run_and_sleep", 87 defaults: ["simpleperf_runtest_defaults"], 88 srcs: ["run_and_sleep.cpp"], 89} 90