xref: /aosp_15_r20/external/libpng/projects/visualc71/README.txt (revision a67afe4df73cf47866eedc69947994b8ff839aba)
1*a67afe4dSAndroid Build Coastguard WorkerMicrosoft Developer Studio Project File, Format Version 7.10 for libpng.
2*a67afe4dSAndroid Build Coastguard Worker
3*a67afe4dSAndroid Build Coastguard WorkerCopyright (C) 2004 Simon-Pierre Cadieux.
4*a67afe4dSAndroid Build Coastguard Worker
5*a67afe4dSAndroid Build Coastguard WorkerThis code is released under the libpng license.
6*a67afe4dSAndroid Build Coastguard WorkerFor conditions of distribution and use, see copyright notice in png.h
7*a67afe4dSAndroid Build Coastguard Worker
8*a67afe4dSAndroid Build Coastguard WorkerNOTE: This project will be removed from libpng-1.5.0.  It has
9*a67afe4dSAndroid Build Coastguard Workerbeen replaced with the "vstudio" project.
10*a67afe4dSAndroid Build Coastguard Worker
11*a67afe4dSAndroid Build Coastguard WorkerAssumptions:
12*a67afe4dSAndroid Build Coastguard Worker* The libpng source files are in ..\..
13*a67afe4dSAndroid Build Coastguard Worker* The zlib source files are in ..\..\..\zlib
14*a67afe4dSAndroid Build Coastguard Worker* The zlib project file is in . /* Warning: This is until the zlib project
15*a67afe4dSAndroid Build Coastguard Worker  files get integrated into the next zlib release. The final zlib project
16*a67afe4dSAndroid Build Coastguard Worker  directory will then be ..\..\..\zlib\projects\visualc71. */
17*a67afe4dSAndroid Build Coastguard Worker
18*a67afe4dSAndroid Build Coastguard WorkerTo use:
19*a67afe4dSAndroid Build Coastguard Worker
20*a67afe4dSAndroid Build Coastguard Worker1) On the main menu, select "File | Open Solution".
21*a67afe4dSAndroid Build Coastguard Worker   Open "libpng.sln".
22*a67afe4dSAndroid Build Coastguard Worker
23*a67afe4dSAndroid Build Coastguard Worker2) Display the Solution Explorer view (Ctrl+Alt+L)
24*a67afe4dSAndroid Build Coastguard Worker
25*a67afe4dSAndroid Build Coastguard Worker3) Set one of the project as the StartUp project. If you just want to build the
26*a67afe4dSAndroid Build Coastguard Worker   binaries set "libpng" as the startup project (Select "libpng" tree view
27*a67afe4dSAndroid Build Coastguard Worker   item + Project | Set as StartUp project). If you want to build and test the
28*a67afe4dSAndroid Build Coastguard Worker   binaries set it to "pngtest" (Select "pngtest" tree view item +
29*a67afe4dSAndroid Build Coastguard Worker   Project | Set as StartUp project)
30*a67afe4dSAndroid Build Coastguard Worker
31*a67afe4dSAndroid Build Coastguard Worker4) Select "Build | Configuration Manager...".
32*a67afe4dSAndroid Build Coastguard Worker   Choose the configuration you wish to build.
33*a67afe4dSAndroid Build Coastguard Worker
34*a67afe4dSAndroid Build Coastguard Worker5) Select "Build | Clean Solution".
35*a67afe4dSAndroid Build Coastguard Worker
36*a67afe4dSAndroid Build Coastguard Worker6) Select "Build | Build Solution (Ctrl-Shift-B)"
37*a67afe4dSAndroid Build Coastguard Worker
38*a67afe4dSAndroid Build Coastguard WorkerThis project builds the libpng binaries as follows:
39*a67afe4dSAndroid Build Coastguard Worker
40*a67afe4dSAndroid Build Coastguard Worker* Win32_DLL_Release\libpng16.dll      DLL build
41*a67afe4dSAndroid Build Coastguard Worker* Win32_DLL_Debug\libpng16d.dll       DLL build (debug version)
42*a67afe4dSAndroid Build Coastguard Worker* Win32_DLL_VB\libpng16vb.dll         DLL build for Visual Basic, using stdcall
43*a67afe4dSAndroid Build Coastguard Worker* Win32_LIB_Release\libpng.lib        static build
44*a67afe4dSAndroid Build Coastguard Worker* Win32_LIB_Debug\libpngd.lib         static build (debug version)
45*a67afe4dSAndroid Build Coastguard Worker
46*a67afe4dSAndroid Build Coastguard WorkerNotes:
47*a67afe4dSAndroid Build Coastguard Worker
48*a67afe4dSAndroid Build Coastguard WorkerIf you change anything in the source files, or select different compiler
49*a67afe4dSAndroid Build Coastguard Workersettings, please change the DLL name to something different than any of
50*a67afe4dSAndroid Build Coastguard Workerthe above names. Also, make sure that in your "pngusr.h" you define
51*a67afe4dSAndroid Build Coastguard WorkerPNG_USER_PRIVATEBUILD and PNG_USER_DLLFNAME_POSTFIX according to the
52*a67afe4dSAndroid Build Coastguard Workerinstructions provided in "pngconf.h".
53*a67afe4dSAndroid Build Coastguard Worker
54*a67afe4dSAndroid Build Coastguard WorkerAll DLLs built by this project use the Microsoft dynamic C runtime library
55*a67afe4dSAndroid Build Coastguard WorkerMSVCR71.DLL (MSVCR71D.DLL for debug versions).  If you distribute any of the
56*a67afe4dSAndroid Build Coastguard Workerabove mentioned libraries you may have to include this DLL in your package.
57*a67afe4dSAndroid Build Coastguard WorkerFor a list of files that are redistributable in Visual Studio see
58*a67afe4dSAndroid Build Coastguard Worker$(VCINSTALLDIR)\redist.txt.
59