Skip to content

Commit

Permalink
Disable copying V8 dll to target output for UWP projects (#4712)
Browse files Browse the repository at this point in the history
* Disable copying V8 dll to target output; we need a clearer way to distinguish uwp vs. win32 in the build system but this will do for now to unblock #4475

* Change files

Co-authored-by: tudorm <[email protected]>
  • Loading branch information
tudorms and tudorm authored Apr 25, 2020
1 parent bebda4d commit ee88d35
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
8 changes: 8 additions & 0 deletions change/react-native-windows-2020-04-24-19-55-04-master.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "prerelease",
"comment": "Disable copying V8 dll to target output; we need a clearer way to distinguish uwp vs. win32 in the build system but this will do for now to unblock #4475",
"packageName": "react-native-windows",
"email": "[email protected]",
"dependentChangeType": "patch",
"date": "2020-04-25T02:55:04.378Z"
}
3 changes: 3 additions & 0 deletions vnext/Desktop.DLL/React.Windows.Desktop.DLL.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@
</PreprocessorDefinitions>
</ResourceCompile>
</ItemGroup>
<PropertyGroup>
<V8JSI_NODLLCOPY />
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="$(SolutionDir)packages\ReactWindows.OpenSSL.StdCall.Static.1.0.2-p.2\build\native\ReactWindows.OpenSSL.StdCall.Static.targets" Condition="Exists('$(SolutionDir)packages\ReactWindows.OpenSSL.StdCall.Static.1.0.2-p.2\build\native\ReactWindows.OpenSSL.StdCall.Static.targets')" />
Expand Down
2 changes: 1 addition & 1 deletion vnext/Desktop/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<package id="ChakraCore.Debugger" version="0.0.0.43" targetFramework="native" />
<package id="Microsoft.ChakraCore.vc140" version="1.11.13" targetFramework="native" developmentDependency="true" />
<package id="Microsoft.Windows.CppWinRT" version="2.0.200316.3" targetFramework="native" />
<package id="ReactNative.V8Jsi.Windows" version="0.2.5" targetFramework="native" />
<package id="ReactNative.V8Jsi.Windows" version="0.2.7" targetFramework="native" />
<package id="ReactWindows.OpenSSL.StdCall.Static" version="1.0.2-p.2" targetFramework="native" />
</packages>
4 changes: 3 additions & 1 deletion vnext/JSI.Desktop.UnitTests/JSI.Desktop.UnitTests.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@
<Project>{700A84FD-F92A-43F1-8D06-B0E0745DF9B5}</Project>
</ProjectReference>
</ItemGroup>
<ItemDefinitionGroup />
<PropertyGroup>
<V8JSI_NODLLCOPY />
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="$(SolutionDir)packages\ReactWindows.OpenSSL.StdCall.Static.1.0.2-p.2\build\native\ReactWindows.OpenSSL.StdCall.Static.targets" Condition="Exists('$(SolutionDir)packages\ReactWindows.OpenSSL.StdCall.Static.1.0.2-p.2\build\native\ReactWindows.OpenSSL.StdCall.Static.targets')" />
Expand Down
5 changes: 4 additions & 1 deletion vnext/PropertySheets/React.Cpp.props
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<HERMES_Package Condition="'$(HERMES_Package)' == ''">$(SolutionDir)packages\ReactNative.Hermes.Windows.$(HERMES_Version)</HERMES_Package>

<USE_V8 Condition="'$(USE_V8)' == '' AND '$(Platform)' != 'ARM' AND '$(Platform)' != 'ARM64'">true</USE_V8>
<V8_Version Condition="'$(V8_Version)' == ''">0.2.5</V8_Version>
<V8_Version Condition="'$(V8_Version)' == ''">0.2.7</V8_Version>
<V8_Package Condition="'$(V8_Package)' == ''">$(SolutionDir)packages\ReactNative.V8Jsi.Windows.$(V8_Version)</V8_Package>

<!-- Enables React-Native-Windows ETW Provider : React-Native-Windows-Provider -->
Expand Down Expand Up @@ -57,6 +57,9 @@
<!-- This prop is used for JSI code that may be overridden in external JSI implementations -->
<JSI_SourcePath Condition="'$(JSI_SourcePath)' == ''">$(ReactNativeDir)\ReactCommon\jsi</JSI_SourcePath>
<JSI_SourcePath Condition="'$(USE_V8)' == 'true'">$(V8_Package)\build\native\include</JSI_SourcePath>

<!-- This disables copying the v8 DLL to outputs; it is re-enabled locally in win32 projects -->
<V8JSI_NODLLCOPY>true</V8JSI_NODLLCOPY>
</PropertyGroup>

<ImportGroup Label="Defaults">
Expand Down
2 changes: 1 addition & 1 deletion vnext/ReactWindowsCore/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<packages>
<package id="boost" version="1.68.0.0" targetFramework="native" />
<package id="ReactNative.Hermes.Windows" version="0.1.6" targetFramework="native" Condition="$(USE_HERMES)' == 'true'" />
<package id="ReactNative.V8Jsi.Windows" version="0.2.5" targetFramework="native" Condition="'$(USE_V8)' == 'true'" />
<package id="ReactNative.V8Jsi.Windows" version="0.2.7" targetFramework="native" Condition="'$(USE_V8)' == 'true'" />
</packages>

0 comments on commit ee88d35

Please sign in to comment.