Skip to content

Commit 4b2e478

Browse files
authored
Merge pull request #5 from chcg/appveyor
- initial appveyor CI config
2 parents 3ee0411 + cb5b8fd commit 4b2e478

4 files changed

Lines changed: 156 additions & 27 deletions

File tree

BigFiles.sln

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ Global
1313
Release|x86 = Release|x86
1414
EndGlobalSection
1515
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16-
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|x64.ActiveCfg = Release|x64
17-
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|x64.Build.0 = Release|x64
18-
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|x86.ActiveCfg = Release|x64
19-
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|x86.Build.0 = Release|x64
16+
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|x64.ActiveCfg = Debug|x64
17+
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|x64.Build.0 = Debug|x64
18+
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|x86.ActiveCfg = Debug|Win32
19+
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Debug|x86.Build.0 = Debug|Win32
2020
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Release|x64.ActiveCfg = Release|x64
2121
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Release|x64.Build.0 = Release|x64
22-
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Release|x86.ActiveCfg = Release|x64
22+
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Release|x86.ActiveCfg = Release|Win32
23+
{9D04DBD5-E12E-44E0-A683-6F43F21D533B}.Release|x86.Build.0 = Release|Win32
2324
EndGlobalSection
2425
GlobalSection(SolutionProperties) = preSolution
2526
HideSolutionNode = FALSE

appveyor.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
version: 0.1.1.{build}
2+
image: Visual Studio 2017
3+
4+
5+
environment:
6+
matrix:
7+
- PlatformToolset: v141_xp
8+
9+
platform:
10+
- x64
11+
- Win32
12+
13+
configuration:
14+
- Release
15+
- Debug
16+
17+
install:
18+
- if "%platform%"=="x64" set archi=amd64
19+
- if "%platform%"=="x64" set platform_input=x64
20+
21+
- if "%platform%"=="Win32" set archi=x86
22+
- if "%platform%"=="Win32" set platform_input=Win32
23+
24+
- if "%PlatformToolset%"=="v141_xp" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
25+
26+
27+
build_script:
28+
- cd "%APPVEYOR_BUILD_FOLDER%"\vs.proj\
29+
- msbuild BigFiles.vcxproj /m /p:configuration="%configuration%" /p:platform="%platform_input%" /p:PlatformToolset="%PlatformToolset%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
30+
31+
after_build:
32+
- cd "%APPVEYOR_BUILD_FOLDER%"
33+
- ps: >-
34+
35+
if ($env:PLATFORM_INPUT -eq "x64") {
36+
Push-AppveyorArtifact "bin64\BigFiles.dll" -FileName BigFiles.dll
37+
}
38+
39+
if ($env:PLATFORM_INPUT -eq "Win32" ) {
40+
Push-AppveyorArtifact "bin\BigFiles.dll" -FileName BigFiles.dll
41+
}
42+
43+
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v141_xp") {
44+
if($env:PLATFORM_INPUT -eq "x64"){
45+
$ZipFileName = "BigFiles_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
46+
7z a $ZipFileName "$($env:APPVEYOR_BUILD_FOLDER)\bin64\*.dll"
47+
}
48+
if($env:PLATFORM_INPUT -eq "Win32"){
49+
$ZipFileName = "BigFiles_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
50+
7z a $ZipFileName "$($env:APPVEYOR_BUILD_FOLDER)\bin\*.dll"
51+
}
52+
}
53+
54+
artifacts:
55+
- path: BigFiles_*.zip
56+
name: releases
57+
58+
deploy:
59+
provider: GitHub
60+
auth_token:
61+
secure: !!TODO, see https://www.appveyor.com/docs/deployment/github/#provider-settings!!
62+
artifact: releases
63+
draft: false
64+
prerelease: false
65+
force_update: true
66+
on:
67+
appveyor_repo_tag: true
68+
PlatformToolset: v141_xp
69+
configuration: Release

