blob: 8e40a01369a1a81411bdaa82f26d743b381a1dc6 [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: [
Steven Moreland02f75652018-09-18 14:08:30 -070047 "libandroid_runtime",
Steven Moreland2e87adc2018-08-20 19:47:00 -070048 "libbase",
49 "libbinder",
50 "libutils",
51 ],
52 static_libs: [
53 "libbinder_ndk",
54 "test_libbinder_ndk_library",
55 ],
56}
57
58cc_test {
59 name: "libbinder_ndk_test_client",
60 defaults: ["test_libbinder_ndk_test_defaults"],
61 srcs: ["main_client.cpp"],
62}
63
64cc_test {
65 name: "libbinder_ndk_test_server",
66 defaults: ["test_libbinder_ndk_test_defaults"],
67 srcs: ["main_server.cpp"],
68 gtest: false,
69}