now compiles header files into the project data folder.

This commit is contained in:
beard%netscape.com 1999-05-26 23:17:28 +00:00
Родитель 57f397d4de
Коммит e226052f40
1 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -172,14 +172,21 @@ static CWResult Compile(CWPluginContext context)
// build an argument list and call the compiler.
XPIDLSettings settings = { kXPIDLSettingsVersion, kXPIDLModeHeader, false, false };
GetSettings(context, settings);
#if 0
// if generating .xpt files, let the IDE tell us where to put the output file.
// otherwise, put them in the project's output directory.
if (settings.mode == kXPIDLModeTypelib)
err = CWGetSuggestedObjectFileSpec(context, fileNum, &gOutputFile);
else
err = CWGetOutputFileDirectory(gPluginContext, &gOutputFile);
#else
// always generate the output file into the project target's data directory.
err = CWGetSuggestedObjectFileSpec(context, fileNum, &gOutputFile);
#endif
if (!CWSUCCESS(err))
return (err);
int argc = 3;
char* modes[] = { "header", "stub", "typelib", "doc" };
char* argv[] = { "xpidl", "-m", modes[settings.mode - 1], NULL, NULL, NULL, NULL, };