src/resource.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,8 +1466,6 @@
14661466
#define _WIN32_WINNT_WIN10 0x0A00
14671467
#define _WIN32_IE_IE100 0x0A00
14681468
#define _WIN32_IE_IE110 0x0A00
1469-
#define _WIN32_WINNT 0x0A00
1470-
#define _WIN32_IE 0x0A00
14711469
#define LVS_ALIGNMASK 0x0c00
14721470
#define CS_BYTEALIGNCLIENT 0x1000
14731471
#define HDS_OVERFLOW 0x1000

vs.proj/BigFiles.vcxproj

Lines changed: 81 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
48
<ProjectConfiguration Include="Debug|x64">
59
<Configuration>Debug</Configuration>
610
<Platform>x64</Platform>
711
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Release|Win32">
13+
<Configuration>Release</Configuration>
14+
<Platform>Win32</Platform>
15+
</ProjectConfiguration>
816
<ProjectConfiguration Include="Release|x64">
917
<Configuration>Release</Configuration>
1018
<Platform>x64</Platform>
@@ -29,8 +37,6 @@
2937
<ItemGroup>
3038
<Image Include="..\src\back.bmp" />
3139
<Image Include="..\src\forward.bmp" />
32-
<Image Include="back.bmp" />
33-
<Image Include="forward.bmp" />
3440
</ItemGroup>
3541
<PropertyGroup Label="Globals">
3642
<ProjectGuid>{9D04DBD5-E12E-44E0-A683-6F43F21D533B}</ProjectGuid>
@@ -40,52 +46,108 @@
4046
<ProjectName>BigFiles</ProjectName>
4147
</PropertyGroup>
4248
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
43-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
49+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
50+
<ConfigurationType>DynamicLibrary</ConfigurationType>
51+
<UseDebugLibraries>true</UseDebugLibraries>
52+
<PlatformToolset>v141_xp</PlatformToolset>
53+
<CharacterSet>Unicode</CharacterSet>
54+
</PropertyGroup>
55+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
56+
<ConfigurationType>DynamicLibrary</ConfigurationType>
57+
<UseDebugLibraries>true</UseDebugLibraries>
58+
<PlatformToolset>v141_xp</PlatformToolset>
59+
<CharacterSet>Unicode</CharacterSet>
60+
</PropertyGroup>
61+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
4462
<ConfigurationType>DynamicLibrary</ConfigurationType>
4563
<UseDebugLibraries>false</UseDebugLibraries>
46-
<PlatformToolset>v141</PlatformToolset>
64+
<PlatformToolset>v141_xp</PlatformToolset>
4765
<WholeProgramOptimization>true</WholeProgramOptimization>
4866
<CharacterSet>Unicode</CharacterSet>
49-
<CLRSupport>false</CLRSupport>
5067
</PropertyGroup>
51-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
68+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
5269
<ConfigurationType>DynamicLibrary</ConfigurationType>
5370
<UseDebugLibraries>false</UseDebugLibraries>
54-
<PlatformToolset>v141</PlatformToolset>
71+
<PlatformToolset>v141_xp</PlatformToolset>
5572
<WholeProgramOptimization>true</WholeProgramOptimization>
5673
<CharacterSet>Unicode</CharacterSet>
57-
<CLRSupport>false</CLRSupport>
5874
</PropertyGroup>
5975
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
6076
<ImportGroup Label="ExtensionSettings">
6177
</ImportGroup>
62-
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
78+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
6379
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
6480
</ImportGroup>
6581
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
6682
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
6783
</ImportGroup>
84+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
85+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
86+
</ImportGroup>
87+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
88+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
89+
</ImportGroup>
6890
<PropertyGroup Label="UserMacros" />
69-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
70-
<LinkIncremental>false</LinkIncremental>
71-
<OutDir>..\bin64\</OutDir>
91+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
92+
<LinkIncremental>true</LinkIncremental>
7293
</PropertyGroup>
7394
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
95+
<LinkIncremental>true</LinkIncremental>
96+
</PropertyGroup>
97+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
98+
<LinkIncremental>false</LinkIncremental>
99+
<OutDir>..\bin\</OutDir>
100+
</PropertyGroup>
101+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
74102
<LinkIncremental>false</LinkIncremental>
75103
<OutDir>..\bin64\</OutDir>
76104
</PropertyGroup>
77-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
105+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
78106
<ClCompile>
107+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
79108
<WarningLevel>Level2</WarningLevel>
109+
<Optimization>Disabled</Optimization>
110+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;NPPPLUGINTEMPLATE_EXPORTS;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;_CRT_NON_CONFORMING_SWPRINTFS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
111+
<AdditionalIncludeDirectories>
112+
</AdditionalIncludeDirectories>
113+
<TreatWarningAsError>true</TreatWarningAsError>
114+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
115+
</ClCompile>
116+
<Link>
117+
<SubSystem>Windows</SubSystem>
118+
<GenerateDebugInformation>true</GenerateDebugInformation>
119+
<AdditionalDependencies>shlwapi.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
120+
</Link>
121+
</ItemDefinitionGroup>
122+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
123+
<ClCompile>
80124
<PrecompiledHeader>
81125
</PrecompiledHeader>
126+
<WarningLevel>Level2</WarningLevel>
82127
<Optimization>Disabled</Optimization>
128+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;NPPPLUGINTEMPLATE_EXPORTS;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;_CRT_NON_CONFORMING_SWPRINTFS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
129+
<TreatWarningAsError>true</TreatWarningAsError>
130+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
131+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
132+
</ClCompile>
133+
<Link>
134+
<SubSystem>Windows</SubSystem>
135+
<GenerateDebugInformation>true</GenerateDebugInformation>
136+
<AdditionalDependencies>shlwapi.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
137+
</Link>
138+
</ItemDefinitionGroup>
139+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
140+
<ClCompile>
141+
<WarningLevel>Level2</WarningLevel>
142+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
143+
<Optimization>MaxSpeed</Optimization>
83144
<FunctionLevelLinking>true</FunctionLevelLinking>
84145
<IntrinsicFunctions>true</IntrinsicFunctions>
85146
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;NPPPLUGINTEMPLATE_EXPORTS;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;_CRT_NON_CONFORMING_SWPRINTFS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
86-
<TreatWarningAsError>false</TreatWarningAsError>
147+
<AdditionalIncludeDirectories>
148+
</AdditionalIncludeDirectories>
149+
<TreatWarningAsError>true</TreatWarningAsError>
87150
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
88-
<DebugInformationFormat>None</DebugInformationFormat>
89151
</ClCompile>
90152
<Link>
91153
<SubSystem>Windows</SubSystem>
@@ -99,18 +161,17 @@
99161
<Command>copy ..\LICENSE ..\bin64\LICENSE</Command>
100162
</PostBuildEvent>
101163
</ItemDefinitionGroup>
102-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
164+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
103165
<ClCompile>
104166
<WarningLevel>Level2</WarningLevel>
105167
<PrecompiledHeader>
106168
</PrecompiledHeader>
107-
<Optimization>Disabled</Optimization>
169+
<Optimization>MaxSpeed</Optimization>
108170
<FunctionLevelLinking>true</FunctionLevelLinking>
109171
<IntrinsicFunctions>true</IntrinsicFunctions>
110172
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;NPPPLUGINTEMPLATE_EXPORTS;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;_CRT_NON_CONFORMING_SWPRINTFS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
111-
<TreatWarningAsError>false</TreatWarningAsError>
173+
<TreatWarningAsError>true</TreatWarningAsError>
112174
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
113-
<DebugInformationFormat>None</DebugInformationFormat>
114175
</ClCompile>
115176
<Link>
116177
<SubSystem>Windows</SubSystem>

0 commit comments

Comments
 (0)