Build native renderer before output staging
This commit is contained in:
parent
8c0903f297
commit
919b9d92bb
|
|
@ -67,7 +67,10 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||
CopyToPublishDirectory="PreserveNewest" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="BuildNativeGuestGpu" BeforeTargets="Build" Condition="'$(NativeGpuLibrary)' != ''">
|
||||
<!-- Native outputs must exist before MSBuild evaluates/copies Content items.
|
||||
Hooking Build is too late on a clean checkout: CopyFilesToOutputDirectory
|
||||
runs first and fails because the library has not been produced yet. -->
|
||||
<Target Name="BuildNativeGuestGpu" BeforeTargets="PrepareForBuild" Condition="'$(NativeGpuLibrary)' != ''">
|
||||
<Exec Command="cmake -S "$(NativeGpuProjectDir)" -B "$(NativeGpuBuildDir)" -DCMAKE_BUILD_TYPE=$(Configuration) -DBUILD_TESTING=OFF" />
|
||||
<Exec Command="cmake --build "$(NativeGpuBuildDir)" --config $(Configuration)" />
|
||||
<Copy SourceFiles="$(NativeGpuLibrary)" DestinationFolder="$(TargetDir)" SkipUnchangedFiles="true" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue