aboutsummaryrefslogtreecommitdiffhomepage
path: root/vsprojects/coapp/openssl/grpc.dependencies.openssl.autopkg
blob: fbf6d63f1c7ffd5cc71f5fa9bb1abb2d06536f78 (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
107
108
109
110
111
@import @"version.inc";

configurations
{
    // See https://github.com/coapp/coapp.powershell/issues/112
    Toolset
    {
        key : "PlatformToolset"; // this is CoApp pre-defined key
        choices: { v140, v120, v110, v100 };
    };
}

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

nuget {
	// the nuspec file metadata. Gets created/updated on build
	nuspec {
		id = ${package-id};
		version : ${package-version};
		title: gRPC Native Dependency: OpenSSL;
		authors: {Mark J. Cox, Ralf S. Engelschall, Dr. Stephen Henson, Ben Laurie, Garrett Serack, Tim Rogers};
		owners: {Jan Tattermusch};
		licenseUrl: "http://www.openssl.org/source/license.html";
		projectUrl: "http://github.com/grpc/grpc";
		iconUrl: "http://openssl.com/images/openssl-logo.png";
		requireLicenseAcceptance:false;
		summary: "An OpenSSL library";
		description: @"Native OpenSSL library.
	OpenSSL homepage:  http://www.openssl.org";
		releaseNotes: "Release of OpenSSL 1.0.2d libraries.";
		copyright: Copyright 2015;
		tags: { openssl, native, CoApp };

	};

    dependencies {
        packages : {
            grpc.dependencies.zlib/1.2.8.10
        };
    }
    
	// 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+netcore45+wpa81+wp8";
		  "managed_targets\${package-id}.redist.targets";
		  "managed_targets\${package-id}.redist.props";
		};
		
		nestedInclude: {
			#destination = "${d_include}\openssl";
			#excludes : { ..\..\..\third_party\openssl\inc32\openssl\opensslconf.h };
			"..\..\..\third_party\openssl\inc32\openssl\*";
		};
	
		// TODO(jtattermusch): Visual Studio 2010 and 2012 Express (v100 and v110 toolsets) don't support x64,
        // so while generating the package, you will get a warning that corresponding files are missing
		// (and the resulting package will be somewhat incomplete).
		("v100,v120,v140", "Win32,x64", "release,debug", "Dynamic,Static") => {
			[${0},${1},${2},${3}] {
				lib:         { .\output\${0}\${1}\${2}\${3}\libeay32.lib;
				               .\output\${0}\${1}\${2}\${3}\ssleay32.lib };
				
				source: {
							#destination = ${d_src}\openssl;
							.\output\${0}\${1}\${2}\${3}\include\openssl\opensslconf.h
				};
			};
		};
		("v100,v120,v140", "Win32,x64", "release,debug", "Dynamic") => {
			[${0},${1},${2},${3}] {
				bin:     { .\output\${0}\${1}\${2}\${3}\libeay32.dll;
                           .\output\${0}\${1}\${2}\${3}\ssleay32.dll };
				symbols: { .\output\${0}\${1}\${2}\${3}\libeay32.pdb;
                           .\output\${0}\${1}\${2}\${3}\ssleay32.pdb };
			};
		};
		
	};
	
	// the VC++ .props file that gets generated and inserted into the ${d_content} folder
	props { 
        PropertyGroup {
            CallingConvention-zlib = cdecl;
        }
        
	};

	// the VC++ .targets file that gets generated and inserted into the ${d_content} folder
	targets {
		// every configuration needs to reference the include directories.
		Includes += ${pkg_root}${d_include};
		// Defines += HAS_ZLIB;
		
        ("v100,v110,v120,v140", "Win32,x64", "release,debug", "Dynamic,Static") => {
			[${0},${1},${2},${3}] {
                Includes += ${pkg_root}${d_include};
            };
        };
        
	};
}