- #! VC 6.0 supports env vars in include path
- #! $WXDIR = $ENV{'WX'};
- $WXDIR = "\$(WX)";
- $TMAKE_INCDIR_WX = $WXDIR . "\\include";
- AddIncludePath($TMAKE_INCDIR_WX);
+ if ( Config("wxnodir") ) {
+ $WXDIR = "..\\..";
+ }
+ else {
+ #! VC 6.0 supports env vars in include path
+ #! $WXDIR = $ENV{'WX'};
+ if ( $ENV{'wx'} ) { $WXDIR = "\$(wx)"; }
+ else { $WXDIR = "\$(WXWIN)"; }
+ }
+
+ AddIncludePath($WXDIR . "\\include");
+ }
+
+ if ( Config("unicode") ) {
+ $UNICODE="Unicode";
+ $UNICODE_SUFFIX="u";
+ $UNICODE_FLAGS="/D _UNICODE /D UNICODE ";
+
+ $project{"TARGET"} .= "Unicode";
+ $project{"MAKEFILE"} .= "Unicode";
+ }
+ else {
+ $UNICODE="";
+ $UNICODE_SUFFIX="";
+ $UNICODE_FLAGS=" ";