This commit is contained in:
Ben Jordan 2025-12-27 15:54:01 -05:00
parent 5f0bb53864
commit 2d7659ddba
No known key found for this signature in database
2 changed files with 11 additions and 3 deletions

View File

@ -17,10 +17,18 @@ pub fn build(b: *Build) !void {
b.installArtifact(lib);
// OpenSSL configuration options - these will be passed through to pg.zig
// If not specified, pg.zig will disable OpenSSL support
const openssl_lib_name = b.option([]const u8, "openssl_lib_name", "OpenSSL library name (e.g., 'ssl')");
const openssl_lib_path = b.option(Build.LazyPath, "openssl_lib_path", "Path to OpenSSL library directory");
const openssl_include_path = b.option(Build.LazyPath, "openssl_include_path", "Path to OpenSSL include directory");
const pg_dep = b.dependency("pg", .{
.target = target,
.optimize = optimize,
.openssl_lib_name = "ssl",
.openssl_lib_name = openssl_lib_name,
.openssl_lib_path = openssl_lib_path,
.openssl_include_path = openssl_include_path,
});
const jetcommon_dep = b.dependency("jetcommon", .{

View File

@ -9,8 +9,8 @@
.hash = "jetcommon-0.1.0-jPY_DdhIAAAk0zqZQf6adpaL5s2g115R8TDZ9j-VboCO",
},
.pg = .{
.url = "https://github.com/karlseguin/pg.zig/archive/4c2602bad095f9d85b16711d12aa3a2bc7e169cc.tar.gz",
.hash = "pg-0.0.0-Wp_7gQ8FBgCRArfpYn9OdkUhGOUHVRXxB6h9S6lYu7bC",
.url = "https://github.com/karlseguin/pg.zig/archive/f8d4892387fbad2abdf775783e101e50a7114335.tar.gz",
.hash = "pg-0.0.0-Wp_7gag6BgD_QAZrPhNNEGpnUZR_LEkKT40Ura3p-4yX",
},
},
.paths = .{