aboutsummaryrefslogtreecommitdiffhomepage
path: root/vsprojects/copkg/zlib/grpc.dependencies.zlib.autopkg
blob: 015103ba2f00f4f986e976a4d4af437888930ed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
@import @"version.inc";

configurations {
};

#define { 
      package-id = "grpc.dependencies.zlib";
}

nuget {
	// the nuspec file metadata. Gets created/updated on build
	nuspec {
		id = ${package-id};
		version : ${package-version};
		title: gRPC Native Dependency: ZLib compression library;
		authors: {Jean-loup Gailly, Mark Adler, Garrett Serack, Tim Rogers};
		owners: {Jan Tattermusch};
		licenseUrl: "http://zlib.net/zlib-license.html";
		projectUrl: "http://github.com/jtattermusch/zlib";
		iconUrl: "http://zlib.net/images/zlib3d-b1.png";
		requireLicenseAcceptance:false;
		summary:A zlib library;
		description: @"A native zlib library.
	zlib homepage:  http://zlib.net";
		releaseNotes: "Release of zlib 1.2.8 libraries.";
		copyright: Copyright 2013;
		tags: { zlib, native, CoApp };

	};

	// the files that go into the content folders
	// (inserted into the nuspec file)
	files {
	    // .targets file that are applied when redist package is installed from a managed project.
		managed_build: {
		  #output {
              package = redist;
          };
		  #destination = "\build\portable-net45";
		  "managed_targets\${package-id}.redist.props";
		  "managed_targets\${package-id}.redist.targets";
		};
	
		include: { ..\..\zlib.h, ..\..\zconf.h };

		docs: {  ..\..\doc\**\* };
        
        source += {
            "..\..\adler32.c",
            "..\..\compress.c",
            "..\..\crc32.c",
            "..\..\deflate.c",
            "..\..\gzclose.c",
            "..\..\gzlib.c",
            "..\..\gzread.c",
            "..\..\gzwrite.c",
            "..\..\infback.c",
            "..\..\inffast.c",
            "..\..\inflate.c",
            "..\..\inftrees.c",
            "..\..\trees.c",
            "..\..\uncompr.c",
            "..\..\zutil.c",
            "..\..\crc32.h",
            "..\..\deflate.h",
            "..\..\gzguts.h",
            "..\..\inffast.h",
            "..\..\inffixed.h",
            "..\..\inflate.h",
            "..\..\inftrees.h",
            "..\..\trees.h",
            "..\..\zconf.h",
            "..\..\zlib.h",
            "..\..\zutil.h",
            "..\masmx64\inffas8664.c",
            "..\minizip\ioapi.c",
            "..\minizip\iowin32.c",
            "..\minizip\unzip.c",
            "..\minizip\zip.c",
        };
		("v100,v120", "Win32,x64", "Release,Debug", "Dynamic", "cdecl,stdcall", "MultiByte") => {
			[${0},${1},${2},${3},${4}] {
				lib:     { .\output\${0}\${1}\${2}\${3}\${4}\${5}\*.lib };
				bin:     { .\output\${0}\${1}\${2}\${3}\${4}\${5}\*.dll };
				symbols: { .\output\${0}\${1}\${2}\${3}\${4}\${5}\*.pdb };
			};
		};
		("v100,v120", "Win32,x64", "Release,Debug", "Static,ltcg", "cdecl,stdcall", "MultiByte") => {
			[${0},${1},${2},${3},${4}] {
				lib:     { .\output\${0}\${1}\${2}\${3}\${4}\${5}\*.lib };
			};
		};

	};

	// the VC++ .targets file that gets generated and inserted into the ${d_content} folder
	targets {
		Defines += HAS_ZLIB;
		[dynamic]
			Defines += ZLIB_DLL;
		[stdcall]
			Defines += ZLIB_WINAPI;
			
	};
}