2016-07-27 19:36:36 +02:00
|
|
|
// Shared library for target
|
|
|
|
// ========================================================
|
2019-01-28 16:08:55 +01:00
|
|
|
cc_defaults {
|
|
|
|
name: "libnativeloader-defaults",
|
|
|
|
cflags: [
|
|
|
|
"-Werror",
|
|
|
|
"-Wall",
|
|
|
|
],
|
|
|
|
cppflags: [
|
|
|
|
"-fvisibility=hidden",
|
|
|
|
],
|
|
|
|
header_libs: ["libnativeloader-headers"],
|
|
|
|
export_header_lib_headers: ["libnativeloader-headers"],
|
|
|
|
}
|
|
|
|
|
2016-07-27 19:36:36 +02:00
|
|
|
cc_library {
|
|
|
|
name: "libnativeloader",
|
2019-01-28 16:08:55 +01:00
|
|
|
defaults: ["libnativeloader-defaults"],
|
2016-07-27 19:36:36 +02:00
|
|
|
host_supported: true,
|
|
|
|
srcs: ["native_loader.cpp"],
|
|
|
|
shared_libs: [
|
|
|
|
"libnativehelper",
|
|
|
|
"liblog",
|
2016-05-30 05:16:08 +02:00
|
|
|
"libnativebridge",
|
2016-12-21 06:22:00 +01:00
|
|
|
"libbase",
|
2016-07-27 19:36:36 +02:00
|
|
|
],
|
Don't install unnecessary VNDK libs
vndk_package is a phony module that includes ALL VNDK libs found in the
source code. As a result, VNDK libs that were actually not needed for
the device have been installed consuming storage. For example,
/system/lib/vndk/android.hardware.automotive*.so files were installed
even though walleye/taimen do not have automotive HALs.
VNDK libs are now installed by their link time dependencies (i.e. if a
vendor module uses libcutils, then /system/lib[64]/vndk-sp/libcutils.so
is automatically installed.).
By the way, there is a few number of VNDK libs that do not have any
link time dependency from vendor modules. They are always opened via
dlopen. In such cases, the vndk modules are added to `required`
or `LOCAL_REQUIRED_MODULES` of the module that dlopens them.
Bug: 67002788
Test: walleye builds and boots to the UI
Test: basic functionalities work (sound, camera, camcorder, slow-mo,
youtube, wifi, bluetooth)
Change-Id: I321256b9d20f20a9062c6d13b1745d8727eda558
2017-12-18 12:43:35 +01:00
|
|
|
required: [
|
|
|
|
"llndk.libraries.txt",
|
|
|
|
"vndksp.libraries.txt",
|
|
|
|
],
|
2019-02-05 16:07:05 +01:00
|
|
|
stubs: {
|
|
|
|
symbol_file: "libnativeloader.map.txt",
|
|
|
|
versions: ["1"],
|
|
|
|
},
|
2019-01-12 16:01:20 +01:00
|
|
|
}
|
|
|
|
|
2019-01-28 16:08:55 +01:00
|
|
|
// 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"],
|
|
|
|
}
|
|
|
|
|
2019-01-12 16:01:20 +01:00
|
|
|
cc_library_headers {
|
2019-01-28 16:08:55 +01:00
|
|
|
name: "libnativeloader-headers",
|
|
|
|
host_supported: true,
|
|
|
|
export_include_dirs: ["include"],
|
|
|
|
}
|
2019-01-12 16:01:20 +01:00
|
|
|
|
2019-01-28 16:08:55 +01:00
|
|
|
// TODO(jiyong) Remove this when its use in the internal master is
|
|
|
|
// switched to libnativeloader-headers
|
|
|
|
cc_library_headers {
|
|
|
|
name: "libnativeloader-dummy-headers",
|
2019-01-12 16:01:20 +01:00
|
|
|
host_supported: true,
|
|
|
|
export_include_dirs: ["include"],
|
2016-07-27 19:36:36 +02:00
|
|
|
}
|