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:
@ -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
|
||||
|
Reference in New Issue
Block a user