Changeset 41418 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- May 23, 2012 2:44:06 PM (13 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/Makefile.kmk
r40388 r41418 187 187 wined3dwddm_DEBUG_INSTTYPE.win = both 188 188 endif 189 wined3dwddm_INCS = vbox/libWineStub/include 189 wined3dwddm_INCS = $(wined3d_INCS) \ 190 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm 190 191 wined3dwddm_DEFS = $(subst VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT,,$(wined3d_DEFS)) 191 192 wined3dwddm_DEFS += VBOX_WITH_WDDM VBOX_WINE_WITH_SINGLE_CONTEXT IN_VBOXLIBWINE 192 193 wined3dwddm_SOURCES = $(subst wined3d.def,wined3dwddm.def,$(wined3d_SOURCES)) vbox/VBoxDbgGl.c 194 wined3dwddm_LIBS += $(wined3d_LIBS)\ 195 $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \ 196 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB) 193 197 194 198 DLLS.amd64 += wined3dwddm-x86 195 wined3dwddm-x86_EXTENDS = wined3dwddm199 wined3dwddm-x86_EXTENDS = wined3dwddm 196 200 wined3dwddm-x86_BLD_TRG_ARCH = x86 197 201 # wined3d now using iprt/asm.h, which includes iprt/assert.h, so iprt is required 198 wined3dwddm-x86_LIBS = \ 199 $(VBOX_LIB_IPRT_GUEST_R3_X86) \ 200 $(VBOX_LIB_VBGL_R3_X86) 201 202 wined3dwddm-x86_LIBS = \ 203 $(VBOX_LIB_IPRT_GUEST_R3_X86) \ 204 $(VBOX_LIB_VBGL_R3_X86) 205 wined3dwddm-x86_LIBS += $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \ 206 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB) 202 207 wined3dwddm-x86_DEFS = $(wined3dwddm_DEFS) VBOX_WDDM_WOW64 203 208 endif # ifdef VBOX_WITH_WDDM … … 297 302 VBoxD3D9wddm_DEBUG_INSTTYPE = both 298 303 endif 299 VBoxD3D9wddm_INCS = vbox/libWineStub/include 304 VBoxD3D9wddm_INCS = $(VBoxD3D9_INCS) \ 305 $(PATH_ROOT)/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm 300 306 VBoxD3D9wddm_DEFS += $(VBoxD3D9_DEFS) VBOX_WITH_WDDM VBOX_WINE_WITHOUT_LIBWINE IN_VBOXWINEEX 301 307 VBoxD3D9wddm_SOURCES = $(subst d3d9xpdm.def,d3d9wddm.def,$(VBoxD3D9_SOURCES)) 302 VBoxD3D9wddm_LIBS = $(subst $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB),$(PATH_STAGE_LIB)/wined3dwddm$(VBOX_SUFF_LIB),$(VBoxD3D9_LIBS)) 308 VBoxD3D9wddm_LIBS = $(subst $(PATH_STAGE_LIB)/wined3d$(VBOX_SUFF_LIB),$(PATH_STAGE_LIB)/wined3dwddm$(VBOX_SUFF_LIB),$(VBoxD3D9_LIBS)) 309 VBoxD3D9wddm_LIBS += $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger$(VBOX_SUFF_LIB) \ 310 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi$(VBOX_SUFF_LIB) 303 311 304 312 DLLS.amd64 += VBoxD3D9wddm-x86 … … 312 320 $(VBOX_LIB_VBGL_R3_X86) 313 321 endif 322 VBoxD3D9wddm-x86_LIBS += $(VBOX_PATH_ADDITIONS_LIB)/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \ 323 $(VBOX_PATH_ADDITIONS_LIB)/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB) 314 324 endif # ifdef VBOX_WITH_WDDM 315 325 -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/vbox/libWineStub/debug.c
r37216 r41418 42 42 //#include "wine/library.h" 43 43 44 #ifdef VBOX_WITH_WDDM 45 #include <VBoxDispMpLogger.h> 46 #include <iprt/err.h> 47 #else 48 #include <iprt/log.h> 49 #endif 50 44 51 static const char * const debug_classes[] = { "fixme", "err", "warn", "trace" }; 45 52 46 53 #define MAX_DEBUG_OPTIONS 256 47 54 55 typedef DECLCALLBACK(void) FNVBOXWINELOGBACKDOOR(char* pcszStr); 56 typedef FNVBOXWINELOGBACKDOOR *PFNVBOXWINELOGBACKDOOR; 57 static PFNVBOXWINELOGBACKDOOR vbox_log_backdoor = NULL; 48 58 static unsigned char default_flags = (1 << __WINE_DBCL_ERR) | (1 << __WINE_DBCL_FIXME) | (1 << __WINE_DBCL_WARN); 49 59 static int nb_debug_options = -1; … … 193 203 } 194 204 205 #ifndef VBOX_WITH_WDDM 206 static DECLCALLBACK(void) vbox_log_backdoor_rt(char* pcszStr) 207 { 208 RTLogBackdoorPrintf("%s", pcszStr); 209 } 210 #else 211 static DECLCALLBACK(void) vbox_log_backdoor_dispmp(char* pcszStr) 212 { 213 VBoxDispMpLoggerLog(pcszStr); 214 } 215 #endif 216 static void vbox_log_v(const char *pszFormat, va_list args) 217 { 218 if (vbox_log_backdoor) 219 { 220 static char buf[8092]; 221 int offset = sprintf(buf, "[0x%lx.0x%lx] Wine Debug: ", GetCurrentProcessId(), GetCurrentThreadId()); 222 vsprintf(buf + offset, pszFormat, args); 223 vbox_log_backdoor(buf); 224 } 225 } 195 226 196 227 /* initialize all options at startup */ … … 203 234 if ((wine_debug = getenv("WINEDEBUG"))) 204 235 { 205 if (!strcmp( wine_debug, "help" )) debug_usage(); 236 Assert(0); 237 if (!strcmp( wine_debug, "help" )) 238 debug_usage(); 239 else if (getenv("WINEDEBUG_BACKDOOR")) 240 { 241 #ifdef VBOX_WITH_WDDM 242 int rc = VBoxDispMpLoggerInit(); 243 if (RT_SUCCESS(rc)) 244 vbox_log_backdoor = vbox_log_backdoor_dispmp; 245 // else 246 #else 247 vbox_log_backdoor = vbox_log_backdoor_rt; 248 #endif 249 } 206 250 parse_options( wine_debug ); 207 251 } … … 395 439 static int default_dbg_vprintf( const char *format, va_list args ) 396 440 { 441 vbox_log_v(format, args); 397 442 #ifdef DEBUG_leo 398 443 static FILE *output=NULL;
Note:
See TracChangeset
for help on using the changeset viewer.