mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Add a new msbuild project with a g2 target
This commit is contained in:
15
openrct2.proj
Normal file
15
openrct2.proj
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- Main msbuild project for OpenRCT2 -->
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<!-- Import the C++ project for OpenRCT2 -->
|
||||
<Import Project="openrct2.vcxproj" />
|
||||
|
||||
<!-- Target to build g2.dat containing OpenRCT2 sprites -->
|
||||
<Target Name="g2" DependsOnTargets="Build">
|
||||
<Message Text="Building g2.dat..." />
|
||||
<PropertyGroup>
|
||||
<!-- We need to override TargetPath for x86 as we build a dll not a exe. -->
|
||||
<TargetPath Condition="'$(Platform)' == 'Win32'">$(TargetDir)openrct2.exe</TargetPath>
|
||||
</PropertyGroup>
|
||||
<Exec Command="$(TargetPath) sprite build $(TargetDir)data\g2.dat $(TargetDir)resources\g2" />
|
||||
</Target>
|
||||
</Project>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build0;Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build0;Build;g2" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Target Name="Build0">
|
||||
<Copy SourceFiles="openrct2.exe" DestinationFolder="$(OutDir)" />
|
||||
<Copy SourceFiles="curl-ca-bundle.crt" DestinationFolder="$(OutDir)" />
|
||||
|
||||
Reference in New Issue
Block a user