Skip to content

Commit

Permalink
Update std.toolchain(), curl, and openssl to set CMake project …
Browse files Browse the repository at this point in the history
…root vars
  • Loading branch information
kylewlacy committed Nov 28, 2024
1 parent 48a90cf commit b640574
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/cmake/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ export default function (): std.Recipe<std.Directory> {
`
.workDir(source)
.dependencies(std.toolchain(), openssl(), curl())
.env({
OPENSSL_ROOT_DIR: openssl(),
ZLIB_ROOT: std.toolchain(),
CURL_ROOT: curl(),
})
.toDirectory();

cmake = cmake.insert("libexec/cmake/runtime-utils", std.runtimeUtils());
Expand Down
1 change: 1 addition & 0 deletions packages/curl/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function (): std.Recipe<std.Directory> {
CPATH: { append: [{ path: "include" }] },
LIBRARY_PATH: { append: [{ path: "lib" }] },
PKG_CONFIG_PATH: { append: [{ path: "lib/pkgconfig" }] },
CURL_ROOT: { fallback: { path: "." } },
});

return std.withRunnableLink(curl, "bin/curl");
Expand Down
1 change: 1 addition & 0 deletions packages/openssl/project.bri
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default function openssl(): std.Recipe<std.Directory> {
CPATH: { append: [{ path: "include" }] },
LIBRARY_PATH: { append: [{ path: "lib" }] },
PKG_CONFIG_PATH: { append: [{ path: "lib/pkgconfig" }] },
OPENSSL_ROOT_DIR: { fallback: { path: "." } },
});

return std.withRunnableLink(openssl, "bin/openssl");
Expand Down
3 changes: 3 additions & 0 deletions packages/std/toolchain/native/index.bri
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ export const toolchain = std.memo(
// pkg-config search paths
PKG_CONFIG_PATH: { append: [{ path: "lib/pkgconfig" }] },

// CMake package paths
ZLIB_ROOT: { fallback: { path: "." } },

// Bison data dir
BISON_PKGDATADIR: { fallback: { path: "share/bison" } },

Expand Down

0 comments on commit b640574

Please sign in to comment.