Skip to content

Commit dc2211b

Browse files
author
Dimitri van Heesch
committed
Merge pull request doxygen#444 from albert-github/feature/bug_build_doxyapp
Building doxyapp fails after update of config methodology to improve performance
2 parents 41e7143 + cf17067 commit dc2211b

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

addon/doxyapp/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
if (build_app)
22

3+
# configvalues.h
4+
add_custom_command(
5+
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/configgen.py -maph ${CMAKE_SOURCE_DIR}/src/config.xml > ${GENERATED_SRC}/configvalues.h
6+
DEPENDS ${CMAKE_SOURCE_DIR}/src/config.xml ${CMAKE_SOURCE_DIR}/src/configgen.py
7+
OUTPUT ${GENERATED_SRC}/configvalues.h
8+
)
9+
set_source_files_properties(${GENERATED_SRC}/configvalues.h PROPERTIES GENERATED 1)
10+
311
find_package(Iconv)
412

513
include_directories(
614
${CMAKE_SOURCE_DIR}/src
15+
${GENERATED_SRC}
716
${CMAKE_SOURCE_DIR}/qtools
817
${ICONV_INCLUDE_DIR}
918
${CLANG_INCLUDEDIR}

addon/doxyapp/doxyapp.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -262,28 +262,28 @@ int main(int argc,char **argv)
262262
// setup the non-default configuration options
263263

264264
// we need a place to put intermediate files
265-
Config_getString("OUTPUT_DIRECTORY")="/tmp/doxygen";
265+
Config_getString(OUTPUT_DIRECTORY)="/tmp/doxygen";
266266
// disable html output
267-
Config_getBool("GENERATE_HTML")=FALSE;
267+
Config_getBool(GENERATE_HTML)=FALSE;
268268
// disable latex output
269-
Config_getBool("GENERATE_LATEX")=FALSE;
269+
Config_getBool(GENERATE_LATEX)=FALSE;
270270
// be quiet
271-
Config_getBool("QUIET")=TRUE;
271+
Config_getBool(QUIET)=TRUE;
272272
// turn off warnings
273-
Config_getBool("WARNINGS")=FALSE;
274-
Config_getBool("WARN_IF_UNDOCUMENTED")=FALSE;
275-
Config_getBool("WARN_IF_DOC_ERROR")=FALSE;
273+
Config_getBool(WARNINGS)=FALSE;
274+
Config_getBool(WARN_IF_UNDOCUMENTED)=FALSE;
275+
Config_getBool(WARN_IF_DOC_ERROR)=FALSE;
276276
// Extract as much as possible
277-
Config_getBool("EXTRACT_ALL")=TRUE;
278-
Config_getBool("EXTRACT_STATIC")=TRUE;
279-
Config_getBool("EXTRACT_PRIVATE")=TRUE;
280-
Config_getBool("EXTRACT_LOCAL_METHODS")=TRUE;
277+
Config_getBool(EXTRACT_ALL)=TRUE;
278+
Config_getBool(EXTRACT_STATIC)=TRUE;
279+
Config_getBool(EXTRACT_PRIVATE)=TRUE;
280+
Config_getBool(EXTRACT_LOCAL_METHODS)=TRUE;
281281
// Extract source browse information, needed
282282
// to make doxygen gather the cross reference info
283-
Config_getBool("SOURCE_BROWSER")=TRUE;
283+
Config_getBool(SOURCE_BROWSER)=TRUE;
284284

285285
// set the input
286-
Config_getList("INPUT").append(argv[1]);
286+
Config_getList(INPUT).append(argv[1]);
287287

288288
// check and finialize the configuration
289289
checkConfiguration();

0 commit comments

Comments
 (0)