blob: d2421389f27efeae0a2473266bac6ab97cfbef91 [file] [log] [blame]
Steven Moreland2e87adc2018-08-20 19:47:00 -07001/*
2 * Copyright (C) 2018 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// This test is a unit test of the low-level API that is presented here.
18// Actual users should use AIDL to generate these complicated stubs.
19
20cc_defaults {
21 name: "test_libbinder_ndk_defaults",
22 shared_libs: [
23 "libbase",
24 ],
25 strip: {
26 none: true,
27 },
28 cflags: [
29 "-O0",
30 "-g",
31 ],
32}
33
34cc_library_static {
35 name: "test_libbinder_ndk_library",
36 defaults: ["test_libbinder_ndk_defaults"],
37 export_include_dirs: ["include"],
38 shared_libs: ["libbinder_ndk"],
39 export_shared_lib_headers: ["libbinder_ndk"],
40 srcs: ["iface.cpp"],
41}
42
43cc_defaults {
44 name: "test_libbinder_ndk_test_defaults",
45 defaults: ["test_libbinder_ndk_defaults"],
46 shared_libs: [
47 "libbase",
48 "libbinder",
49 "libutils",
50 ],
51 static_libs: [
52 "libbinder_ndk",
53 "test_libbinder_ndk_library",
54 ],
55}
56
57cc_test {
58 name: "libbinder_ndk_test_client",
59 defaults: ["test_libbinder_ndk_test_defaults"],
60 srcs: ["main_client.cpp"],
61}
62
63cc_test {
64 name: "libbinder_ndk_test_server",
65 defaults: ["test_libbinder_ndk_test_defaults"],
66 srcs: ["main_server.cpp"],
67 gtest: false,
68}