From d8c2b3247afc7f837b7d24ec2c93f0fbdc40c584 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 20 Dec 2015 04:10:09 -0500 Subject: libname,dstdir: added interface. --- src/driver/mdso_driver_ctx.c | 8 ++++++++ src/internal/mdso_driver_impl.h | 2 ++ src/skin/mdso_skin_default.c | 6 ++++++ 3 files changed, 16 insertions(+) (limited to 'src') diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c index c1e34ba..cf37052 100644 --- a/src/driver/mdso_driver_ctx.c +++ b/src/driver/mdso_driver_ctx.c @@ -126,6 +126,14 @@ int mdso_get_driver_ctx( cctx.drvflags |= MDSO_DRIVER_VERSION; break; + case TAG_LIBNAME: + cctx.libname = entry->arg; + break; + + case TAG_DSTDIR: + cctx.dstdir = entry->arg; + break; + case TAG_PRETTY: pretty = entry->arg; break; diff --git a/src/internal/mdso_driver_impl.h b/src/internal/mdso_driver_impl.h index d76f29e..4ce307d 100644 --- a/src/internal/mdso_driver_impl.h +++ b/src/internal/mdso_driver_impl.h @@ -10,6 +10,8 @@ enum app_tags { TAG_HELP, TAG_VERSION, + TAG_LIBNAME, + TAG_DSTDIR, TAG_PRETTY, TAG_EXPSYMS, }; diff --git a/src/skin/mdso_skin_default.c b/src/skin/mdso_skin_default.c index cf65a3f..a6a4793 100644 --- a/src/skin/mdso_skin_default.c +++ b/src/skin/mdso_skin_default.c @@ -8,6 +8,12 @@ const struct argv_option mdso_default_options[] = { {"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,"short|long",0, "show usage information [listing %s options only]"}, + {"libname", 'n',TAG_LIBNAME,ARGV_OPTARG_REQUIRED,0,"", + "set dependency library name to %s"}, + + {"dstdir", 'd',TAG_DSTDIR,ARGV_OPTARG_REQUIRED,0,"", + "save generated assembly files under %s"}, + {"pretty", 'p',TAG_PRETTY,ARGV_OPTARG_REQUIRED,"yaml",0, "format output for parsing by %s"}, -- cgit v1.2.3