Skip to content

Commit 7e2fe28

Browse files
authored
Merge pull request #5 from freeswitch/openssl340
Use openssl 3.4.0 on Windows
2 parents d3087d1 + f8c8779 commit 7e2fe28

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

buildpackages.task

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ using System.Diagnostics;
7272
File.Copy(@"postgresql-$(libpqVersion)" + @"\src\interfaces\libpq\libpq-events.h", package_root + @"\include\libpq-events.h");
7373
File.Copy(@"postgresql-$(libpqVersion)" + @"\src\interfaces\libpq\libpq-fe.h", package_root + @"\include\libpq-fe.h");
7474
75-
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-headers\", @"$(BaseDir)out\" + package + @"-headers.zip".ToLower(), CompressionLevel.Optimal, false);
75+
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-headers\", @"$(BaseDir)out\" + package + @"_$(libpqBuildNumber)" + @"-headers.zip".ToLower(), CompressionLevel.Optimal, false);
7676
}
7777
7878
package_root = @"$(BaseDir)out\packages\libpq-$(libpqVersion)-binaries-$(Platform)-$(Configuration)\" + package;
@@ -91,7 +91,7 @@ using System.Diagnostics;
9191
}
9292
}
9393
94-
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-binaries-$(Platform)-$(Configuration)\", @"$(BaseDir)out\"+ package + @"-binaries-$(Platform)-$(Configuration).zip".ToLower(), CompressionLevel.Optimal, false);
94+
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-binaries-$(Platform)-$(Configuration)\", @"$(BaseDir)out\"+ package + @"_$(libpqBuildNumber)" + @"-binaries-$(Platform)-$(Configuration).zip".ToLower(), CompressionLevel.Optimal, false);
9595
}
9696
9797
return true;

downloadpackage.task

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,22 @@ using System.Diagnostics;
9797
string urifilename = Path.GetFileName(uri.LocalPath);
9898
string output = Path.Combine(outputfolder ?? librarypath, (outputfilename ?? urifilename));
9999
100+
string cachedir = Environment.GetEnvironmentVariable("FreeSWITCHBuildCachePath") ?? "";
101+
string cached_file = cachedir != "" ? Path.Combine(cachedir, (outputfilename ?? urifilename)) : "";
102+
103+
if (cached_file != "" && File.Exists(cached_file)) {
104+
Log.LogMessage(MessageImportance.High,
105+
"Found package in cache \"" + cached_file + "\".");
106+
107+
if (File.Exists(output))
108+
{
109+
Log.LogMessage(MessageImportance.High,
110+
"Deleting previously downloaded file " + output + " for package \"" + package + "\".");
111+
File.Delete(output);
112+
}
113+
114+
File.Copy(cached_file, output);
115+
} else
100116
//if (!File.Exists(output)) // Uncomment to skip download if exists
101117
{
102118
var syncObject = new State

libpq-version.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</ImportGroup>
66
<PropertyGroup Label="UserMacros">
77
<libpqVersion>10.23</libpqVersion>
8+
<libpqBuildNumber>1</libpqBuildNumber>
89
<libpqLibDir>$(BaseDir)postgresql-$(libpqVersion)\</libpqLibDir>
910
</PropertyGroup>
1011
<PropertyGroup>

openssl-version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Import Project="basedir.props" Condition=" '$(BaseDirImported)' == ''"/>
55
</ImportGroup>
66
<PropertyGroup Label="UserMacros">
7-
<OpenSSLVersion>1.1.1t</OpenSSLVersion>
7+
<OpenSSLVersion>3.4.0</OpenSSLVersion>
88
<OpenSSLLibDir>$(BaseDir)openssl-$(OpenSSLVersion)</OpenSSLLibDir>
99
</PropertyGroup>
1010
<PropertyGroup>

0 commit comments

Comments
 (0)