File tree Expand file tree Collapse file tree 6 files changed +57
-0
lines changed Expand file tree Collapse file tree 6 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ option(use_libclang "Add support for libclang parsing." OFF)
29
29
option (static_libclang "Link to a statically compiled version of LLVM/libclang." OFF )
30
30
option (win_static "Link with /MT in stead of /MD on windows" OFF )
31
31
option (english_only "Only compile in support for the English language" OFF )
32
+ option (enable_console "Enable that excutables on Windows get the CONSOLE bit set for the doxywizard executable [development]" OFF )
32
33
option (enable_coverage "Enable coverage reporting for gcc/clang [development]" OFF )
33
34
34
35
set (force_qt CACHE INTERNAL "Forces doxywizard to build using the specified major version, this can be Qt5 or Qt6" )
@@ -80,6 +81,18 @@ if (CMAKE_SYSTEM MATCHES "Darwin")
80
81
set (EXTRA_LIBS ${CORESERVICES_LIB} )
81
82
endif ()
82
83
84
+ find_program (EDITBIN editbin )
85
+ if (EDITBIN )
86
+ set (EDITBIN_FLAGS /nologo /OSVERSION:5.1 )
87
+ if (enable_console )
88
+ set (EDITBIN_FLAGS ${EDITBIN_FLAGS} /SUBSYSTEM:CONSOLE,6.00 )
89
+ set (EDITBIN_WIZARD_FLAGS ${EDITBIN_FLAGS} )
90
+ else ()
91
+ set (EDITBIN_WIZARD_FLAGS ${EDITBIN_FLAGS} /SUBSYSTEM:WINDOWS,6.00 )
92
+ set (EDITBIN_FLAGS ${EDITBIN_FLAGS} /SUBSYSTEM:CONSOLE,6.00 )
93
+ endif ()
94
+ endif ()
95
+
83
96
if (WIN32 )
84
97
if ((NOT CMAKE_GENERATOR MATCHES "MinGW Makefiles" ) AND
85
98
(NOT CMAKE_GENERATOR MATCHES "MSYS Makefiles" ) AND
Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ include_directories(
11
11
add_executable (doxyapp
12
12
doxyapp.cpp
13
13
)
14
+ if (EDITBIN )
15
+ add_custom_command (
16
+ TARGET doxyapp
17
+ POST_BUILD
18
+ COMMAND "${EDITBIN} " ${EDITBIN_FLAGS} "$<TARGET_FILE:doxyapp>"
19
+ VERBATIM )
20
+ endif ()
21
+
14
22
add_sanitizers (doxyapp )
15
23
16
24
if (use_libclang )
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ include_directories(
11
11
add_executable (doxyparse
12
12
doxyparse.cpp
13
13
)
14
+ if (EDITBIN )
15
+ add_custom_command (
16
+ TARGET doxyparse
17
+ POST_BUILD
18
+ COMMAND "${EDITBIN} " ${EDITBIN_FLAGS} "$<TARGET_FILE:doxyparse>"
19
+ VERBATIM )
20
+ endif ()
14
21
add_sanitizers (doxyparse )
15
22
16
23
if (use_libclang )
Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ include_directories(
14
14
add_executable (doxyindexer
15
15
doxyindexer.cpp
16
16
)
17
+ if (EDITBIN )
18
+ add_custom_command (
19
+ TARGET doxyindexer
20
+ POST_BUILD
21
+ COMMAND "${EDITBIN} " ${EDITBIN_FLAGS} "$<TARGET_FILE:doxyindexer>"
22
+ VERBATIM )
23
+ endif ()
17
24
target_link_libraries (doxyindexer
18
25
${XAPIAN_LIBRARIES}
19
26
${ZLIB_LIBRARIES}
@@ -26,6 +33,13 @@ target_link_libraries(doxyindexer
26
33
add_executable (doxysearch.cgi
27
34
doxysearch.cpp
28
35
)
36
+ if (EDITBIN )
37
+ add_custom_command (
38
+ TARGET doxysearch.cgi
39
+ POST_BUILD
40
+ COMMAND "${EDITBIN} " ${EDITBIN_FLAGS} "$<TARGET_FILE:doxysearch.cgi>"
41
+ VERBATIM )
42
+ endif ()
29
43
target_link_libraries (doxysearch.cgi
30
44
doxygen_version
31
45
${XAPIAN_LIBRARIES}
Original file line number Diff line number Diff line change @@ -124,6 +124,14 @@ doxywizard.rc
124
124
125
125
set_property (TARGET doxywizard PROPERTY WIN32_EXECUTABLE true )
126
126
127
+ if (EDITBIN )
128
+ add_custom_command (
129
+ TARGET doxywizard
130
+ POST_BUILD
131
+ COMMAND "${EDITBIN} " ${EDITBIN_WIZARD_FLAGS} "$<TARGET_FILE:doxywizard>"
132
+ VERBATIM )
133
+ endif ()
134
+
127
135
if (Qt5Core_FOUND )
128
136
target_link_libraries (doxywizard Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Xml doxygen_version )
129
137
else ()
Original file line number Diff line number Diff line change @@ -327,6 +327,13 @@ endif()
327
327
add_executable (doxygen
328
328
main.cpp
329
329
)
330
+ if (EDITBIN )
331
+ add_custom_command (
332
+ TARGET doxygen
333
+ POST_BUILD
334
+ COMMAND "${EDITBIN} " ${EDITBIN_FLAGS} "$<TARGET_FILE:doxygen>"
335
+ VERBATIM )
336
+ endif ()
330
337
add_sanitizers (doxygen )
331
338
332
339
if (use_libclang )
You can’t perform that action at this time.
0 commit comments