From b080541d62820dd8bf73b37355d52b06095cc617 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 10 Feb 2024 03:15:34 +0000 Subject: link mode: move the dependency file logic to its own translation unit. --- src/internal/slibtool_linkcmd_impl.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/internal/slibtool_linkcmd_impl.h (limited to 'src/internal') diff --git a/src/internal/slibtool_linkcmd_impl.h b/src/internal/slibtool_linkcmd_impl.h new file mode 100644 index 0000000..c2598f3 --- /dev/null +++ b/src/internal/slibtool_linkcmd_impl.h @@ -0,0 +1,24 @@ +#ifndef SLIBTOOL_LINKCMD_IMPL_H +#define SLIBTOOL_LINKCMD_IMPL_H + +struct slbt_deps_meta { + char ** altv; + char * args; + int depscnt; + int infolen; +}; + +int slbt_get_deps_meta( + const struct slbt_driver_ctx * dctx, + char * libfilename, + int fexternal, + struct slbt_deps_meta * depsmeta); + +int slbt_exec_link_create_dep_file( + const struct slbt_driver_ctx * dctx, + struct slbt_exec_ctx * ectx, + char ** altv, + const char * libfilename, + bool farchive); + +#endif -- cgit v1.2.3