blob: 4d5c53dba6e93d0ce53a3dece3b234e3896ebc8e [file] [log] [blame]
Jiyong Parkd1006fe2017-11-08 18:44:09 +09001//
2// Copyright (C) 2017 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_library {
18 name: "libfoo.oem1",
19 srcs: ["test.cpp"],
Elliott Hughesdc699a22018-02-16 17:58:14 -080020 cflags: ["-DLIBNAME=\"libfoo.oem1.so\""],
Jiyong Parkd1006fe2017-11-08 18:44:09 +090021 shared_libs: [
22 "libbase",
23 ],
24}
Elliott Hughesdc699a22018-02-16 17:58:14 -080025
Jiyong Parkd1006fe2017-11-08 18:44:09 +090026cc_library {
27 name: "libbar.oem1",
28 srcs: ["test.cpp"],
Elliott Hughesdc699a22018-02-16 17:58:14 -080029 cflags: ["-DLIBNAME=\"libbar.oem1.so\""],
Jiyong Parkd1006fe2017-11-08 18:44:09 +090030 shared_libs: [
31 "libbase",
32 ],
33}
Elliott Hughesdc699a22018-02-16 17:58:14 -080034
Jiyong Parkd1006fe2017-11-08 18:44:09 +090035cc_library {
36 name: "libfoo.oem2",
37 srcs: ["test.cpp"],
Elliott Hughesdc699a22018-02-16 17:58:14 -080038 cflags: ["-DLIBNAME=\"libfoo.oem2.so\""],
Jiyong Parkd1006fe2017-11-08 18:44:09 +090039 shared_libs: [
40 "libbase",
41 ],
42}
Elliott Hughesdc699a22018-02-16 17:58:14 -080043
Jiyong Parkd1006fe2017-11-08 18:44:09 +090044cc_library {
45 name: "libbar.oem2",
46 srcs: ["test.cpp"],
Elliott Hughesdc699a22018-02-16 17:58:14 -080047 cflags: ["-DLIBNAME=\"libbar.oem2.so\""],
Jiyong Parkd1006fe2017-11-08 18:44:09 +090048 shared_libs: [
49 "libbase",
50 ],
51}
Inseob Kim67cb0562018-05-04 11:39:12 +090052
53cc_library {
54 name: "libfoo.product1",
55 srcs: ["test.cpp"],
56 cflags: ["-DLIBNAME=\"libfoo.product1.so\""],
57 product_specific: true,
58 shared_libs: [
59 "libbase",
60 ],
61}
62
63cc_library {
64 name: "libbar.product1",
65 srcs: ["test.cpp"],
66 cflags: ["-DLIBNAME=\"libbar.product1.so\""],
67 product_specific: true,
68 shared_libs: [
69 "libbase",
70 ],
71}
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000072
73// Build the test for the C API.
74cc_test {
75 name: "libnativeloader-api-tests",
76 host_supported: true,
77 test_per_src: true,
78 srcs: [
79 "api_test.c",
80 ],
Jiyong Park00f2ebe2019-01-29 00:08:55 +090081 header_libs: ["libnativeloader-headers"],
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000082}