mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Added ability to pass multiple include dirs.
This commit is contained in:
parent
a703d6129f
commit
d34cd0251b
2 changed files with 13 additions and 2 deletions
Binary file not shown.
|
@ -1038,8 +1038,19 @@ struct Preprocessor
|
||||||
|
|
||||||
if (NULL != _includeDir)
|
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 = start;
|
||||||
|
m_tagptr++;
|
||||||
|
start = split + 1;
|
||||||
|
}
|
||||||
|
|
||||||
m_tagptr->tag = FPPTAG_INCLUDE_DIR;
|
m_tagptr->tag = FPPTAG_INCLUDE_DIR;
|
||||||
m_tagptr->data = scratch(_includeDir);
|
m_tagptr->data = start;
|
||||||
m_tagptr++;
|
m_tagptr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1250,7 +1261,7 @@ void help(const char* _error = NULL)
|
||||||
"\n"
|
"\n"
|
||||||
"Options:\n"
|
"Options:\n"
|
||||||
" -f <file path> Input file path.\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"
|
" -o <file path> Output file path.\n"
|
||||||
" --bin2c <file path> Generate C header file.\n"
|
" --bin2c <file path> Generate C header file.\n"
|
||||||
" --depends <file path> Generate makefile style depends file.\n"
|
" --depends <file path> Generate makefile style depends file.\n"
|
||||||
|
|
Loading…
Reference in a new issue