blob: 3b77a9e9f5f88144aefe87ecc1fe9460d73bcf05 [file] [log] [blame]
Colin Crossd4ce20a2016-07-27 10:36:36 -07001// Shared library for target
2// ========================================================
Jiyong Park00f2ebe2019-01-29 00:08:55 +09003cc_defaults {
4 name: "libnativeloader-defaults",
5 cflags: [
6 "-Werror",
7 "-Wall",
8 ],
9 cppflags: [
10 "-fvisibility=hidden",
11 ],
12 header_libs: ["libnativeloader-headers"],
13 export_header_lib_headers: ["libnativeloader-headers"],
14}
15
Colin Crossd4ce20a2016-07-27 10:36:36 -070016cc_library {
17 name: "libnativeloader",
Jiyong Park00f2ebe2019-01-29 00:08:55 +090018 defaults: ["libnativeloader-defaults"],
Colin Crossd4ce20a2016-07-27 10:36:36 -070019 host_supported: true,
Jiyong Park6291da22019-04-26 18:55:48 +090020 srcs: [
21 "native_loader.cpp",
22 ],
Colin Crossd4ce20a2016-07-27 10:36:36 -070023 shared_libs: [
24 "libnativehelper",
25 "liblog",
Zhenhua WANGf2804e52016-05-30 11:16:08 +080026 "libnativebridge",
Jaekyun Seok86e80b92016-12-21 14:22:00 +090027 "libbase",
Colin Crossd4ce20a2016-07-27 10:36:36 -070028 ],
dimitry0c119412019-03-19 12:29:49 +010029 target: {
30 android: {
Jiyong Park6291da22019-04-26 18:55:48 +090031 srcs: [
32 "library_namespaces.cpp",
Jiyong Park40a60772019-05-03 16:21:31 +090033 "public_libraries.cpp",
Jiyong Park6291da22019-04-26 18:55:48 +090034 ],
dimitry0c119412019-03-19 12:29:49 +010035 shared_libs: [
36 "libdl_android",
37 ],
38 },
39 },
Jiyong Park9837d6b2017-12-18 20:43:35 +090040 required: [
41 "llndk.libraries.txt",
42 "vndksp.libraries.txt",
43 ],
Martin Stjernholma015ad22019-02-05 15:07:05 +000044 stubs: {
45 symbol_file: "libnativeloader.map.txt",
46 versions: ["1"],
47 },
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000048}
49
Jiyong Park00f2ebe2019-01-29 00:08:55 +090050// TODO(b/124250621) eliminate the need for this library
51cc_library {
52 name: "libnativeloader_lazy",
53 defaults: ["libnativeloader-defaults"],
54 host_supported: false,
55 srcs: ["native_loader_lazy.cpp"],
56 required: ["libnativeloader"],
57}
58
59cc_library_headers {
60 name: "libnativeloader-headers",
61 host_supported: true,
62 export_include_dirs: ["include"],
63}
64
65// TODO(jiyong) Remove this when its use in the internal master is
66// switched to libnativeloader-headers
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000067cc_library_headers {
68 name: "libnativeloader-dummy-headers",
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000069 host_supported: true,
70 export_include_dirs: ["include"],
Colin Crossd4ce20a2016-07-27 10:36:36 -070071}