if ( Config("wx") && !Config("wxbase") ) {
Project('CONFIG += windows');
}
- if ( Config("wx") ) {
- if ( Config("wxnodir") ) {
- #! hard code relative paths
- $WXDIR = "..\\..";
- }
- else {
- #! VC 6.0 supports env vars in include path
- $WXDIR = "\$(WXWIN)";
- }
-
- AddIncludePath("$WXDIR\\include");
- }
#! let's be smart: if no extension is given, add .lib (this allows for
#! LIBS=libname in project files which map either to -l libname.lib under
}
if ( Config("wx") ) {
+ #! default rel path works for all the demos and most of the samples
+ #! if no explicit path given
+ $WXDIR = Project("WXDIR") || "..\\..";
+
+ AddIncludePath("$WXDIR\\include");
+
if ( !Project('WXCONFIGS') ) {
#! default value
Project('WXCONFIGS = Debug Release DebugDll ReleaseDll');
$WX_BASENAME = "$WXDIR\\lib\\wx$TOOLKIT";
$UNICODE_SUFFIX = "u";
$DEBUG_SUFFIX = "d";
+ $DLL = "dll";
#! compiler options: for the given configuration they are just obrained
#! by concatenating together all relevant values from the list below
if ( $text ne "" ) { $vc_def = $text . " "; $text = ""; } else { $vc_def = ""; }
if ( Config("wx") ) {
#! define wxWindows compilation flags
- $vc_def .= '/D WIN32 /D WINVER=0x400 /D _MT ';
+ $vc_def .= '/D WIN32 /D WINVER=0x400 ';
if ( Config("wxbase") ) {
$vc_def .= '/D wxUSE_GUI=0 ';