blob: debc43f7010640b308449ff18497bc0efccc76f1 [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 Park85377812019-05-04 00:30:23 +090033 "native_loader_namespace.cpp",
Jiyong Park40a60772019-05-03 16:21:31 +090034 "public_libraries.cpp",
Jiyong Park6291da22019-04-26 18:55:48 +090035 ],
dimitry0c119412019-03-19 12:29:49 +010036 shared_libs: [
37 "libdl_android",
38 ],
39 },
40 },
Jiyong Park9837d6b2017-12-18 20:43:35 +090041 required: [
42 "llndk.libraries.txt",
43 "vndksp.libraries.txt",
44 ],
Martin Stjernholma015ad22019-02-05 15:07:05 +000045 stubs: {
46 symbol_file: "libnativeloader.map.txt",
47 versions: ["1"],
48 },
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000049}
50
Jiyong Park00f2ebe2019-01-29 00:08:55 +090051// TODO(b/124250621) eliminate the need for this library
52cc_library {
53 name: "libnativeloader_lazy",
54 defaults: ["libnativeloader-defaults"],
55 host_supported: false,
56 srcs: ["native_loader_lazy.cpp"],
57 required: ["libnativeloader"],
58}
59
60cc_library_headers {
61 name: "libnativeloader-headers",
62 host_supported: true,
63 export_include_dirs: ["include"],
64}
65
66// TODO(jiyong) Remove this when its use in the internal master is
67// switched to libnativeloader-headers
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000068cc_library_headers {
69 name: "libnativeloader-dummy-headers",
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000070 host_supported: true,
71 export_include_dirs: ["include"],
Colin Crossd4ce20a2016-07-27 10:36:36 -070072}