Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use openssl 3.4.0 on Windows #5

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions buildpackages.task
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ using System.Diagnostics;
File.Copy(@"postgresql-$(libpqVersion)" + @"\src\interfaces\libpq\libpq-events.h", package_root + @"\include\libpq-events.h");
File.Copy(@"postgresql-$(libpqVersion)" + @"\src\interfaces\libpq\libpq-fe.h", package_root + @"\include\libpq-fe.h");

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 + @"_$(libpqBuildNumber)" + @"-headers.zip".ToLower(), CompressionLevel.Optimal, false);
}

package_root = @"$(BaseDir)out\packages\libpq-$(libpqVersion)-binaries-$(Platform)-$(Configuration)\" + package;
Expand All @@ -91,7 +91,7 @@ using System.Diagnostics;
}
}

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 + @"_$(libpqBuildNumber)" + @"-binaries-$(Platform)-$(Configuration).zip".ToLower(), CompressionLevel.Optimal, false);
}

return true;
Expand Down
16 changes: 16 additions & 0 deletions downloadpackage.task
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,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
1 change: 1 addition & 0 deletions libpq-version.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
</ImportGroup>
<PropertyGroup Label="UserMacros">
<libpqVersion>10.23</libpqVersion>
<libpqBuildNumber>1</libpqBuildNumber>
<libpqLibDir>$(BaseDir)postgresql-$(libpqVersion)\</libpqLibDir>
</PropertyGroup>
<PropertyGroup>
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