Added ability to pass multiple include dirs.

This commit is contained in:
bkaradzic 2013-04-01 23:04:37 -07:00
parent a703d6129f
commit d34cd0251b
2 changed files with 13 additions and 2 deletions

Binary file not shown.

View file

@ -1038,8 +1038,19 @@ struct Preprocessor
if (NULL != _includeDir)
{
char* start = scratch(_includeDir);
for (char* split = strchr(start, ';'); NULL != split; split = strchr(start, ';'))
{
*split = '\0';
m_tagptr->tag = FPPTAG_INCLUDE_DIR;
m_tagptr->data = scratch(_includeDir);
m_tagptr->data = start;
m_tagptr++;
start = split + 1;
}
m_tagptr->tag = FPPTAG_INCLUDE_DIR;
m_tagptr->data = start;
m_tagptr++;
}
@ -1250,7 +1261,7 @@ void help(const char* _error = NULL)
"\n"
"Options:\n"
" -f <file path> Input file path.\n"
" -i <include path> Include path.\n"
" -i <include path> Include path (for multiple paths use semicolon).\n"
" -o <file path> Output file path.\n"
" --bin2c <file path> Generate C header file.\n"
" --depends <file path> Generate makefile style depends file.\n"