blob: 4d65b50278dd1fbddfd1877750072f68ef3971c6 [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",
33 ],
dimitry0c119412019-03-19 12:29:49 +010034 shared_libs: [
35 "libdl_android",
36 ],
37 },
38 },
Jiyong Park9837d6b2017-12-18 20:43:35 +090039 required: [
40 "llndk.libraries.txt",
41 "vndksp.libraries.txt",
42 ],
Martin Stjernholma015ad22019-02-05 15:07:05 +000043 stubs: {
44 symbol_file: "libnativeloader.map.txt",
45 versions: ["1"],
46 },
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000047}
48
Jiyong Park00f2ebe2019-01-29 00:08:55 +090049// TODO(b/124250621) eliminate the need for this library
50cc_library {
51 name: "libnativeloader_lazy",
52 defaults: ["libnativeloader-defaults"],
53 host_supported: false,
54 srcs: ["native_loader_lazy.cpp"],
55 required: ["libnativeloader"],
56}
57
58cc_library_headers {
59 name: "libnativeloader-headers",
60 host_supported: true,
61 export_include_dirs: ["include"],
62}
63
64// TODO(jiyong) Remove this when its use in the internal master is
65// switched to libnativeloader-headers
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000066cc_library_headers {
67 name: "libnativeloader-dummy-headers",
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000068 host_supported: true,
69 export_include_dirs: ["include"],
Colin Crossd4ce20a2016-07-27 10:36:36 -070070}