xref: /aosp_15_r20/external/libpng/projects/vstudio/zlib.props (revision a67afe4df73cf47866eedc69947994b8ff839aba)
1*a67afe4dSAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*a67afe4dSAndroid Build Coastguard Worker<!--
3*a67afe4dSAndroid Build Coastguard Worker * zlib.props - location of zlib source
4*a67afe4dSAndroid Build Coastguard Worker *
5*a67afe4dSAndroid Build Coastguard Worker * Copyright (c) 2018 Cosmin Truta
6*a67afe4dSAndroid Build Coastguard Worker * Copyright (c) 1998-2011 Glenn Randers-Pehrson
7*a67afe4dSAndroid Build Coastguard Worker *
8*a67afe4dSAndroid Build Coastguard Worker * This code is released under the libpng license.
9*a67afe4dSAndroid Build Coastguard Worker * For conditions of distribution and use, see the disclaimer
10*a67afe4dSAndroid Build Coastguard Worker * and license in png.h
11*a67afe4dSAndroid Build Coastguard Worker
12*a67afe4dSAndroid Build Coastguard Worker * You may need to edit this file in order to update the location
13*a67afe4dSAndroid Build Coastguard Worker * of the zlib source code.
14*a67afe4dSAndroid Build Coastguard Worker -->
15*a67afe4dSAndroid Build Coastguard Worker
16*a67afe4dSAndroid Build Coastguard Worker<Project ToolsVersion="4.0"
17*a67afe4dSAndroid Build Coastguard Worker   xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
18*a67afe4dSAndroid Build Coastguard Worker  <PropertyGroup Label="Globals">
19*a67afe4dSAndroid Build Coastguard Worker    <!-- Place the name of the directory containing the source of zlib used for
20*a67afe4dSAndroid Build Coastguard Worker	 debugging in this property.
21*a67afe4dSAndroid Build Coastguard Worker
22*a67afe4dSAndroid Build Coastguard Worker         The directory need only contain the '.c' and '.h' files from the
23*a67afe4dSAndroid Build Coastguard Worker	 source.
24*a67afe4dSAndroid Build Coastguard Worker
25*a67afe4dSAndroid Build Coastguard Worker	 If you use a relative directory name (as below) then it must be
26*a67afe4dSAndroid Build Coastguard Worker	 relative to the project directories; these are one level deeper than
27*a67afe4dSAndroid Build Coastguard Worker	 the directories containing this file.
28*a67afe4dSAndroid Build Coastguard Worker
29*a67afe4dSAndroid Build Coastguard Worker	 If the version of zlib you use does not match that used when the
30*a67afe4dSAndroid Build Coastguard Worker	 distribution was built you will get warnings from pngtest that the zlib
31*a67afe4dSAndroid Build Coastguard Worker	 versions do not match.  The zlib version used in this build is recorded
32*a67afe4dSAndroid Build Coastguard Worker	 below:
33*a67afe4dSAndroid Build Coastguard Worker     -->
34*a67afe4dSAndroid Build Coastguard Worker    <ZLibSrcDir>..\..\..\..\zlib</ZLibSrcDir>
35*a67afe4dSAndroid Build Coastguard Worker
36*a67afe4dSAndroid Build Coastguard Worker    <!-- The following line allows compilation for an ARM target with Visual
37*a67afe4dSAndroid Build Coastguard Worker         Studio 2012.  Notice that this is not supported by the Visual Studio
38*a67afe4dSAndroid Build Coastguard Worker         2012 IDE and that the programs that result cannot be run unless they
39*a67afe4dSAndroid Build Coastguard Worker         signed by Microsoft.  This is therefore untested; only Microsoft can
40*a67afe4dSAndroid Build Coastguard Worker         test it:
41*a67afe4dSAndroid Build Coastguard Worker     -->
42*a67afe4dSAndroid Build Coastguard Worker    <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport>
43*a67afe4dSAndroid Build Coastguard Worker
44*a67afe4dSAndroid Build Coastguard Worker    <!-- The following lines provide a global (solution level) control of the
45*a67afe4dSAndroid Build Coastguard Worker         warnings issued by the compiler, these are used in the individual
46*a67afe4dSAndroid Build Coastguard Worker         project files (*/*.vcxproj) with, for zlib, some extra disables.
47*a67afe4dSAndroid Build Coastguard Worker
48*a67afe4dSAndroid Build Coastguard Worker         Different versions of Visual Studio may require different settings,
49*a67afe4dSAndroid Build Coastguard Worker         these settings work with Visual Studio 2013.  Just set
50*a67afe4dSAndroid Build Coastguard Worker         TreatWarningAsError to false to check the build without failing on
51*a67afe4dSAndroid Build Coastguard Worker         errors.
52*a67afe4dSAndroid Build Coastguard Worker     -->
53*a67afe4dSAndroid Build Coastguard Worker   <WarningLevel>EnableAllWarnings</WarningLevel>
54*a67afe4dSAndroid Build Coastguard Worker   <TreatWarningAsError>true</TreatWarningAsError>
55*a67afe4dSAndroid Build Coastguard Worker   <DisableSpecificWarnings>4255;4668;4710;4711;4746;4820;4996</DisableSpecificWarnings>
56*a67afe4dSAndroid Build Coastguard Worker  </PropertyGroup>
57*a67afe4dSAndroid Build Coastguard Worker</Project>
58