summaryrefslogtreecommitdiff
path: root/platform/winrt
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2013-11-25 11:30:40 -0800
committerMichael Vrhel <michael.vrhel@artifex.com>2014-09-09 16:39:29 -0700
commita7c543641874da80ecbdec974bb8137ef2458c96 (patch)
treedfacfcc2f07410c228b8a2a77218b2df35ddbbd8 /platform/winrt
parent2027d34834d09f30622e208f5058886eaca58f34 (diff)
downloadmupdf-a7c543641874da80ecbdec974bb8137ef2458c96.tar.xz
Some temporary changes and the addition of a library that will not be winRT based.
Diffstat (limited to 'platform/winrt')
-rw-r--r--platform/winrt/gsview/MainWindow.xaml.cs23
-rw-r--r--platform/winrt/gsview/gsview.csproj2
-rw-r--r--platform/winrt/mupdf.sln35
-rw-r--r--platform/winrt/mupdfnet/mupdfnet.vcxproj213
-rw-r--r--platform/winrt/mupdfnet/mupdfnet.vcxproj.filters27
-rw-r--r--platform/winrt/mupdfnet/pch.cpp6
-rw-r--r--platform/winrt/mupdfnet/pch.h15
-rw-r--r--platform/winrt/mupdfnet/targetver.h8
8 files changed, 313 insertions, 16 deletions
diff --git a/platform/winrt/gsview/MainWindow.xaml.cs b/platform/winrt/gsview/MainWindow.xaml.cs
index ddb54771..a4f66afc 100644
--- a/platform/winrt/gsview/MainWindow.xaml.cs
+++ b/platform/winrt/gsview/MainWindow.xaml.cs
@@ -16,7 +16,6 @@ using System.Windows.Forms;
using mupdfwinrt;
using System.Threading.Tasks;
using System.Runtime.InteropServices.WindowsRuntime;
-using System.
enum AppBar_t
@@ -160,11 +159,10 @@ namespace gsview
if (m_file_open)
{
CloseDoc();
- }
+ }
try
{
-
-
+ OpenDocument(dlg.FileName);
}
catch (UnauthorizedAccessException)
{
@@ -177,9 +175,13 @@ namespace gsview
private async void OpenDocument(String filename)
{
- /* Open document and when open, push on */
- int result = await mu_doc.OpenFileAsync(file, extension);
+ string target = ".";
+ char[] anyOf = target.ToCharArray();
+ var index = filename.LastIndexOfAny(anyOf);
+ string extension = filename.Substring(index + 1);
+
+ int result = await mu_doc.OpenFileAsync(filename, extension);
/* Check if we need password */
if (mu_doc.RequiresPassword())
{
@@ -189,14 +191,5 @@ namespace gsview
else
InitialRender();
}
-
-
-
-
-
-
-
-
-
}
}
diff --git a/platform/winrt/gsview/gsview.csproj b/platform/winrt/gsview/gsview.csproj
index 9dc00a35..b8a512a5 100644
--- a/platform/winrt/gsview/gsview.csproj
+++ b/platform/winrt/gsview/gsview.csproj
@@ -20,7 +20,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
diff --git a/platform/winrt/mupdf.sln b/platform/winrt/mupdf.sln
index 7fa09b44..5013c25c 100644
--- a/platform/winrt/mupdf.sln
+++ b/platform/winrt/mupdf.sln
@@ -33,6 +33,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mupdf_cpp", "mupdf_cpp\mupd
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "gsview", "gsview\gsview.csproj", "{5DA0ECC9-4026-4427-862F-E3226EFEFEB1}"
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mupdfnet", "mupdfnet\mupdfnet.vcxproj", "{6F0F93A3-0C11-47FB-96AC-58CE5D633A15}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -287,6 +289,39 @@ Global
{5DA0ECC9-4026-4427-862F-E3226EFEFEB1}.Release|Win32.ActiveCfg = Release|Any CPU
{5DA0ECC9-4026-4427-862F-E3226EFEFEB1}.Release|x64.ActiveCfg = Release|Any CPU
{5DA0ECC9-4026-4427-862F-E3226EFEFEB1}.Release|x86.ActiveCfg = Release|Any CPU
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Debug|Any CPU.ActiveCfg = Debug|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Debug|ARM.ActiveCfg = Debug|ARM
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Debug|ARM.Build.0 = Debug|ARM
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Debug|Win32.ActiveCfg = Debug|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Debug|Win32.Build.0 = Debug|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Debug|x64.ActiveCfg = Debug|x64
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Debug|x64.Build.0 = Debug|x64
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Debug|x86.ActiveCfg = Debug|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Debug|x86.Build.0 = Debug|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Memento|Any CPU.ActiveCfg = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Memento|ARM.ActiveCfg = Release|ARM
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Memento|ARM.Build.0 = Release|ARM
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Memento|Mixed Platforms.ActiveCfg = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Memento|Mixed Platforms.Build.0 = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Memento|Win32.ActiveCfg = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Memento|Win32.Build.0 = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Memento|x64.ActiveCfg = Release|x64
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Memento|x64.Build.0 = Release|x64
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Memento|x86.ActiveCfg = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Memento|x86.Build.0 = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Release|Any CPU.ActiveCfg = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Release|ARM.ActiveCfg = Release|ARM
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Release|ARM.Build.0 = Release|ARM
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Release|Win32.ActiveCfg = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Release|Win32.Build.0 = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Release|x64.ActiveCfg = Release|x64
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Release|x64.Build.0 = Release|x64
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Release|x86.ActiveCfg = Release|Win32
+ {6F0F93A3-0C11-47FB-96AC-58CE5D633A15}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/platform/winrt/mupdfnet/mupdfnet.vcxproj b/platform/winrt/mupdfnet/mupdfnet.vcxproj
new file mode 100644
index 00000000..d4ce883c
--- /dev/null
+++ b/platform/winrt/mupdfnet/mupdfnet.vcxproj
@@ -0,0 +1,213 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|ARM">
+ <Configuration>Debug</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|ARM">
+ <Configuration>Release</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{6f0f93a3-0c11-47fb-96ac-58ce5d633a15}</ProjectGuid>
+ <Keyword>Win32Proj</Keyword>
+ <ProjectName>mupdfnet</ProjectName>
+ <RootNamespace>mupdfnet</RootNamespace>
+ <DefaultLanguage>en-US</DefaultLanguage>
+ <MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
+ <AppContainerApplication>true</AppContainerApplication>
+ <ApplicationType>Windows Store</ApplicationType>
+ <ApplicationTypeRevision>8.1</ApplicationTypeRevision>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v120</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
+ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v120</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v120</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <PlatformToolset>v120</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
+ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <PlatformToolset>v120</PlatformToolset>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>StaticLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <PlatformToolset>v120</PlatformToolset>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <GenerateManifest>false</GenerateManifest>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <GenerateManifest>false</GenerateManifest>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
+ <GenerateManifest>false</GenerateManifest>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
+ <GenerateManifest>false</GenerateManifest>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <GenerateManifest>false</GenerateManifest>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <GenerateManifest>false</GenerateManifest>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|arm'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|arm'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <CompileAsWinRT>false</CompileAsWinRT>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
+ <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClInclude Include="..\mupdfwinrt\Cache.h" />
+ <ClInclude Include="..\mupdfwinrt\ContentItem.h" />
+ <ClInclude Include="..\mupdfwinrt\Links.h" />
+ <ClInclude Include="..\mupdfwinrt\muctx.h" />
+ <ClInclude Include="..\mupdfwinrt\status.h" />
+ <ClInclude Include="..\mupdfwinrt\utils.h" />
+ <ClInclude Include="pch.h" />
+ <ClInclude Include="targetver.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="..\mupdfwinrt\Cache.cpp" />
+ <ClCompile Include="..\mupdfwinrt\ContentItem.cpp" />
+ <ClCompile Include="..\mupdfwinrt\Links.cpp" />
+ <ClCompile Include="..\mupdfwinrt\muctx.cpp" />
+ <ClCompile Include="..\mupdfwinrt\utils.cpp" />
+ <ClCompile Include="pch.cpp">
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
+ </ClCompile>
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project> \ No newline at end of file
diff --git a/platform/winrt/mupdfnet/mupdfnet.vcxproj.filters b/platform/winrt/mupdfnet/mupdfnet.vcxproj.filters
new file mode 100644
index 00000000..390a6c52
--- /dev/null
+++ b/platform/winrt/mupdfnet/mupdfnet.vcxproj.filters
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Resource Files">
+ <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
+ <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tga;tiff;tif;png;wav;mfcribbon-ms</Extensions>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="pch.cpp" />
+ <ClCompile Include="..\mupdfwinrt\Cache.cpp" />
+ <ClCompile Include="..\mupdfwinrt\ContentItem.cpp" />
+ <ClCompile Include="..\mupdfwinrt\Links.cpp" />
+ <ClCompile Include="..\mupdfwinrt\muctx.cpp" />
+ <ClCompile Include="..\mupdfwinrt\utils.cpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="pch.h" />
+ <ClInclude Include="targetver.h" />
+ <ClInclude Include="..\mupdfwinrt\Cache.h" />
+ <ClInclude Include="..\mupdfwinrt\ContentItem.h" />
+ <ClInclude Include="..\mupdfwinrt\Links.h" />
+ <ClInclude Include="..\mupdfwinrt\muctx.h" />
+ <ClInclude Include="..\mupdfwinrt\status.h" />
+ <ClInclude Include="..\mupdfwinrt\utils.h" />
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/platform/winrt/mupdfnet/pch.cpp b/platform/winrt/mupdfnet/pch.cpp
new file mode 100644
index 00000000..01484ff5
--- /dev/null
+++ b/platform/winrt/mupdfnet/pch.cpp
@@ -0,0 +1,6 @@
+//
+// pch.cpp
+// Include the standard header and generate the precompiled header.
+//
+
+#include "pch.h"
diff --git a/platform/winrt/mupdfnet/pch.h b/platform/winrt/mupdfnet/pch.h
new file mode 100644
index 00000000..a7164069
--- /dev/null
+++ b/platform/winrt/mupdfnet/pch.h
@@ -0,0 +1,15 @@
+//
+// pch.h
+// Header for standard system include files.
+//
+
+#pragma once
+
+#include "targetver.h"
+
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
+#endif
+
+// Windows Header Files:
+#include <windows.h>
diff --git a/platform/winrt/mupdfnet/targetver.h b/platform/winrt/mupdfnet/targetver.h
new file mode 100644
index 00000000..a66ecb00
--- /dev/null
+++ b/platform/winrt/mupdfnet/targetver.h
@@ -0,0 +1,8 @@
+#pragma once
+
+// Including SDKDDKVer.h defines the highest available Windows platform.
+
+// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
+// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
+
+#include <SDKDDKVer.h>