Debian Codegraph @

simpleperf/runtest/Android.bp

raw
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
17 cc_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 shared_libs: ["libsimpleperf_inplace_sampler"],
37 target: {
38 darwin: {
39 enabled: false,
40 },
41 },
42 }
43
44 cc_binary {
45 name: "simpleperf_runtest_one_function",
46 defaults: ["simpleperf_runtest_defaults"],
47 srcs: ["one_function.cpp"],
48 }
49
50 cc_binary {
51 name: "simpleperf_runtest_two_functions",
52 defaults: ["simpleperf_runtest_defaults"],
53 srcs: ["two_functions.cpp"],
54 }
55
56 cc_binary {
57 name: "simpleperf_runtest_function_fork",
58 defaults: ["simpleperf_runtest_defaults"],
59 srcs: ["function_fork.cpp"],
60 }
61
62 cc_binary {
63 name: "simpleperf_runtest_function_pthread",
64 defaults: ["simpleperf_runtest_defaults"],
65 srcs: ["function_pthread.cpp"],
66 }
67
68 cc_binary {
69 name: "simpleperf_runtest_comm_change",
70 defaults: ["simpleperf_runtest_defaults"],
71 srcs: ["comm_change.cpp"],
72 }
73
74 cc_binary {
75 name: "simpleperf_runtest_function_recursive",
76 defaults: ["simpleperf_runtest_defaults"],
77 srcs: ["function_recursive.cpp"],
78 }
79
80 cc_binary {
81 name: "simpleperf_runtest_function_indirect_recursive",
82 defaults: ["simpleperf_runtest_defaults"],
83 srcs: ["function_indirect_recursive.cpp"],
84 }
85
86 cc_binary {
87 name: "simpleperf_runtest_run_and_sleep",
88 defaults: ["simpleperf_runtest_defaults"],
89 srcs: ["run_and_sleep.cpp"],
90 }