Colin Cross | d4ce20a | 2016-07-27 10:36:36 -0700 | [diff] [blame] | 1 | // Shared library for target |
| 2 | // ======================================================== |
Jiyong Park | 00f2ebe | 2019-01-29 00:08:55 +0900 | [diff] [blame] | 3 | cc_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 Cross | d4ce20a | 2016-07-27 10:36:36 -0700 | [diff] [blame] | 16 | cc_library { |
| 17 | name: "libnativeloader", |
Jiyong Park | 00f2ebe | 2019-01-29 00:08:55 +0900 | [diff] [blame] | 18 | defaults: ["libnativeloader-defaults"], |
Colin Cross | d4ce20a | 2016-07-27 10:36:36 -0700 | [diff] [blame] | 19 | host_supported: true, |
Jiyong Park | 6291da2 | 2019-04-26 18:55:48 +0900 | [diff] [blame] | 20 | srcs: [ |
| 21 | "native_loader.cpp", |
| 22 | ], |
Colin Cross | d4ce20a | 2016-07-27 10:36:36 -0700 | [diff] [blame] | 23 | shared_libs: [ |
| 24 | "libnativehelper", |
| 25 | "liblog", |
Zhenhua WANG | f2804e5 | 2016-05-30 11:16:08 +0800 | [diff] [blame] | 26 | "libnativebridge", |
Jaekyun Seok | 86e80b9 | 2016-12-21 14:22:00 +0900 | [diff] [blame] | 27 | "libbase", |
Colin Cross | d4ce20a | 2016-07-27 10:36:36 -0700 | [diff] [blame] | 28 | ], |
dimitry | 0c11941 | 2019-03-19 12:29:49 +0100 | [diff] [blame] | 29 | target: { |
| 30 | android: { |
Jiyong Park | 6291da2 | 2019-04-26 18:55:48 +0900 | [diff] [blame] | 31 | srcs: [ |
| 32 | "library_namespaces.cpp", |
Jiyong Park | 8537781 | 2019-05-04 00:30:23 +0900 | [diff] [blame] | 33 | "native_loader_namespace.cpp", |
Jiyong Park | 40a6077 | 2019-05-03 16:21:31 +0900 | [diff] [blame] | 34 | "public_libraries.cpp", |
Jiyong Park | 6291da2 | 2019-04-26 18:55:48 +0900 | [diff] [blame] | 35 | ], |
dimitry | 0c11941 | 2019-03-19 12:29:49 +0100 | [diff] [blame] | 36 | shared_libs: [ |
| 37 | "libdl_android", |
| 38 | ], |
| 39 | }, |
| 40 | }, |
Jiyong Park | 9837d6b | 2017-12-18 20:43:35 +0900 | [diff] [blame] | 41 | required: [ |
| 42 | "llndk.libraries.txt", |
| 43 | "vndksp.libraries.txt", |
| 44 | ], |
Martin Stjernholm | a015ad2 | 2019-02-05 15:07:05 +0000 | [diff] [blame] | 45 | stubs: { |
| 46 | symbol_file: "libnativeloader.map.txt", |
| 47 | versions: ["1"], |
| 48 | }, |
Nicolas Geoffray | c3a73dc | 2019-01-12 15:01:20 +0000 | [diff] [blame] | 49 | } |
| 50 | |
Jiyong Park | 00f2ebe | 2019-01-29 00:08:55 +0900 | [diff] [blame] | 51 | // TODO(b/124250621) eliminate the need for this library |
| 52 | cc_library { |
| 53 | name: "libnativeloader_lazy", |
| 54 | defaults: ["libnativeloader-defaults"], |
| 55 | host_supported: false, |
| 56 | srcs: ["native_loader_lazy.cpp"], |
| 57 | required: ["libnativeloader"], |
| 58 | } |
| 59 | |
| 60 | cc_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 Geoffray | c3a73dc | 2019-01-12 15:01:20 +0000 | [diff] [blame] | 68 | cc_library_headers { |
| 69 | name: "libnativeloader-dummy-headers", |
Nicolas Geoffray | c3a73dc | 2019-01-12 15:01:20 +0000 | [diff] [blame] | 70 | host_supported: true, |
| 71 | export_include_dirs: ["include"], |
Colin Cross | d4ce20a | 2016-07-27 10:36:36 -0700 | [diff] [blame] | 72 | } |