Redfoxmoon / cross / slibtool

Forked from cross/slibtool 10 months ago
Clone

Blame src/internal/slibtool_driver_impl.h

9ca8c4
#ifndef SOFORT_DRIVER_IMPL_H
9ca8c4
#define SOFORT_DRIVER_IMPL_H
9ca8c4
9ca8c4
#include <stdint.h>
9ca8c4
#include <stdio.h>
9ca8c4
#include <sys/types.h>
9ca8c4
9ca8c4
#include <slibtool/slibtool.h>
9ca8c4
#include "argv/argv.h"
9ca8c4
9ca8c4
extern int slibtool_main(int, char **, char **);
9ca8c4
extern const struct argv_option slbt_default_options[];
9ca8c4
9ca8c4
enum app_tags {
9ca8c4
	TAG_HELP,
efd47f
	TAG_HELP_ALL,
9ca8c4
	TAG_VERSION,
efd47f
	TAG_CONFIG,
efd47f
	TAG_DEBUG,
efd47f
	TAG_DRY_RUN,
efd47f
	TAG_FEATURES,
efd47f
	TAG_MODE,
efd47f
	TAG_WARNINGS,
2bc175
	TAG_ANNOTATE,
efd47f
	TAG_DEPS,
efd47f
	TAG_SILENT,
efd47f
	TAG_TAG,
efd47f
	TAG_VERBOSE,
302dac
	TAG_TARGET,
302dac
	TAG_HOST,
302dac
	TAG_FLAVOR,
302dac
	TAG_AR,
302dac
	TAG_RANLIB,
302dac
	TAG_DLLTOOL,
116dbb
	TAG_OUTPUT,
63a1b4
	TAG_BINDIR,
523027
	TAG_LDRPATH,
bfa8ca
	TAG_SHREXT,
9c664d
	TAG_RPATH,
9aa1f4
	TAG_RELEASE,
873ecb
	TAG_EXPSYM_FILE,
73ca78
	TAG_EXPSYM_REGEX,
5a9161
	TAG_VERSION_INFO,
cd3d41
	TAG_VERSION_NUMBER,
116dbb
	TAG_NO_SUPPRESS,
b76221
	TAG_NO_INSTALL,
116dbb
	TAG_PREFER_PIC,
116dbb
	TAG_PREFER_NON_PIC,
116dbb
	TAG_SHARED,
116dbb
	TAG_STATIC,
f7645c
	TAG_ALL_STATIC,
0e609b
	TAG_DISABLE_STATIC,
f5fa4c
	TAG_DISABLE_SHARED,
93b62c
	TAG_NO_UNDEFINED,
a943fc
	TAG_MODULE,
68f313
	TAG_AVOID_VERSION,
116dbb
	TAG_COMPILER_FLAG,
116dbb
	TAG_VERBATIM_FLAG,
9ca8c4
};
9ca8c4
46ea99
struct slbt_host_strs {
46ea99
	char *		host;
46ea99
	char *		flavor;
46ea99
	char *		ar;
46ea99
	char *		ranlib;
46ea99
	char *		dlltool;
46ea99
};
46ea99
9ca8c4
struct slbt_driver_ctx_impl {
9ca8c4
	struct slbt_common_ctx	cctx;
9ca8c4
	struct slbt_driver_ctx	ctx;
46ea99
	struct slbt_host_strs	host;
a313a4
	struct slbt_host_strs	ahost;
f8e27e
	char *			libname;
56cab3
	char **			targv;
56cab3
	char **			cargv;
9ca8c4
};
9ca8c4
9ca8c4
struct slbt_unit_ctx_impl {
9ca8c4
	const char *		path;
9ca8c4
	struct slbt_input	map;
9ca8c4
	struct slbt_common_ctx	cctx;
9ca8c4
	struct slbt_unit_ctx	uctx;
9ca8c4
};
9ca8c4
9ca8c4
#endif