Skip to content

Commit 88f0ff4

Browse files
committed
Windows: PoC WebDAV support
1 parent 9507f73 commit 88f0ff4

File tree

11 files changed

+21
-4
lines changed

11 files changed

+21
-4
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,9 @@ routes when you create [Server] instance inside your TypeScript code.
370370
371371
**macOS (Catalyst)**: The same as for iOS.
372372
373-
**Windows**: _TO BE FIGURED OUT_
373+
**Windows**: Does not require a special setup — the pre-compiled DLL
374+
for [WebDAV] module is always packed with the library, and loaded if opted
375+
for by [Server]'s [constructor()].
374376
375377
2. Use `webdav` option of [Server]'s [constructor()] to enable [WebDAV] for
376378
selected routes of the created server instance.

windows/ReactNativeStaticServer/ReactNativeStaticServer.vcxproj

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
<LinkIncremental>false</LinkIncremental>
6666
</PropertyGroup>
6767
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
68-
<ImportGroup Label="ExtensionSettings"></ImportGroup>
68+
<ImportGroup Label="ExtensionSettings">
69+
</ImportGroup>
6970
<ImportGroup Label="PropertySheets">
7071
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
7172
</ImportGroup>
@@ -151,11 +152,22 @@
151152
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
152153
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
153154
<FileType>Document</FileType>
155+
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
156+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
154157
</CopyFileToFolders>
155158
<CopyFileToFolders Include="lighttpd\libpcre2-8.dll">
156159
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
157160
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
158161
<FileType>Document</FileType>
162+
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
163+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
164+
</CopyFileToFolders>
165+
<CopyFileToFolders Include="lighttpd\mod_webdav.dll">
166+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</DeploymentContent>
167+
<FileType>Document</FileType>
168+
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
169+
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
170+
<DeploymentContent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</DeploymentContent>
159171
</CopyFileToFolders>
160172
<None Include="PropertySheet.props" />
161173
</ItemGroup>
@@ -172,4 +184,4 @@
172184
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props'))" />
173185
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets'))" />
174186
</Target>
175-
</Project>
187+
</Project>

windows/ReactNativeStaticServer/ReactNativeStaticServer.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,8 @@
4040
<CopyFileToFolders Include="lighttpd\libpcre2-8.dll">
4141
<Filter>Lighttpd</Filter>
4242
</CopyFileToFolders>
43+
<CopyFileToFolders Include="lighttpd\mod_webdav.dll">
44+
<Filter>Lighttpd</Filter>
45+
</CopyFileToFolders>
4346
</ItemGroup>
4447
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)