blob: b806ae4084ba0bb7aba3db216769cfeaf18187a2 [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",
24 "libcutils",
Zhenhua WANGf2804e52016-05-30 11:16:08 +080025 "libnativebridge",
Jaekyun Seok86e80b92016-12-21 14:22:00 +090026 "libbase",
Colin Crossd4ce20a2016-07-27 10:36:36 -070027 ],
Jiyong Park9837d6b2017-12-18 20:43:35 +090028 required: [
29 "llndk.libraries.txt",
30 "vndksp.libraries.txt",
31 ],
Martin Stjernholma015ad22019-02-05 15:07:05 +000032 stubs: {
33 symbol_file: "libnativeloader.map.txt",
34 versions: ["1"],
35 },
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000036}
37
Jiyong Park00f2ebe2019-01-29 00:08:55 +090038// TODO(b/124250621) eliminate the need for this library
39cc_library {
40 name: "libnativeloader_lazy",
41 defaults: ["libnativeloader-defaults"],
42 host_supported: false,
43 srcs: ["native_loader_lazy.cpp"],
44 required: ["libnativeloader"],
45}
46
47cc_library_headers {
48 name: "libnativeloader-headers",
49 host_supported: true,
50 export_include_dirs: ["include"],
51}
52
53// TODO(jiyong) Remove this when its use in the internal master is
54// switched to libnativeloader-headers
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000055cc_library_headers {
56 name: "libnativeloader-dummy-headers",
Nicolas Geoffrayc3a73dc2019-01-12 15:01:20 +000057 host_supported: true,
58 export_include_dirs: ["include"],
Colin Crossd4ce20a2016-07-27 10:36:36 -070059}