0

Make //pdf:pdf_ppapi target a static_library.

Like the //pdf:pdf build target change in https://crrev.com/c/2309135,
it also needs to be a static library to avoid ODR violations in
component builds.

Bug: 1107602
Change-Id: I50e941d1bb0eedd23ddb42f0a75af705a52079c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2308941
Reviewed-by: Daniel Hosseinian <dhoss@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790254}
This commit is contained in:
Lei Zhang
2020-07-21 05:47:50 +00:00
committed by Commit Bot
parent f31b249f12
commit 54f71a32f1
2 changed files with 2 additions and 6 deletions

@ -35,13 +35,11 @@ if (enable_pdf) {
]
}
component("pdf_ppapi") {
static_library("pdf_ppapi") {
sources = [ "pdf_ppapi.cc" ]
configs += [ ":pdf_common_config" ]
defines = [ "IS_PDF_PPAPI_IMPL" ]
public = [ "pdf_ppapi.h" ]
deps = [

@ -11,11 +11,9 @@
namespace chrome_pdf {
COMPONENT_EXPORT(PDF_PPAPI)
int PPP_InitializeModule(PP_Module module_id,
PPB_GetInterface get_browser_interface);
COMPONENT_EXPORT(PDF_PPAPI) void PPP_ShutdownModule();
COMPONENT_EXPORT(PDF_PPAPI)
void PPP_ShutdownModule();
const void* PPP_GetInterface(const char* interface_name);
} // namespace chrome_pdf