orbea / cross / slibtool

Forked from cross/slibtool 3 years 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,
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,
9c664d
	TAG_RPATH,
5a9161
	TAG_VERSION_INFO,
116dbb
	TAG_NO_SUPPRESS,
116dbb
	TAG_PREFER_PIC,
116dbb
	TAG_PREFER_NON_PIC,
116dbb
	TAG_SHARED,
116dbb
	TAG_STATIC,
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;
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