Skip to content

Commit 273c661

Browse files
committed
Add Appvayor build script for Windows WTL build
1 parent 1bbdb97 commit 273c661

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed

appveyor.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Static build version - changing the version dynamically means you can't
2+
# just click from github to see how things are progressing until the build has
3+
# finished, which could be a bit annoying.
4+
version: 1.{build}-{branch}
5+
6+
environment:
7+
matrix:
8+
- platform: Win32
9+
target: Release
10+
visualstudio_string: vs2015
11+
12+
init:
13+
# Use CRLF line endings on Windows so users can just use Notepad.
14+
- git config --global core.autocrlf true
15+
16+
build_script:
17+
- msbuild buildbot.xml /m /t:%target% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
18+
19+
after_build:
20+
- ps: $env:gitrev = git describe --tags
21+
- ps: $env:my_version = "$env:gitrev-$env:appveyor_repo_branch-$env:appveyor_build_number"
22+
- set package_name=vgmtrans-%my_version%-%visualstudio_string%-%platform%-%target%
23+
- copy %target%_WTL\VGMTrans_WTL.exe bin\vgmtrans.exe
24+
- mkdir vgmtrans
25+
- move bin vgmtrans
26+
- move LICENSE.txt vgmtrans
27+
- move README.md vgmtrans
28+
- 7z a -mx9 %package_name%.7z vgmtrans
29+
30+
test: off
31+
32+
artifacts:
33+
- path: $(package_name).7z
34+
name: $(visualstudio_string)-$(target)

buildbot.xml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Release" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<!-- Add all the solutions here. -->
4+
<ItemGroup>
5+
<SolutionSet Include="$(MSBuildProjectDirectory)\VGMTrans_WTL.sln" />
6+
<ProjectSetCPU Include="$(MSBuildProjectDirectory)\VGMTrans_WTL.sln" />
7+
</ItemGroup>
8+
<!-- Add common build properties here. -->
9+
<PropertyGroup>
10+
<CreateHardLinksIfPossible>true</CreateHardLinksIfPossible>
11+
<CompileFastPlz>BuildInParallel=True;
12+
CreateHardLinksForCopyFilesToOutputDirectoryIfPossible=$(CreateHardLinksIfPossible);
13+
CreateHardLinksForCopyAdditionalFilesIfPossible=$(CreateHardLinksIfPossible);
14+
CreateHardLinksForCopyLocalIfPossible=$(CreateHardLinksIfPossible);
15+
CreateHardLinksForPublishFilesIfPossible=$(CreateHardLinksIfPossible);
16+
</CompileFastPlz>
17+
</PropertyGroup>
18+
<!-- Add all the custom targets here. -->
19+
<Target Name="CleanBloat" AfterTargets="InternalBuild">
20+
<ItemGroup>
21+
<BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.bsc"/>
22+
<BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.exp"/>
23+
<BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.ilk"/>
24+
<BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.iobj"/>
25+
<BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.ipdb"/>
26+
<BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.lib"/>
27+
<BloatToDelete Include="$(MSBuildProjectDirectory)\bin\**\*.pdb"/>
28+
</ItemGroup>
29+
<Delete Files="@(BloatToDelete)" />
30+
</Target>
31+
<Target Name="CleanCruft">
32+
<ItemGroup>
33+
<CruftToDelete Include="$(MSBuildProjectDirectory)\**\svnrev.h"/>
34+
<CruftToDelete Include="$(MSBuildProjectDirectory)\**\*.CppClean.log" />
35+
</ItemGroup>
36+
<Delete Files="@(CruftToDelete)" />
37+
</Target>
38+
<Target Name="InternalBuild" AfterTargets="Debug;Release">
39+
<MSBuild Projects="@(SolutionSet)" BuildInParallel="false" Properties="Configuration=$(BaseConfiguration)" Targets="Clean" />
40+
<MSBuild Projects="@(ProjectSetCPU)" BuildInParallel="false" Properties="Configuration=%(ConfigCPU.Identity)" Targets="Clean" />
41+
<CallTarget Targets="CleanCruft" />
42+
<MSBuild Projects="@(SolutionSet)" BuildInParallel="false" Properties="Configuration=$(BaseConfiguration);$(CompileFastPlz)" Targets="Build" />
43+
<MSBuild Projects="@(ProjectSetCPU)" BuildInParallel="true" Properties="Configuration=%(ConfigCPU.Identity);BuildProjectReferences=false;$(CompileFastPlz)" Targets="@(TargetsSetCPU)" />
44+
</Target>
45+
<Target Name="Debug">
46+
<PropertyGroup>
47+
<BaseConfiguration>Debug</BaseConfiguration>
48+
</PropertyGroup>
49+
<ItemGroup>
50+
<ConfigCPU Include="Debug"/>
51+
</ItemGroup>
52+
</Target>
53+
<Target Name="Release">
54+
<PropertyGroup>
55+
<BaseConfiguration>Release</BaseConfiguration>
56+
</PropertyGroup>
57+
<ItemGroup>
58+
<ConfigCPU Include="Release"/>
59+
</ItemGroup>
60+
</Target>
61+
</Project>

0 commit comments

Comments
 (0)