Skip to content

Commit

Permalink
Created Publish target.
Browse files Browse the repository at this point in the history
The produced DLL can be deployed to a provided Project64 installation.
  • Loading branch information
JunielKatarn committed Aug 17, 2016
1 parent 93b2bdf commit 34e19f7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -33,6 +33,7 @@ bld/

# Visual Studo 2015 cache/options directory
.vs/
.vscode/

# MSTest test Results
[Tt]est[Rr]esult*/
Expand Down
12 changes: 12 additions & 0 deletions AziAudio/AziAudio.vcxproj
Expand Up @@ -116,4 +116,16 @@
</VisualStudio>
</ProjectExtensions>

<ItemGroup>
<FilesToDeploy Include="$(OutDir)AziAudio.dll" />
</ItemGroup>

<!--Set Pj64Install as an environment variable or as an MSBuild command-line property.-->
<Target Name="Publish">
<Message Text="Deploying to [$(Pj64Install)]" />
<Message Text="Files to move: [@(FilesToDeploy)]" />
<Copy SourceFiles="@(FilesToDeploy)" DestinationFolder="$(Pj64Install)\Plugin\$(PluginType)" Condition="'$(Platform)'=='Win32'" />
<Copy SourceFiles="@(FilesToDeploy)" DestinationFolder="$(Pj64Install)\Plugin64\$(PluginType)" Condition="'$(Platform)'=='x64'" />
</Target>

</Project>

0 comments on commit 34e19f7

Please sign in to comment.