-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathReact.Windows.Desktop.IntegrationTests.vcxproj
More file actions
188 lines (187 loc) · 8.97 KB
/
React.Windows.Desktop.IntegrationTests.vcxproj
File metadata and controls
188 lines (187 loc) · 8.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|ARM64EC">
<Configuration>Debug</Configuration>
<Platform>ARM64EC</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|ARM64EC">
<Configuration>Release</Configuration>
<Platform>ARM64EC</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{E0D269B4-D7F0-4C4E-92CD-B2C06109A2BB}</ProjectGuid>
<ProjectName>React.Windows.Desktop.IntegrationTests</ProjectName>
<CppWinRTOptimized>true</CppWinRTOptimized>
<V8AppPlatform>win32</V8AppPlatform>
<!-- Default enable WinUI3. -->
<UseWinUI3 Condition="'$(UseWinUI3)' == ''">true</UseWinUI3>
<UseV8>true</UseV8>
<V8AppPlatform>win32</V8AppPlatform>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<Import Project="$(ReactNativeWindowsDir)PropertySheets\React.Cpp.props" />
<PropertyGroup Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<!-- Include Warnings.props after Microsoft.Cpp.props to change default WarningLevel -->
<Import Project="$(ReactNativeWindowsDir)PropertySheets\Warnings.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
<Import Project="..\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems" Label="Shared" />
</ImportGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<!-- Added since we build this project with/without UseExperimentalWinUI3. -->
<Import Project="$(ReactNativeWindowsDir)PropertySheets\NuGet.LockFile.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<IncludePath>$(ReactNativeWindowsDir);$(ReactNativeWindowsDir)Common;$(ReactNativeWindowsDir)stubs;$(ReactNativeWindowsDir)Mso;$(ReactNativeWindowsDir)Shared;$(ReactNativeWindowsDir)include\Shared;$(ReactNativeWindowsDir)Desktop;$(ReactNativeWindowsDir)IntegrationTests;$(ReactNativeWindowsDir)JSI\Shared;$(MSBuildProjectDirectory);$(IncludePath)</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<SDLCheck>true</SDLCheck>
<!--
See https://stackoverflow.com/questions/42847103/stdtr1-with-visual-studio-2017.
-->
<PreprocessorDefinitions>
BOOST_ASIO_HAS_IOCP;
_WIN32_WINNT=$(WinVer);
WIN32;
_WINDOWS;
FOLLY_CFG_NO_COROUTINES;
FOLLY_NO_CONFIG;
NOMINMAX;
_HAS_AUTO_PTR_ETC;
RN_EXPORT=;
JSI_EXPORT=;
%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<AdditionalOptions>%(AdditionalOptions) /bigobj</AdditionalOptions>
<AdditionalIncludeDirectories>
$(VCInstallDir)UnitTest\include;
"$(ReactNativeWindowsDir)Microsoft.ReactNative";
"$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactHost";
"$(ReactNativeWindowsDir)\Shared\tracing";
"$(IntDir)\..\React.Windows.Desktop\Generated Files";
%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<UseFullPaths>true</UseFullPaths>
</ClCompile>
<Link>
<AdditionalLibraryDirectories>$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<!--
comsuppw.lib - _com_util::ConvertStringToBSTR
delayimp.lib -
-->
<AdditionalDependencies>
comsuppw.lib;
delayimp.lib;
Shlwapi.lib;
Version.lib;
%(AdditionalDependencies)
</AdditionalDependencies>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\ReactCommunity.cpp.props" />
<ItemGroup>
<ClCompile Include="HttpOriginPolicyIntegrationTest.cpp" />
<ClCompile Include="HttpResourceIntegrationTests.cpp" />
<ClCompile Include="HttpServer.cpp" />
<ClCompile Include="Modules\TestAppState.cpp" />
<ClCompile Include="Modules\TestDeviceInfo.cpp" />
<ClCompile Include="Modules\TestDevSettingsModule.cpp" DisableSpecificWarnings="4996;%(DisableSpecificWarnings)" />
<ClCompile Include="Modules\TestImageLoaderModule.cpp" DisableSpecificWarnings="4996;%(DisableSpecificWarnings)" />
<ClCompile Include="RNTesterHeadlessTests.cpp" />
<ClCompile Include="TestReactNativeHostHolder.cpp" />
<ClCompile Include="WinRTActivationShims.cpp" />
<ClCompile Include="TestReactPackageProvider.cpp" />
<ClCompile Include="TestUIDispatcher.cpp" />
<ClCompile Include="WebSocketIntegrationTest.cpp" />
<ClCompile Include="WebSocketServer.cpp" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Desktop.DLL\React.Windows.Desktop.DLL.vcxproj">
<Project>{88bab0fa-e1ac-4da7-a30c-f91702a8eadb}</Project>
</ProjectReference>
<ProjectReference Include="..\IntegrationTests\React.Windows.IntegrationTests.vcxproj">
<Project>{700A84FD-F92A-43F1-8D06-B0E0745DF9B5}</Project>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<!--
Used by the 'CopyFilesToOutputDirectory' target (more specifically, its '_CopyFilesMarkedCopyLocal' dependency')
to co-locate dependencies with the test binary.
-->
<ReferenceCopyLocalPaths Include="$(OutDir)\..\React.Windows.Desktop.DLL\react-native-win32.dll" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="HttpServer.h" />
<ClInclude Include="TestCompositionContext.h" />
<ClInclude Include="Modules\TestAppState.h" />
<ClInclude Include="Modules\TestDeviceInfo.h" />
<ClInclude Include="Modules\TestDevSettingsModule.h" />
<ClInclude Include="Modules\TestImageLoaderModule.h" />
<ClInclude Include="Modules\TestModule.h" />
<ClInclude Include="TestReactNativeHostHolder.h" />
<ClInclude Include="TestReactPackageProvider.h" />
<ClInclude Include="TestUIDispatcher.h" />
<ClInclude Include="WebSocketServer.h" />
</ItemGroup>
<ItemGroup>
<None Include="TestTypeDependencies.dgml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="boost" Version="1.84.0.0" />
<!-- TODO: Remove!!! -->
<PackageReference Include="Microsoft.Windows.CppWinRT" Version="$(CppWinRTVersion)" PrivateAssets="all" />
<PackageReference Include="$(HermesPackageName)" Version="$(HermesVersion)" />
<PackageReference Include="$(V8PackageName)" Version="$(V8Version)" Condition="'$(UseV8)' == 'true'" />
<PackageReference Include="$(WinUIPackageName)" Version="$(WinUIPackageVersion)" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<Target Name="Test">
<Exec Command="$(OutDir)$(TargetFileName)" IgnoreStandardErrorWarningFormat="true" />
</Target>
<Target Name="SetCppWinRTReferences" AfterTargets="GetCppWinRTProjectWinMDReferences" BeforeTargets="CppWinRTMakeReferenceProjection" Returns="@(CppWinRTDynamicProjectWinMDReferences)">
<ItemGroup>
<!--
To increase resilience against build configuration changes, we could try to obtain the .winmd
path below from the Desktop.DLL project reference. The respective task should look similar to
'GetTargetFileName' MSBuild task in the 'GetRNDllPath' target below (and potentially share
build logic with it).
-->
<CppWinRTDynamicProjectWinMDReferences Include="$(OutputPath)..\React.Windows.Desktop\facebook.react.winmd">
<WinMDPath>$(OutputPath)..\React.Windows.Desktop\facebook.react.winmd</WinMDPath>
</CppWinRTDynamicProjectWinMDReferences>
<CppWinRTDynamicProjectWinMDReferences Include="$(OutputPath)..\React.Windows.Desktop\Microsoft.Internal.winmd">
<WinMDPath>$(OutputPath)..\React.Windows.Desktop\Microsoft.Internal.winmd</WinMDPath>
</CppWinRTDynamicProjectWinMDReferences>
<CppWinRTDynamicProjectWinMDReferences Include="$(OutputPath)..\React.Windows.Desktop\Microsoft.ReactNative.winmd">
<WinMDPath>$(OutputPath)..\React.Windows.Desktop\Microsoft.ReactNative.winmd</WinMDPath>
</CppWinRTDynamicProjectWinMDReferences>
</ItemGroup>
</Target>
</Project>