Skip to content

Commit 4e6ef50

Browse files
authored
Merge pull request #2 from freeswitch/openssl340
Use openssl to 3.4.0
2 parents 33e4de2 + 40b5e0a commit 4e6ef50

File tree

5 files changed

+22
-3
lines changed

5 files changed

+22
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ curl-7.*
66
curl-7.*/
77
openssl-1.*
88
openssl-1.*/
9+
openssl-3.*
10+
openssl-3.*/
911
zlib-1.*
1012
zlib-1.*/
1113
7za*.exe

buildpackages.task

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ using System.Diagnostics;
6161
File.Copy(from_folder + @"\include\curl\" + f, package_root + @"\include\curl\" + f);
6262
}
6363
64-
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-headers\", @"$(BaseDir)out\" + package + @"-headers.zip".ToLower(), CompressionLevel.Optimal, false);
64+
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-headers\", @"$(BaseDir)out\" + package + @"_$(curlBuildNumber)" + @"-headers.zip".ToLower(), CompressionLevel.Optimal, false);
6565
}
6666
6767
package_root = @"$(BaseDir)out\packages\" + package + @"-binaries-$(Platform)-$(Configuration)\" + package;
@@ -77,7 +77,7 @@ using System.Diagnostics;
7777
File.Copy(from_folder + @"build-$(Platform)\lib\$(Configuration)\libcurl.lib", package_root + @"\binaries\$(Platform)\$(Configuration)\curl.lib");
7878
}
7979
80-
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-binaries-$(Platform)-$(Configuration)\", @"$(BaseDir)out\" + package + @"-binaries-$(Platform)-$(Configuration).zip".ToLower(), CompressionLevel.Optimal, false);
80+
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-binaries-$(Platform)-$(Configuration)\", @"$(BaseDir)out\" + package + @"_$(curlBuildNumber)" + @"-binaries-$(Platform)-$(Configuration).zip".ToLower(), CompressionLevel.Optimal, false);
8181
}
8282
8383
return true;

curl-version.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
</ImportGroup>
77
<PropertyGroup Label="UserMacros">
88
<curlVersion>7.88.0</curlVersion>
9+
<curlBuildNumber>1</curlBuildNumber>
910
<curlLibDir>$(BaseDir)curl-$(curlVersion)</curlLibDir>
1011
</PropertyGroup>
1112
<PropertyGroup>

downloadpackage.task

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

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)