mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:13:00 +00:00
[SPEC2DEF] Implement support for debug-only exports
This commit is contained in:
parent
93ba586ec3
commit
dc25409cbf
3 changed files with 27 additions and 4 deletions
|
@ -67,6 +67,7 @@ int gbImportLib = 0;
|
|||
int gbNotPrivateNoWarn = 0;
|
||||
int gbTracing = 0;
|
||||
int giArch = ARCH_X86;
|
||||
int gbDbgExports = 0;
|
||||
char *pszArchString = "i386";
|
||||
char *pszArchString2;
|
||||
char *pszSourceFileName = NULL;
|
||||
|
@ -1162,6 +1163,13 @@ ParseFile(char* pcStart, FILE *fileDest, unsigned *cExports)
|
|||
|
||||
} while (*pc == ',');
|
||||
}
|
||||
else if (CompareToken(pc, "-dbg"))
|
||||
{
|
||||
if (!gbDbgExports)
|
||||
{
|
||||
included = 0;
|
||||
}
|
||||
}
|
||||
else if (CompareToken(pc, "-private"))
|
||||
{
|
||||
exp.uFlags |= FL_PRIVATE;
|
||||
|
@ -1505,6 +1513,7 @@ void usage(void)
|
|||
" -s=<file> generate a stub file\n"
|
||||
" -i=<file> generate an import alias file\n"
|
||||
" --ms MSVC compatibility\n"
|
||||
" --dbg Enable debug exports\n"
|
||||
" -n=<name> name of the dll\n"
|
||||
" --version=<version> Sets the version to create exports for\n"
|
||||
" --implib generate a def file for an import library\n"
|
||||
|
@ -1571,6 +1580,10 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
gbMSComp = 1;
|
||||
}
|
||||
else if (strcasecmp(argv[i], "--dbg") == 0)
|
||||
{
|
||||
gbDbgExports = 1;
|
||||
}
|
||||
else if (strcasecmp(argv[i], "--no-private-warnings") == 0)
|
||||
{
|
||||
gbNotPrivateNoWarn = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue