platform_system_core/libnativeloader/Android.bp
Jiyong Park 00f2ebe9cc shim libraries for libnativeloader and libnativebridge
libnativeloader_lazy and libnativebridge_lazy are shim libraries for
libnativeloader and libnativebridge, respectively.

The shim libraries provides the same APIs as their counterparts, but
when the APIs are called, the APIs from the real libraries are
loaded/linked/and executed using dlopen/dlsym.

Bug: 123403798
Bug: 124250621
Test: m
Test: device boots to the UI
Test: mma under system/core/libnativebridge with aosp_cf_x86
adb sync; execute all tests under
/data/nativetest/libnativebridge-lazy-tests
All passes except NativeBridgeTest.V2_Signal which is also failing
in /data/nativetest/libnativebridge-tests.

Change-Id: Ic6484784eaa7872dcdd2decbb30943fb34c1abd7
2019-02-12 19:35:45 +09:00

59 lines
1.4 KiB
Text

// Shared library for target
// ========================================================
cc_defaults {
name: "libnativeloader-defaults",
cflags: [
"-Werror",
"-Wall",
],
cppflags: [
"-fvisibility=hidden",
],
header_libs: ["libnativeloader-headers"],
export_header_lib_headers: ["libnativeloader-headers"],
}
cc_library {
name: "libnativeloader",
defaults: ["libnativeloader-defaults"],
host_supported: true,
srcs: ["native_loader.cpp"],
shared_libs: [
"libnativehelper",
"liblog",
"libcutils",
"libnativebridge",
"libbase",
],
required: [
"llndk.libraries.txt",
"vndksp.libraries.txt",
],
stubs: {
symbol_file: "libnativeloader.map.txt",
versions: ["1"],
},
}
// TODO(b/124250621) eliminate the need for this library
cc_library {
name: "libnativeloader_lazy",
defaults: ["libnativeloader-defaults"],
host_supported: false,
srcs: ["native_loader_lazy.cpp"],
required: ["libnativeloader"],
}
cc_library_headers {
name: "libnativeloader-headers",
host_supported: true,
export_include_dirs: ["include"],
}
// TODO(jiyong) Remove this when its use in the internal master is
// switched to libnativeloader-headers
cc_library_headers {
name: "libnativeloader-dummy-headers",
host_supported: true,
export_include_dirs: ["include"],
}