diff options
author | David Tardon <dtardon@redhat.com> | 2013-02-26 14:55:52 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-02-26 15:24:53 +0100 |
commit | f094641d3ad1be5f2b09c2ed9c63fd6e18bd6799 (patch) | |
tree | c9566a3d4e9f859498368d44991eed4997302e30 /helpcompiler | |
parent | 2f1c0be4533dc476fc23b82502360c5abc13906b (diff) |
add opt -nolangroot needed for gbuild
Change-Id: Id76dfc5698619f8095e0c682ae4ce5e181c9a599
Diffstat (limited to 'helpcompiler')
-rw-r--r-- | helpcompiler/inc/HelpLinker.hxx | 2 | ||||
-rw-r--r-- | helpcompiler/source/HelpLinker.cxx | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/helpcompiler/inc/HelpLinker.hxx b/helpcompiler/inc/HelpLinker.hxx index 5e2e88dc70f8..ef4f4216f318 100644 --- a/helpcompiler/inc/HelpLinker.hxx +++ b/helpcompiler/inc/HelpLinker.hxx @@ -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, diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index 6d00f67742e3..0bdde1848c68 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -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; |