summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addon/doxysearch/doxysearch.pro.in2
-rw-r--r--tmake/lib/win32-g++/generic.t18
2 files changed, 12 insertions, 8 deletions
diff --git a/addon/doxysearch/doxysearch.pro.in b/addon/doxysearch/doxysearch.pro.in
index c9654b0..c860fd1 100644
--- a/addon/doxysearch/doxysearch.pro.in
+++ b/addon/doxysearch/doxysearch.pro.in
@@ -1,5 +1,5 @@
TEMPLATE = app.t
-CONFIG = console warn_on debug
+CONFIG = console warn_on debug cgi
HEADERS =
SOURCES = doxysearch.cpp
LIBS += -lxapian
diff --git a/tmake/lib/win32-g++/generic.t b/tmake/lib/win32-g++/generic.t
index 5f6289f..83fc890 100644
--- a/tmake/lib/win32-g++/generic.t
+++ b/tmake/lib/win32-g++/generic.t
@@ -80,13 +80,17 @@
$project{"TARGET_EXT"} = ".dll";
}
} else {
- Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE');
- Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS');
- if ( Project("TMAKE_APP_FLAG") ) {
- $project{"TARGET_EXT"} = ".exe";
- } else {
- $project{"TARGET_EXT"} = ".a";
- }
+ if ( Config("cgi") ) {
+ Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE');
+ Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS');
+ $project{"TARGET_EXT"} = "";
+ } else {
+ if ( Project("TMAKE_APP_FLAG") ) {
+ $project{"TARGET_EXT"} = ".exe";
+ } else {
+ $project{"TARGET_EXT"} = ".a";
+ }
+ }
}
if ( Config("windows") ) {
if ( Config("console") ) {