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