Skip to content

Commit 5b6d8d4

Browse files
committed
Add fmt.vcxitems
1 parent ee913fb commit 5b6d8d4

3 files changed

Lines changed: 38 additions & 26 deletions

File tree

vnext/Shared/Shared.vcxitems

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -621,32 +621,8 @@
621621
<PrecompiledHeader>NotUsing</PrecompiledHeader>
622622
</ClCompile>
623623
</ItemGroup>
624-
<!-- External (vendored) library sources -->
625-
<ItemGroup>
626-
<ClCompile Include="$(ExternalDir)fmt\src\format.cc" />
627-
<ClCompile Include="$(ExternalDir)fmt\src\os.cc">
628-
<PreprocessorDefinitions>FMT_USE_FCNTL=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
629-
</ClCompile>
630-
<ClInclude Include="$(ExternalDir)fmt\include\fmt\core.h" />
631-
<ClInclude Include="$(ExternalDir)fmt\include\fmt\format.h" />
632-
<ClInclude Include="$(ExternalDir)fmt\include\fmt\chrono.h" />
633-
<ClInclude Include="$(ExternalDir)fmt\include\fmt\color.h" />
634-
<ClInclude Include="$(ExternalDir)fmt\include\fmt\compile.h" />
635-
<ClInclude Include="$(ExternalDir)fmt\include\fmt\format-inl.h" />
636-
<ClInclude Include="$(ExternalDir)fmt\include\fmt\os.h" />
637-
<ClInclude Include="$(ExternalDir)fmt\include\fmt\ostream.h" />
638-
<ClInclude Include="$(ExternalDir)fmt\include\fmt\printf.h" />
639-
<ClInclude Include="$(ExternalDir)fmt\include\fmt\ranges.h" />
640-
</ItemGroup>
641-
<!-- Common compiler settings for all external sources -->
642-
<ItemGroup>
643-
<ClCompile Update="$(ExternalDir)**">
644-
<PrecompiledHeader>NotUsing</PrecompiledHeader>
645-
<CompileAsWinRT>false</CompileAsWinRT>
646-
<PreprocessorDefinitions>NOMINMAX;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
647-
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
648-
</ClCompile>
649-
</ItemGroup>
624+
<!-- External (vendored) third-party library sources -->
625+
<Import Project="$(ExternalDir)External.vcxitems" />
650626
<ItemGroup Condition="'$(SupportWinUI3Islands)' == 'true'">
651627
<ApplicationDefinition Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\App.xaml" />
652628
</ItemGroup>

vnext/external/External.vcxitems

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Aggregates all vendored external (third-party) library sources.
4+
Each dependency has its own .vcxitems next to its source tree.
5+
-->
6+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
7+
<Import Project="fmt\fmt.vcxitems" />
8+
</Project>

vnext/external/fmt/fmt.vcxitems

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<ClCompile Include="$(ExternalDir)fmt\src\format.cc" />
5+
<ClCompile Include="$(ExternalDir)fmt\src\os.cc">
6+
<PreprocessorDefinitions>FMT_USE_FCNTL=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
7+
</ClCompile>
8+
<ClInclude Include="$(ExternalDir)fmt\include\fmt\core.h" />
9+
<ClInclude Include="$(ExternalDir)fmt\include\fmt\format.h" />
10+
<ClInclude Include="$(ExternalDir)fmt\include\fmt\chrono.h" />
11+
<ClInclude Include="$(ExternalDir)fmt\include\fmt\color.h" />
12+
<ClInclude Include="$(ExternalDir)fmt\include\fmt\compile.h" />
13+
<ClInclude Include="$(ExternalDir)fmt\include\fmt\format-inl.h" />
14+
<ClInclude Include="$(ExternalDir)fmt\include\fmt\os.h" />
15+
<ClInclude Include="$(ExternalDir)fmt\include\fmt\ostream.h" />
16+
<ClInclude Include="$(ExternalDir)fmt\include\fmt\printf.h" />
17+
<ClInclude Include="$(ExternalDir)fmt\include\fmt\ranges.h" />
18+
</ItemGroup>
19+
<!-- Compiler settings for fmt sources -->
20+
<ItemGroup>
21+
<ClCompile Update="$(ExternalDir)fmt\**">
22+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
23+
<CompileAsWinRT>false</CompileAsWinRT>
24+
<PreprocessorDefinitions>NOMINMAX;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
25+
<AdditionalOptions>/Zc:__cplusplus %(AdditionalOptions)</AdditionalOptions>
26+
</ClCompile>
27+
</ItemGroup>
28+
</Project>

0 commit comments

Comments
 (0)