• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2014 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: "binder_test_defaults",
19    cflags: [
20        "-Wall",
21        "-Werror",
22        "-Wno-unused-private-field",
23        "-Wno-unused-variable",
24    ],
25}
26
27cc_test {
28    name: "binderDriverInterfaceTest_IPC_32",
29    srcs: ["binderDriverInterfaceTest.cpp"],
30    defaults: ["binder_test_defaults"],
31    compile_multilib: "32",
32    cflags: ["-DBINDER_IPC_32BIT=1"],
33}
34
35cc_test {
36    product_variables: {
37        binder32bit: {
38            cflags: ["-DBINDER_IPC_32BIT=1"],
39        },
40    },
41
42    name: "binderDriverInterfaceTest",
43    srcs: ["binderDriverInterfaceTest.cpp"],
44    defaults: ["binder_test_defaults"],
45}
46
47cc_test {
48    name: "binderValueTypeTest",
49    srcs: ["binderValueTypeTest.cpp"],
50    defaults: ["binder_test_defaults"],
51    shared_libs: [
52        "libbinder",
53        "libutils",
54    ],
55}
56
57cc_test {
58    name: "binderLibTest_IPC_32",
59    srcs: ["binderLibTest.cpp"],
60    defaults: ["binder_test_defaults"],
61    shared_libs: [
62        "libbinder",
63        "libutils",
64    ],
65    compile_multilib: "32",
66    cflags: ["-DBINDER_IPC_32BIT=1"],
67}
68
69cc_test {
70    product_variables: {
71        binder32bit: {
72            cflags: ["-DBINDER_IPC_32BIT=1"],
73        },
74    },
75
76    defaults: ["binder_test_defaults"],
77    name: "binderLibTest",
78    srcs: ["binderLibTest.cpp"],
79    shared_libs: [
80        "libbinder",
81        "libutils",
82    ],
83}
84
85cc_test {
86    name: "binderThroughputTest",
87    srcs: ["binderThroughputTest.cpp"],
88    defaults: ["binder_test_defaults"],
89    shared_libs: [
90        "libbinder",
91        "libutils",
92    ],
93    clang: true,
94    cflags: [
95        "-g",
96        "-Wno-missing-field-initializers",
97        "-Wno-sign-compare",
98        "-O3",
99    ],
100}
101
102cc_test {
103    name: "binderTextOutputTest",
104    srcs: ["binderTextOutputTest.cpp"],
105    defaults: ["binder_test_defaults"],
106    shared_libs: [
107        "libbinder",
108        "libutils",
109        "libbase",
110    ],
111}
112
113cc_test {
114    name: "schd-dbg",
115    srcs: ["schd-dbg.cpp"],
116    defaults: ["binder_test_defaults"],
117    shared_libs: [
118        "libbinder",
119        "libutils",
120        "libbase",
121    ],
122}
123
124cc_test {
125    name: "binderSafeInterfaceTest",
126    srcs: ["binderSafeInterfaceTest.cpp"],
127    defaults: ["binder_test_defaults"],
128
129    cppflags: [
130        "-Weverything",
131        "-Wno-c++98-compat",
132        "-Wno-c++98-compat-pedantic",
133        "-Wno-global-constructors",
134        "-Wno-padded",
135        "-Wno-weak-vtables",
136    ],
137
138    cpp_std: "experimental",
139    gnu_extensions: false,
140
141    shared_libs: [
142        "libbinder",
143        "libcutils",
144        "liblog",
145        "libutils",
146    ],
147}
148