Bug 1382509 - Part3. Build PDFium as a separate library instead of linking it into libxul r=glandium,jwatt
authorFarmer Tseng <fatseng@mozilla.com>
Tue, 22 Aug 2017 14:17:39 +0800
changeset 425585 806ba87bbf3c0fb2b1616072c1e9e53e92e03a2d
parent 425584 2d7a01b9ac5155e7b4889438f04e0b86adabac21
child 425586 68db42ac8c23d1226772366fe1aaf40f8916ed13
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium, jwatt
bugs1382509
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1382509 - Part3. Build PDFium as a separate library instead of linking it into libxul r=glandium,jwatt MozReview-Commit-ID: FB4QqbbQF43
modules/pdfium/moz.build
modules/pdfium/pdfium.def
--- a/modules/pdfium/moz.build
+++ b/modules/pdfium/moz.build
@@ -554,9 +554,12 @@ LOCAL_INCLUDES += [
 ]
 USE_LIBS += [
     'media_libjpeg',
 ]
 
 # We allow warnings for third-party code that can be updated from upstream.
 ALLOW_COMPILER_WARNINGS = True
 
-FINAL_LIBRARY = 'xul'
+GeckoSharedLibrary('pdfium', linkage=None)
+
+if CONFIG['OS_TARGET'] == 'WINNT':
+    DEFFILE = SRCDIR + '/pdfium.def'
new file mode 100644
--- /dev/null
+++ b/modules/pdfium/pdfium.def
@@ -0,0 +1,14 @@
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+LIBRARY pdfium
+EXPORTS
+    FPDF_InitLibrary
+    FPDF_DestroyLibrary
+    FPDF_LoadDocument
+    FPDF_CloseDocument
+    FPDF_GetPageCount
+    FPDF_LoadPage
+    FPDF_ClosePage
+    FPDF_RenderPage