Skip to content

Commit

Permalink
Merge pull request #2 from freeswitch/openssl340
Browse files Browse the repository at this point in the history
Use openssl to 3.4.0
  • Loading branch information
andywolk authored Jan 22, 2025
2 parents 33e4de2 + 40b5e0a commit 4e6ef50
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ curl-7.*
curl-7.*/
openssl-1.*
openssl-1.*/
openssl-3.*
openssl-3.*/
zlib-1.*
zlib-1.*/
7za*.exe
Expand Down
4 changes: 2 additions & 2 deletions buildpackages.task
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ using System.Diagnostics;
File.Copy(from_folder + @"\include\curl\" + f, package_root + @"\include\curl\" + f);
}
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-headers\", @"$(BaseDir)out\" + package + @"-headers.zip".ToLower(), CompressionLevel.Optimal, false);
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-headers\", @"$(BaseDir)out\" + package + @"_$(curlBuildNumber)" + @"-headers.zip".ToLower(), CompressionLevel.Optimal, false);
}
package_root = @"$(BaseDir)out\packages\" + package + @"-binaries-$(Platform)-$(Configuration)\" + package;
Expand All @@ -77,7 +77,7 @@ using System.Diagnostics;
File.Copy(from_folder + @"build-$(Platform)\lib\$(Configuration)\libcurl.lib", package_root + @"\binaries\$(Platform)\$(Configuration)\curl.lib");
}
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-binaries-$(Platform)-$(Configuration)\", @"$(BaseDir)out\" + package + @"-binaries-$(Platform)-$(Configuration).zip".ToLower(), CompressionLevel.Optimal, false);
ZipFile.CreateFromDirectory(@"$(BaseDir)out\packages\" + package + @"-binaries-$(Platform)-$(Configuration)\", @"$(BaseDir)out\" + package + @"_$(curlBuildNumber)" + @"-binaries-$(Platform)-$(Configuration).zip".ToLower(), CompressionLevel.Optimal, false);
}
return true;
Expand Down
1 change: 1 addition & 0 deletions curl-version.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
</ImportGroup>
<PropertyGroup Label="UserMacros">
<curlVersion>7.88.0</curlVersion>
<curlBuildNumber>1</curlBuildNumber>
<curlLibDir>$(BaseDir)curl-$(curlVersion)</curlLibDir>
</PropertyGroup>
<PropertyGroup>
Expand Down
16 changes: 16 additions & 0 deletions downloadpackage.task
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,22 @@ using System.Diagnostics;
string urifilename = Path.GetFileName(uri.LocalPath);
string output = Path.Combine(outputfolder ?? librarypath, (outputfilename ?? urifilename));
string cachedir = Environment.GetEnvironmentVariable("FreeSWITCHBuildCachePath") ?? "";
string cached_file = cachedir != "" ? Path.Combine(cachedir, (outputfilename ?? urifilename)) : "";
if (cached_file != "" && File.Exists(cached_file)) {
Log.LogMessage(MessageImportance.High,
"Found package in cache \"" + cached_file + "\".");
if (File.Exists(output))
{
Log.LogMessage(MessageImportance.High,
"Deleting previously downloaded file " + output + " for package \"" + package + "\".");
File.Delete(output);
}
File.Copy(cached_file, output);
} else
//if (!File.Exists(output)) // Uncomment to skip download if exists
{
var syncObject = new State
Expand Down
2 changes: 1 addition & 1 deletion openssl-version.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Import Project="basedir.props" Condition=" '$(BaseDirImported)' == ''"/>
</ImportGroup>
<PropertyGroup Label="UserMacros">
<OpenSSLVersion>1.1.1t</OpenSSLVersion>
<OpenSSLVersion>3.4.0</OpenSSLVersion>
<OpenSSLLibDir>$(BaseDir)openssl-$(OpenSSLVersion)</OpenSSLLibDir>
</PropertyGroup>
<PropertyGroup>
Expand Down

0 comments on commit 4e6ef50

Please sign in to comment.