Fix imports and shared libs for non-Linux platforms
authorDebian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Sun, 23 Aug 2020 19:15:38 +0000 (20:15 +0100)
committerBastian Germann <bastiangermann@fishpost.de>
Sun, 23 Aug 2020 19:15:38 +0000 (20:15 +0100)
Gbp-Pq: Name non-linux

setup.py

index c50d8da93620f8ff0df678130b9dc8e799d5b07a..aded5057f34db8a1d3ec6cef9d57f755d9efd1c4 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -53,13 +53,13 @@ else:
         "fitz._fitz",
         ["fitz/fitz.i"],
         include_dirs=[  # we need the path of the MuPDF's headers
+            "/usr/include/mupdf",
             "./mupdf/include",
             "./mupdf/include/mupdf",
         ],
         libraries=[  # these are needed in Windows
-            "libmupdf",
-            "libresources",
-            "libthirdparty",
+            "mupdf",
+            "mujs", "harfbuzz", "jbig2dec", "jpeg", "freetype", "png16", "openjp2",
         ],
         extra_link_args=["/NODEFAULTLIB:MSVCRT"],
         # x86 dir of libmupdf.lib etc.