Skip to content

Commit 808896c

Browse files
committed
Updated to MuPDF 1.22.0
1 parent d89a139 commit 808896c

File tree

6 files changed

+1605
-1595
lines changed

6 files changed

+1605
-1595
lines changed

MuPDF.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.30711.63
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.4.32912.340
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demo", "Demo\Demo.csproj", "{1003AA2F-DE18-4812-BF1A-5AC519E05A3E}"
77
ProjectSection(ProjectDependencies) = postProject

MuPDFLib/MuPDFLib.vcxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,26 @@
3737
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
3838
<ConfigurationType>DynamicLibrary</ConfigurationType>
3939
<UseDebugLibraries>true</UseDebugLibraries>
40-
<PlatformToolset>v142</PlatformToolset>
40+
<PlatformToolset>v143</PlatformToolset>
4141
<CharacterSet>Unicode</CharacterSet>
4242
</PropertyGroup>
4343
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
4444
<ConfigurationType>DynamicLibrary</ConfigurationType>
4545
<UseDebugLibraries>false</UseDebugLibraries>
46-
<PlatformToolset>v142</PlatformToolset>
46+
<PlatformToolset>v143</PlatformToolset>
4747
<WholeProgramOptimization>true</WholeProgramOptimization>
4848
<CharacterSet>Unicode</CharacterSet>
4949
</PropertyGroup>
5050
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
5151
<ConfigurationType>DynamicLibrary</ConfigurationType>
5252
<UseDebugLibraries>true</UseDebugLibraries>
53-
<PlatformToolset>v142</PlatformToolset>
53+
<PlatformToolset>v143</PlatformToolset>
5454
<CharacterSet>Unicode</CharacterSet>
5555
</PropertyGroup>
5656
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
5757
<ConfigurationType>DynamicLibrary</ConfigurationType>
5858
<UseDebugLibraries>false</UseDebugLibraries>
59-
<PlatformToolset>v142</PlatformToolset>
59+
<PlatformToolset>v143</PlatformToolset>
6060
<WholeProgramOptimization>true</WholeProgramOptimization>
6161
<CharacterSet>Unicode</CharacterSet>
6262
</PropertyGroup>

MuPDFLib/gen_libmupdf.def.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
def generateExports(header, exclude=[]):
1313
if os.path.isdir(header):
14-
return "\n".join([generateExports(os.path.join(header, file), exclude) for file in os.listdir(header)])
14+
return "\r\n".join([generateExports(os.path.join(header, file), exclude) for file in os.listdir(header)])
1515

1616
data = open(header, "r").read()
1717
data = re.sub(r"(?sm)^#ifndef NDEBUG\s.*?^#endif", "", data, 0)
@@ -55,7 +55,7 @@ def main():
5555
mupdf_exports = generateExports("include/mupdf/pdf", form_exports + sign_exports + ["pdf_drop_designated_name", "pdf_print_xref", "pdf_recognize", "pdf_resolve_obj", "pdf_open_compressed_stream", "pdf_finish_edit"])
5656

5757
list = LIBMUPDF_DEF % locals()
58-
open("../MuPDFLib/libmupdf.def", "wt").write(list.replace("\n", "\r\n"))
58+
open("../MuPDFLib/libmupdf.def", "wt").write(list)
5959

6060
if __name__ == "__main__":
6161
main()

0 commit comments

Comments
 (0)