f2804e5985
Native bridge implements namespace related interfaces in version 3. The namespace semantic here is same as Android dynamic linker's. Native loader wraps library loading functions of dynamic linker and native bridge. Thus, Android runtime is able to load native library of different ISA on one device by calling native loader directly. Bug: http://b/28242460 Test: mm && make test-art-host -j48 Change-Id: Idde2b9d99fb6ebe547407c716b5478a231f745a7 Signed-off-by: Zhenhua WANG <zhenhua.wang@intel.com>
32 lines
693 B
Text
32 lines
693 B
Text
// Shared library for target
|
|
// ========================================================
|
|
cc_library {
|
|
name: "libnativeloader",
|
|
host_supported: true,
|
|
srcs: ["native_loader.cpp"],
|
|
shared_libs: [
|
|
"libnativehelper",
|
|
"liblog",
|
|
"libcutils",
|
|
"libnativebridge",
|
|
],
|
|
static_libs: ["libbase"],
|
|
target: {
|
|
android: {
|
|
shared_libs: ["libdl"],
|
|
},
|
|
host: {
|
|
host_ldlibs: ["-ldl"],
|
|
},
|
|
},
|
|
clang: true,
|
|
cflags: [
|
|
"-Werror",
|
|
"-Wall",
|
|
],
|
|
cppflags: [
|
|
"-fvisibility=hidden",
|
|
],
|
|
export_include_dirs: ["include"],
|
|
local_include_dirs: ["include"],
|
|
}
|