Kaydet (Commit) f094641d authored tarafından David Tardon's avatar David Tardon

add opt -nolangroot needed for gbuild

Change-Id: Id76dfc5698619f8095e0c682ae4ce5e181c9a599
üst 2f1c0be4
......@@ -58,6 +58,7 @@ public:
HelpLinker()
: m_pIndexerPreProcessor(NULL)
, m_bUseLangRoot(true)
{}
~HelpLinker()
{ delete m_pIndexerPreProcessor; }
......@@ -82,6 +83,7 @@ private:
fs::path indexDirName;
fs::path indexDirParentName;
IndexerPreProcessor* m_pIndexerPreProcessor;
bool m_bUseLangRoot;
void initIndexerPreProcessor();
void link() throw( HelpProcessingException );
void addBookmark( FILE* pFile_DBHelp, std::string thishid,
......
......@@ -373,7 +373,9 @@ void HelpLinker::link() throw( HelpProcessingException )
}
else
{
langsourceRoot.append('/' + lang + '/');
langsourceRoot.append( "/" );
if ( m_bUseLangRoot )
langsourceRoot.append( lang + '/' );
xhpFile = fs::path(xhpFileName, fs::native);
}
......@@ -732,6 +734,8 @@ void HelpLinker::main( std::vector<std::string> &args,
if (!addFileUnderPath.empty() && !addFile.empty())
additionalFiles[addFileUnderPath] = addFile;
}
else if (args[i].compare("-nolangroot") == 0)
m_bUseLangRoot = false;
else
helpFiles.push_back(args[i]);
++i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment