Files
wickra/bindings/r/src/install.libs.R
T

11 lines
519 B
R
Raw Normal View History

2026-06-09 19:18:40 +02:00
# Install the compiled package shared object plus, on Windows, the bundled
# wickra_abi.dll (matched by the *.dll glob) so the loader can resolve the import
# from the package's own libs directory (see .onLoad, which puts it on PATH).
files <- Sys.glob(paste0("*", SHLIB_EXT))
dest <- file.path(R_PACKAGE_DIR, paste0("libs", R_ARCH))
dir.create(dest, recursive = TRUE, showWarnings = FALSE)
file.copy(files, dest, overwrite = TRUE)
if (file.exists("symbols.rds")) {
file.copy("symbols.rds", dest, overwrite = TRUE)
}