13 #ifndef _VT_LIBWRAPGEN_H_
14 #define _VT_LIBWRAPGEN_H_
16 #include "vt_libwrapgen_defs.h"
17 #include "vt_libwrapgen_filter.h"
18 #include "vt_libwrapgen_parser.h"
20 #include "vt_inttypes.h"
29 # ifdef _POSIX_PATH_MAX
30 # define PATH_MAX _POSIX_PATH_MAX
31 # else // _POSIX_PATH_MAX
33 # endif // _POSIX_PATH_MAX
50 verbose_level(1), mode(MODE_GENSRC),
51 g_output_srcfile(VT_LIBWRAPGEN_DEFAULT_OUTPUT_SRC_FILE),
52 g_cpp_cmd(VT_LIBWRAPGEN_DEFAULT_CPP),
53 g_use_cpp(true), g_keep_cpp_file(false),
54 b_output_libprefix(VT_LIBWRAPGEN_DEFAULT_OUTPUT_LIB_PREFIX),
56 b_cc_cmd(VT_LIBWRAPGEN_DEFAULT_CC),
57 b_cc_flags(VT_LIBWRAPGEN_DEFAULT_CFLAGS),
58 b_shared(false), b_static(false) {}
61 std::string command_line;
64 std::string output_dir;
70 uint32_t verbose_level;
75 std::string g_output_srcfile;
76 std::string g_input_filtfile;
78 std::vector<std::string> g_input_headers;
79 std::vector<std::string> g_allowed_sysheaders;
80 std::vector<std::string> g_shlibs;
82 std::string g_cpp_cmd;
83 std::string g_cpp_flags;
84 std::string g_cpp_dir;
89 std::string b_output_libprefix;
90 std::string b_input_srcfile;
91 std::string b_libtool_cmd;
92 std::string b_libtool_flags;
94 std::string b_cc_flags;
96 std::string b_ld_flags;
118 bool genSource(
void );
121 bool buildLib(
void );
142 std::string type_base;
143 std::string type_before;
144 std::string type_after;
146 std::vector<ArgS> args;
152 void writeHead(
void );
155 void writeFunction(
const FuncS& func );
158 bool removeDir(
const std::string& path );
167 std::ofstream m_outputStream;
170 std::map<std::string, bool> genFuncs;
174 extern void VPrint( uint8_t level,
const char * fmt, ... );
180 extern const std::string ExeName;
188 #endif // _VT_LIBWRAPGEN_H_
Definition: vt_libwrapgen.h:105
Definition: datastructs.h:41
Definition: vt_libwrapgen.h:138
VampirTrace http://www.tu-dresden.de/zih/vampirtrace.
Definition: vt_libwrapgen_filter.h:26
VampirTrace http://www.tu-dresden.de/zih/vampirtrace.
Definition: vt_libwrapgen_parser.h:20
Definition: vt_libwrapgen.h:132