Jan Tattermusch | 556a4ba | 2015-09-28 17:09:31 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <Project DefaultTargets="PreBuildCmds;PreBuildTargets;Build;PostBuildCmds;PostBuildTargets" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 | <PropertyGroup Label="CoApp" > |
| 4 | <CoAppEtcDirectory>$(registry:HKEY_LOCAL_MACHINE\Software\Outercurve\CoApp.Powershell\etc)</CoAppEtcDirectory> |
| 5 | |
| 6 | <!-- Set to true to make visual studio use PTK when building.--> |
| 7 | <UsePTKFromVisualStudio>false</UsePTKFromVisualStudio> |
| 8 | </PropertyGroup> |
| 9 | |
| 10 | <PropertyGroup Label="Configuration" > |
Jan Tattermusch | 18e2202 | 2015-09-28 17:20:03 -0700 | [diff] [blame] | 11 | <!-- This lets Visual Studio see this as a VC12 project by default --> |
| 12 | <PlatformToolset Condition="'$(PlatformToolset)' == ''">v120</PlatformToolset> |
Jan Tattermusch | 556a4ba | 2015-09-28 17:09:31 -0700 | [diff] [blame] | 13 | </PropertyGroup> |
| 14 | |
| 15 | <Import Condition="Exists('$(CoAppEtcDirectory)\common-variables.vcxproj')" Project="$(CoAppEtcDirectory)\common-variables.vcxproj" /> |
| 16 | |
| 17 | <PropertyGroup Label="CustomSettings" /> |
| 18 | |
| 19 | <PropertyGroup Label="Globals"> |
| 20 | <ProjectGuid>{63BED288-E8C3-4345-B84D-2E64598DCF3A}</ProjectGuid> |
| 21 | <RootNamespace>$(MSBuildProjectName)</RootNamespace> |
| 22 | |
| 23 | <OutNameSuffix Condition="$(IS_CDECL) AND $(IS_DYNAMIC)">1</OutNameSuffix> |
| 24 | |
| 25 | <!-- set to Application or DynamicLibrary (DynamicLibrary can get altered to StaticLibrary by PTK --> |
| 26 | <ConfigurationType>DynamicLibrary</ConfigurationType> |
| 27 | |
| 28 | <!-- Common Compiler Defines (semicolon delimited) --> |
| 29 | <Defines>_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_WARNINGS;</Defines> |
| 30 | <Defines Condition="$(IS_STDCALL)">$(Defines);ZLIB_WINAPI;</Defines> |
| 31 | <Defines Condition="$(IS_DYNAMIC)">$(Defines);ZLIB_DLL;</Defines> |
| 32 | <Defines Condition="'$(AppContainer)' == 'App'">$(Defines);IOWIN32_USING_WINRT_API=1;</Defines> |
| 33 | <Defines Condition="'$(AppContainer)' != 'App'">$(Defines);IOWIN32_USING_WINRT_API=0;</Defines> |
| 34 | <Defines Condition="'$(UseASM)' == 'ASM'">$(Defines);ASMV;ASMINF;</Defines> |
| 35 | <Defines Condition="$(IS_X64)">$(Defines);WIN64;</Defines> |
| 36 | |
| 37 | <!-- Additional Include folders (semicolon delimited) --> |
Jan Tattermusch | 18e2202 | 2015-09-28 17:20:03 -0700 | [diff] [blame] | 38 | <IncludeDirectories>..\..\..\third_party\zlib;</IncludeDirectories> |
Jan Tattermusch | 556a4ba | 2015-09-28 17:09:31 -0700 | [diff] [blame] | 39 | |
| 40 | <!-- Additional Library folders (semicolon delimited) --> |
| 41 | <LibraryDirectories></LibraryDirectories> |
| 42 | |
| 43 | <!-- Libraries to Link with --> |
| 44 | <Libraries></Libraries> |
| 45 | |
| 46 | <!-- Batch script to run before Build--> |
| 47 | <PreBuild></PreBuild> |
| 48 | |
| 49 | <!-- Batch script to run after Build--> |
| 50 | <PostBuild></PostBuild> |
| 51 | |
| 52 | <!-- Batch script to run before Link step--> |
| 53 | <PreLink></PreLink> |
| 54 | |
| 55 | <!-- Batch script to run after Link--> |
| 56 | <PostLink></PostLink> |
| 57 | |
| 58 | <!-- Batch script to run before Lib step--> |
| 59 | <PreLib></PreLib> |
| 60 | |
| 61 | <!-- Batch script to run after Lib--> |
| 62 | <PostLib></PostLib> |
| 63 | |
| 64 | <!-- Targets to run before Build (semcolon delimited)--> |
| 65 | <PreBuildTargets></PreBuildTargets> |
| 66 | |
| 67 | <!-- Targets to run before Build (semcolon delimited)--> |
| 68 | <PostBuildTargets></PostBuildTargets> |
| 69 | |
| 70 | <!-- for Dynamic libs, you can specify the Module .DEF file path --> |
| 71 | <ModuleDefinitionFile></ModuleDefinitionFile> |
| 72 | </PropertyGroup> |
| 73 | |
| 74 | <Import Condition="Exists('$(CoAppEtcDirectory)\common-header.vcxproj')" Project="$(CoAppEtcDirectory)\common-header.vcxproj" /> |
| 75 | <Import Condition="'$(UseASM)' == 'ASM'" Project="$(VCTargetsPath)\BuildCustomizations\masm.props" /> |
| 76 | |
| 77 | <PropertyGroup> |
| 78 | <OutDir>$(ProjectRootDir)Output/$(PlatformToolset)/$(Platform)/$(Configuration)/$(UsesConfigurationType)/$(CallingConvention)/$(CharacterSet)/$(AppContainer)/$(UseASM)/</OutDir> |
| 79 | <IntDir>$(ProjectRootDir)Intermediate/$(TargetName)/$(PlatformToolset)/$(Platform)/$(Configuration)/$(UsesConfigurationType)/$(CallingConvention)/$(CharacterSet)/$(AppContainer)/$(UseASM)/</IntDir> |
| 80 | </PropertyGroup> |
| 81 | |
| 82 | <ItemDefinitionGroup> |
| 83 | <ClCompile> |
| 84 | <SDLCheck>true</SDLCheck> |
| 85 | </ClCompile> |
| 86 | <Link> |
| 87 | <BaseAddress>0x5A4C0000</BaseAddress> |
| 88 | </Link> |
| 89 | </ItemDefinitionGroup> |
| 90 | |
| 91 | <ItemGroup Condition="'$(UseASM)' == 'ASM'"> |
Jan Tattermusch | 18e2202 | 2015-09-28 17:20:03 -0700 | [diff] [blame] | 92 | <MASM Include="..\..\..\third_party\zlib\contrib\masmx64\gvmat64.asm" Condition="$(IS_X64)"> |
Jan Tattermusch | 556a4ba | 2015-09-28 17:09:31 -0700 | [diff] [blame] | 93 | <AssembledCodeListingFile>$(IntDir)gvmat64.lst</AssembledCodeListingFile> |
| 94 | <MASMBeforeTargets>Build</MASMBeforeTargets> |
| 95 | <ObjectFileName>$(IntDir)gvmat64.obj</ObjectFileName> |
| 96 | </MASM> |
Jan Tattermusch | 18e2202 | 2015-09-28 17:20:03 -0700 | [diff] [blame] | 97 | <MASM Include="..\..\..\third_party\zlib\contrib\masmx64\inffasx64.asm" Condition="$(IS_X64)"> |
Jan Tattermusch | 556a4ba | 2015-09-28 17:09:31 -0700 | [diff] [blame] | 98 | <AssembledCodeListingFile>$(IntDir)inffasx64.lst</AssembledCodeListingFile> |
| 99 | <MASMBeforeTargets>Build</MASMBeforeTargets> |
| 100 | <ObjectFileName>$(IntDir)inffasx64.obj</ObjectFileName> |
| 101 | </MASM> |
Jan Tattermusch | 18e2202 | 2015-09-28 17:20:03 -0700 | [diff] [blame] | 102 | <MASM Include="..\..\..\third_party\zlib\contrib\masmx86\inffas32.asm" Condition="$(IS_X86) AND $(IS_STDCALL)"> |
Jan Tattermusch | 556a4ba | 2015-09-28 17:09:31 -0700 | [diff] [blame] | 103 | <AssembledCodeListingFile>$(IntDir)inffas32.lst</AssembledCodeListingFile> |
| 104 | <MASMBeforeTargets>Build</MASMBeforeTargets> |
| 105 | <UseSafeExceptionHandlers>true</UseSafeExceptionHandlers> |
| 106 | <AdditionalOptions>/coff %(AdditionalOptions)</AdditionalOptions> |
| 107 | <ObjectFileName>$(IntDir)inffas32.obj</ObjectFileName> |
| 108 | </MASM> |
Jan Tattermusch | 18e2202 | 2015-09-28 17:20:03 -0700 | [diff] [blame] | 109 | <MASM Include="..\..\..\third_party\zlib\contrib\masmx86\match686.asm" Condition="$(IS_X86) AND $(IS_STDCALL)"> |
Jan Tattermusch | 556a4ba | 2015-09-28 17:09:31 -0700 | [diff] [blame] | 110 | <AssembledCodeListingFile>$(IntDir)match686.lst</AssembledCodeListingFile> |
| 111 | <MASMBeforeTargets>Build</MASMBeforeTargets> |
| 112 | <UseSafeExceptionHandlers>true</UseSafeExceptionHandlers> |
| 113 | <AdditionalOptions>/coff %(AdditionalOptions)</AdditionalOptions> |
| 114 | <ObjectFileName>$(IntDir)match686.obj</ObjectFileName> |
| 115 | </MASM> |
| 116 | </ItemGroup> |
| 117 | |
| 118 | <ItemGroup Label="C Source Files"> |
| 119 | <!-- Include the source files to compile here --> |
| 120 | <!-- <ClCompile Include="..\src\foo.c" /> --> |
Jan Tattermusch | 18e2202 | 2015-09-28 17:20:03 -0700 | [diff] [blame] | 121 | <ClCompile Include="..\..\..\third_party\zlib\adler32.c" /> |
| 122 | <ClCompile Include="..\..\..\third_party\zlib\compress.c" /> |
| 123 | <ClCompile Include="..\..\..\third_party\zlib\crc32.c" /> |
| 124 | <ClCompile Include="..\..\..\third_party\zlib\deflate.c" /> |
| 125 | <ClCompile Include="..\..\..\third_party\zlib\gzclose.c" /> |
| 126 | <ClCompile Include="..\..\..\third_party\zlib\gzlib.c" /> |
| 127 | <ClCompile Include="..\..\..\third_party\zlib\gzread.c" /> |
| 128 | <ClCompile Include="..\..\..\third_party\zlib\gzwrite.c" /> |
| 129 | <ClCompile Include="..\..\..\third_party\zlib\infback.c" /> |
| 130 | <ClCompile Include="..\..\..\third_party\zlib\contrib\masmx64\inffas8664.c" Condition="$(IS_X64)" /> |
| 131 | <ClCompile Include="..\..\..\third_party\zlib\inffast.c" /> |
| 132 | <ClCompile Include="..\..\..\third_party\zlib\inflate.c" /> |
| 133 | <ClCompile Include="..\..\..\third_party\zlib\inftrees.c" /> |
| 134 | <ClCompile Include="..\..\..\third_party\zlib\trees.c" /> |
| 135 | <ClCompile Include="..\..\..\third_party\zlib\uncompr.c" /> |
| 136 | <ClCompile Include="..\..\..\third_party\zlib\zutil.c" /> |
Jan Tattermusch | 556a4ba | 2015-09-28 17:09:31 -0700 | [diff] [blame] | 137 | </ItemGroup> |
| 138 | |
| 139 | <ItemGroup Label="Resource Files"> |
| 140 | <!-- Include the source files to compile here --> |
| 141 | <!-- <ResourceCompile Include="..\src\foo.rc" /> --> |
Jan Tattermusch | 18e2202 | 2015-09-28 17:20:03 -0700 | [diff] [blame] | 142 | <ResourceCompile Include="..\..\..\third_party\zlib\win32\zlib1.rc" /> |
Jan Tattermusch | 556a4ba | 2015-09-28 17:09:31 -0700 | [diff] [blame] | 143 | </ItemGroup> |
| 144 | |
| 145 | <Import Condition="'$(UseASM)' == 'ASM'" Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" /> |
| 146 | <Import Condition="Exists('$(CoAppEtcDirectory)\common-footer.vcxproj')" Project="$(CoAppEtcDirectory)\common-footer.vcxproj" /> |
| 147 | </Project> |