Allow GN specification of shared library extension name

For use as system libraries in virtualized Linux environments,
allow use of custom sonames.

Bug: angleproject:6672
Change-Id: If297e3eaa090bfd08cb9df68a4c727da72228bcc
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3268941
Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
This commit is contained in:
Craig Stout 2021-11-08 14:01:34 -08:00 коммит произвёл Angle LUCI CQ
Родитель 5eb86d4ab7
Коммит 24136212d6
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -48,6 +48,10 @@ declare_args() {
# Optional feature that forces dirty state whenever we use a new context regardless of thread.
angle_force_context_check_every_call = false
# Allow shared library custom name extensions for setting soname such as libEGL.so.1
angle_egl_extension = ""
angle_glesv2_extension = ""
}
if (angle_build_all) {
@ -1134,6 +1138,9 @@ template("angle_libGLESv2") {
}
output_name = "${invoker.output_name}${angle_libs_suffix}"
if (angle_glesv2_extension != "") {
output_extension = angle_glesv2_extension
}
configs += [
":angle_gl_visibility_config",
@ -1265,6 +1272,9 @@ angle_shared_library("libEGL") {
}
output_name = "libEGL${angle_libs_suffix}"
if (angle_egl_extension != "") {
output_extension = angle_egl_extension
}
configs += [
":debug_annotations_config",