blob: b9f0dbff5a113d984919d4ee24c11d650774f51f [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,
20 srcs: ["native_loader.cpp"],
21 shared_libs: [
22 "libnativehelper",
23 "liblog",
Zhenhua WANGf2804e52016-05-30 11:16:08 +080024 "libnativebridge",
Jaekyun Seok86e80b92016-12-21 14:22:00 +090025 "libbase",
Colin Crossd4ce20a2016-07-27 10:36:36 -070026 ],
Jiyong Park9837d6b2017-12-18 20:43:35 +090027 required: [
28 "llndk.libraries.txt",
29 "vndksp.libraries.txt",
30 ],
Martin Stjernholma015ad22019-02-05 15:07:05 +000031 stubs: {
32 symbol_file: "libnativeloader.map.txt",
33 versions: ["1"],
34 },
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000035}
36
Jiyong Park00f2ebe2019-01-29 00:08:55 +090037// TODO(b/124250621) eliminate the need for this library
38cc_library {
39 name: "libnativeloader_lazy",
40 defaults: ["libnativeloader-defaults"],
41 host_supported: false,
42 srcs: ["native_loader_lazy.cpp"],
43 required: ["libnativeloader"],
44}
45
46cc_library_headers {
47 name: "libnativeloader-headers",
48 host_supported: true,
49 export_include_dirs: ["include"],
50}
51
52// TODO(jiyong) Remove this when its use in the internal master is
53// switched to libnativeloader-headers
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000054cc_library_headers {
55 name: "libnativeloader-dummy-headers",
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000056 host_supported: true,
57 export_include_dirs: ["include"],
Colin Crossd4ce20a2016-07-27 10:36:36 -070058}