blob: 66cb49ffb8a30d3e6aa939bb6e0c38f9f9d6690c [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 ],
dimitry0c119412019-03-19 12:29:49 +010027 target: {
28 android: {
29 shared_libs: [
30 "libdl_android",
31 ],
32 },
33 },
Jiyong Park9837d6b2017-12-18 20:43:35 +090034 required: [
35 "llndk.libraries.txt",
36 "vndksp.libraries.txt",
37 ],
Martin Stjernholma015ad22019-02-05 15:07:05 +000038 stubs: {
39 symbol_file: "libnativeloader.map.txt",
40 versions: ["1"],
41 },
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000042}
43
Jiyong Park00f2ebe2019-01-29 00:08:55 +090044// TODO(b/124250621) eliminate the need for this library
45cc_library {
46 name: "libnativeloader_lazy",
47 defaults: ["libnativeloader-defaults"],
48 host_supported: false,
49 srcs: ["native_loader_lazy.cpp"],
50 required: ["libnativeloader"],
51}
52
53cc_library_headers {
54 name: "libnativeloader-headers",
55 host_supported: true,
56 export_include_dirs: ["include"],
57}
58
59// TODO(jiyong) Remove this when its use in the internal master is
60// switched to libnativeloader-headers
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000061cc_library_headers {
62 name: "libnativeloader-dummy-headers",
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000063 host_supported: true,
64 export_include_dirs: ["include"],
Colin Crossd4ce20a2016-07-27 10:36:36 -070065}