• VladimirTechMan's avatar
    Allow enabling libyuv symbols visibility for shared library targets · 56eb5a47
    VladimirTechMan authored
    When developing WebRTC applications with custom video sources, libyuv's
    API is often the required part of the project. For that, application
    developers can link with a separate standalone instance of libyuv.
    However, it is even better to avoid that binary code duplication and
    link against libyuv as a part compiled into the WebRTC library.
    
    When building WebRTC as a static library target, the symbols from libyuv
    are normally accessible to the linker without any extra actions. When
    building WebRTC as a shared library, that does not work as the exported
    symbols are those marked as visible, while libyuv is built with the
    hidden visibility setting by default.
    
    This patch adds an extra flag to enable switching the symbol visibility
    to default when building shared library targets depending on libyuv in
    WebRTC and Chromium projects. By default the flag is not enabled,
    preserving the prior behaviour.
    
    Bug: NONE
    Change-Id: I48893cb9f54b1e1b49a34e14434e67f91d3e5e79
    Reviewed-on: https://chromium-review.googlesource.com/827746Reviewed-by: 's avatarFrank Barchard <fbarchard@chromium.org>
    Commit-Queue: Frank Barchard <fbarchard@chromium.org>
    56eb5a47
BUILD.gn 9.31 KB