Changeset 35332 in vbox
- Timestamp:
- Dec 24, 2010 9:14:00 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/Makefile.kmk
r35319 r35332 20 20 include $(KBUILD_PATH)/subheader.kmk 21 21 22 # @todo: get rid of libwine completely (currently used for xpdm.x86 builds only) 22 23 DLLS.x86 += libWine 23 24 … … 115 116 libWine/version.c 116 117 117 DLLS.x86 += wined3d 118 118 DLLS += wined3d 119 # @todo: all .amd64 and .x86 stuff below is to get rid of libwine for amd64 120 # and keep it for .x86 to avoid regressions 121 # this should be generalized in the future 119 122 wined3d_TEMPLATE = VBOXGUESTR3NPDLL 120 wined3d_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL _ _i386__ _USE_MATH_DEFINES\123 wined3d_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL _USE_MATH_DEFINES\ 121 124 DLLDIR=\"\" \ 122 125 BINDIR=\"\" \ … … 126 129 LIB_TO_DATADIR=\"\" \ 127 130 BIN_TO_DATADIR=\"\" 131 wined3d_DEFS.x86 = __i386__ 128 132 if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS) 129 133 wined3d_DEFS += WINE_NO_DEBUG_MSGS 130 134 endif 131 wined3d_INCS := $(PATH_SUB_CURRENT)/include 135 wined3d_DEFS.amd64 += VBOX_WINE_WITHOUT_LIBWINE 136 wined3d_INCS.x86 := $(PATH_SUB_CURRENT)/include 137 wined3d_INCS.amd64 := vbox/libWineStub/include 132 138 wined3d_SOURCES := \ 133 139 wined3d/arb_program_shader.c \ … … 166 172 wined3d/wined3d_main.c \ 167 173 wined3d/wined3d.def 168 wined3d_LIBS = \ 174 wined3d_SOURCES.amd64 = vbox/libWineStub/debug.c 175 wined3d_LIBS.x86 = \ 169 176 $(PATH_LIB)/libWine$(VBOX_SUFF_LIB) 177 wined3d_SDKS.amd64 = WINDDKWLH 170 178 171 179 ifdef VBOX_WITH_WDDM 172 180 DLLS += wined3dwddm 173 wined3dwddm_EXTENDS = wined3d181 wined3dwddm_EXTENDS = wined3d 174 182 if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM) 175 wined3dwddm_NOINST.win = true 176 endif 177 wined3dwddm_INCS = vbox/libWineStub/include 178 wined3dwddm_LIBS = $(NO_SUCH_VARIABLE) 179 wined3dwddm_DEFS = $(subst __i386__,,$(wined3d_DEFS)) VBOX_WITH_WDDM VBOX_WINE_WITHOUT_LIBWINE 180 wined3dwddm_SOURCES = $(subst wined3d.def,wined3dwddm.def,$(wined3d_SOURCES)) 181 wined3dwddm_SOURCES += vbox/libWineStub/debug.c 182 wined3dwddm_SDKS = WINDDKWLH 183 wined3dwddm_NOINST.win = true 184 endif 185 wined3dwddm_INCS = vbox/libWineStub/include 186 wined3dwddm_INCS.x86 = $(NO_SUCH_VARIABLE) 187 wined3dwddm_LIBS.x86 = $(NO_SUCH_VARIABLE) 188 wined3dwddm_DEFS = $(subst __i386__,,$(wined3d_DEFS)) VBOX_WITH_WDDM VBOX_WINE_WITHOUT_LIBWINE 189 wined3dwddm_DEFS.x86 = $(NO_SUCH_VARIABLE) 190 wined3dwddm_SOURCES = $(subst wined3d.def,wined3dwddm.def,$(wined3d_SOURCES)) vbox/libWineStub/debug.c 191 wined3dwddm_SOURCES.x86 = $(NO_SUCH_VARIABLE) 192 wined3dwddm_SOURCES.amd64 = $(NO_SUCH_VARIABLE) 193 wined3dwddm_SDKS = WINDDKWLH 194 wined3dwddm_SDKS.amd64 = $(NO_SUCH_VARIABLE) 183 195 184 196 DLLS.amd64 += wined3dwddm-x86 185 wined3dwddm-x86_EXTENDS = wined3dwddm197 wined3dwddm-x86_EXTENDS = wined3dwddm 186 198 wined3dwddm-x86_BLD_TRG_ARCH = x86 187 199 #wined3dwddm-x86_LIBS = \ 188 200 $(VBOX_LIB_IPRT_GUEST_R3_X86) \ 189 201 $(VBOX_LIB_VBGL_R3_X86) 190 wined3dwddm-x86_DEFS = $(wined3dwddm_DEFS) VBOX_WDDM_WOW64 191 endif 192 193 DLLS.x86 += VBoxD3D8 194 202 wined3dwddm-x86_DEFS = $(wined3dwddm_DEFS) VBOX_WDDM_WOW64 203 endif 204 205 DLLS += VBoxD3D8 195 206 VBoxD3D8_TEMPLATE = VBOXGUESTR3NPDLL 196 VBoxD3D8_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL _ _i386__ _USE_MATH_DEFINES\207 VBoxD3D8_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL _USE_MATH_DEFINES\ 197 208 DLLDIR=\"\" \ 198 209 BINDIR=\"\" \ … … 202 213 LIB_TO_DATADIR=\"\" \ 203 214 BIN_TO_DATADIR=\"\" 215 VBoxD3D8_DEFS.x86 = __i386__ 204 216 if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS) 205 217 VBoxD3D8_DEFS += WINE_NO_DEBUG_MSGS 206 218 endif 207 #ifdef VBOX_WITH_WDDM 208 # VBoxD3D8_DEFS += VBOX_WITH_WDDM IN_VBOXWINEEX 209 #endif 210 VBoxD3D8_INCS := $(PATH_SUB_CURRENT)/include 219 VBoxD3D8_DEFS.amd64 += VBOX_WINE_WITHOUT_LIBWINE 220 VBoxD3D8_INCS.x86 := $(PATH_SUB_CURRENT)/include 221 VBoxD3D8_INCS.amd64 := vbox/libWineStub/include 211 222 VBoxD3D8_SOURCES := \ 212 223 d3d8/cubetexture.c \ … … 225 236 d3d8/volumetexture.c \ 226 237 d3d8/d3d8.def 227 VBoxD3D8_LIBS = \ 228 $(PATH_LIB)/libWine$(VBOX_SUFF_LIB) \ 238 VBoxD3D8_LIBS.x86 = \ 239 $(PATH_LIB)/libWine$(VBOX_SUFF_LIB) 240 VBoxD3D8_LIBS = \ 229 241 $(PATH_LIB)/wined3d$(VBOX_SUFF_LIB) 230 DLLS.x86 += VBoxD3D9 242 VBoxD3D8_SOURCES.amd64 = vbox/libWineStub/debug.c 243 VBoxD3D8_SDKS.amd64 = WINDDKWLH 244 245 DLLS += VBoxD3D9 231 246 232 247 VBoxD3D9_TEMPLATE = VBOXGUESTR3NPDLL 233 VBoxD3D9_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL _ _i386__ _USE_MATH_DEFINES\248 VBoxD3D9_DEFS = __WINESRC__ WINE_UNICODE_API="" _REENTRANT WINE_NOWINSOCK USE_WIN32_OPENGL _USE_MATH_DEFINES\ 234 249 DLLDIR=\"\" \ 235 250 BINDIR=\"\" \ … … 239 254 LIB_TO_DATADIR=\"\" \ 240 255 BIN_TO_DATADIR=\"\" 256 VBoxD3D9_DEFS.x86 = __i386__ 241 257 if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS) 242 258 VBoxD3D9_DEFS += WINE_NO_DEBUG_MSGS 243 259 endif 244 VBoxD3D9_INCS := $(PATH_SUB_CURRENT)/include 260 VBoxD3D9_DEFS.amd64 += VBOX_WINE_WITHOUT_LIBWINE 261 VBoxD3D9_INCS.x86 := $(PATH_SUB_CURRENT)/include 262 VBoxD3D9_INCS.amd64 := vbox/libWineStub/include 245 263 VBoxD3D9_SOURCES := \ 246 264 d3d9/cubetexture.c \ … … 259 277 d3d9/vertexshader.c \ 260 278 d3d9/volume.c \ 261 d3d9/volumetexture.c \ 279 d3d9/volumetexture.c 280 VBoxD3D9_SOURCES.x86 := \ 262 281 d3d9/d3d9.def 263 VBoxD3D9_LIBS = \ 264 $(PATH_LIB)/libWine$(VBOX_SUFF_LIB) \ 282 VBoxD3D9_SOURCES.amd64 := \ 283 d3d9/d3d9xpdm.def 284 VBoxD3D9_LIBS.x86 = \ 285 $(PATH_LIB)/libWine$(VBOX_SUFF_LIB) 286 VBoxD3D9_LIBS = \ 265 287 $(PATH_LIB)/wined3d$(VBOX_SUFF_LIB) 288 VBoxD3D9_SOURCES.amd64 = vbox/libWineStub/debug.c 289 VBoxD3D9_SDKS.amd64 = WINDDKWLH 266 290 267 291 ifdef VBOX_WITH_WDDM 268 292 DLLS += VBoxD3D9wddm 269 VBoxD3D9wddm_EXTENDS = VBoxD3D9293 VBoxD3D9wddm_EXTENDS = VBoxD3D9 270 294 if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_WDDM) 271 295 VBoxD3D9wddm_NOINST.win = true 272 296 endif 273 274 VBoxD3D9wddm_INCS = vbox/libWineStub/include 275 VBoxD3D9wddm_LIBS = $(NO_SUCH_VARIABLE) 276 VBoxD3D9wddm_DEFS += $(subst __i386__,,$(VBoxD3D9_DEFS)) VBOX_WITH_WDDM VBOX_WINE_WITHOUT_LIBWINE IN_VBOXWINEEX 277 VBoxD3D9wddm_SOURCES = $(subst d3d9.def,d3d9wddm.def,$(VBoxD3D9_SOURCES)) 278 VBoxD3D9wddm_SOURCES += vbox/libWineStub/debug.c 279 VBoxD3D9wddm_LIBS = $(PATH_LIB)/wined3dwddm$(VBOX_SUFF_LIB) 280 VBoxD3D9wddm_SDKS = WINDDKWLH 297 VBoxD3D9wddm_INCS = vbox/libWineStub/include 298 VBoxD3D9wddm_INCS.x86 = $(NO_SUCH_VARIABLE) 299 VBoxD3D9wddm_DEFS.x86 = $(NO_SUCH_VARIABLE) 300 VBoxD3D9wddm_DEFS += $(subst __i386__,,$(VBoxD3D9_DEFS)) VBOX_WITH_WDDM VBOX_WINE_WITHOUT_LIBWINE IN_VBOXWINEEX 301 VBoxD3D9wddm_SOURCES = $(VBoxD3D9_SOURCES) d3d9/d3d9wddm.def vbox/libWineStub/debug.c 302 VBoxD3D9wddm_SOURCES.x86 = $(NO_SUCH_VARIABLE) 303 VBoxD3D9wddm_SOURCES.amd64 = $(NO_SUCH_VARIABLE) 304 VBoxD3D9wddm_LIBS = $(PATH_LIB)/wined3dwddm$(VBOX_SUFF_LIB) 305 VBoxD3D9wddm_LIBS.x86 = $(NO_SUCH_VARIABLE) 306 VBoxD3D9wddm_SDKS = WINDDKWLH 307 VBoxD3D9wddm_SDKS.amd64 = $(NO_SUCH_VARIABLE) 281 308 282 309 DLLS.amd64 += VBoxD3D9wddm-x86 283 VBoxD3D9wddm-x86_EXTENDS = VBoxD3D9wddm310 VBoxD3D9wddm-x86_EXTENDS = VBoxD3D9wddm 284 311 VBoxD3D9wddm-x86_BLD_TRG_ARCH = x86 285 VBoxD3D9wddm-x86_LIBS = $(PATH_LIB)/wined3dwddm-x86$(VBOX_SUFF_LIB) 286 #VBoxD3D9wddm-x86_LIBS += \ 287 $(VBOX_LIB_IPRT_GUEST_R3_X86) \ 288 $(VBOX_LIB_VBGL_R3_X86) 289 VBoxD3D9wddm-x86_DEFS = $(VBoxD3D9wddm_DEFS) VBOX_WDDM_WOW64 290 endif 291 292 DLLS.x86 += d3d8 312 VBoxD3D9wddm-x86_LIBS = $(PATH_LIB)/wined3dwddm-x86$(VBOX_SUFF_LIB) 313 VBoxD3D9wddm-x86_DEFS = $(VBoxD3D9wddm_DEFS) VBOX_WDDM_WOW64 314 endif 315 316 DLLS += d3d8 293 317 d3d8_TEMPLATE = VBOXGUESTR3NPDLL 294 d3d8_DEFS 295 d3d8_INCS 318 d3d8_DEFS.x86 = __i386__ 319 d3d8_INCS.x86 := $(PATH_SUB_CURRENT)/include 296 320 d3d8_SOURCES = \ 297 321 switcher/d3d8_main.c \ … … 299 323 switcher/sw_d3d8.def \ 300 324 switcher/d3d8.rc 301 302 DLLS.x86 += d3d9 325 d3d8_SDKS.amd64 = WINDDKWLH 326 327 DLLS += d3d9 303 328 d3d9_TEMPLATE = VBOXGUESTR3NPDLL 304 d3d9_DEFS 305 d3d9_INCS 329 d3d9_DEFS.x86 = __i386__ 330 d3d9_INCS.x86 := $(PATH_SUB_CURRENT)/include 306 331 d3d9_SOURCES = \ 307 332 switcher/d3d9_main.c \ 308 333 switcher/sw_common.c \ 309 switcher/sw_d3d9.def \310 334 switcher/d3d9.rc 335 d3d9_SOURCES.x86 = \ 336 switcher/sw_d3d9.def 337 d3d9_SOURCES.amd64 = \ 338 switcher/sw_d3d9xpdm.def 339 d3d9_SDKS.amd64 = WINDDKWLH 340 311 341 312 342 include $(KBUILD_PATH)/subfooter.kmk -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d8/vertexdeclaration.c
r33654 r35332 85 85 return ref_count; 86 86 } 87 88 #ifdef VBOX_WINE_WITHOUT_LIBWINE 89 /* wine defines D3DVSDT_TYPE enumeration while native win headers use D3DVSDT_Xxx defines 90 * and D3DVSDT_TYPE is not defined. 91 * Define it here:*/ 92 typedef UINT D3DVSDT_TYPE; 93 94 /* wine defines D3DVSDE_REGISTER enumeration while native win headers use D3DVSDE_Xxx defines 95 * and D3DVSDE_REGISTER is not defined. 96 * Define it here:*/ 97 typedef UINT D3DVSDE_REGISTER; 98 99 #endif 87 100 88 101 static const char *debug_d3dvsdt_type(D3DVSDT_TYPE d3dvsdt_type) -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/vbox/libWineStub/include/wine/wined3d.h
r35052 r35332 2142 2142 float _43; 2143 2143 float _44; 2144 } DUMMYSTRUCTNAME;2144 } s; 2145 2145 float m[4][4]; 2146 } DUMMYUNIONNAME;2146 } u; 2147 2147 } WINED3DMATRIX; 2148 2148 typedef struct _WINED3DRECT {
Note:
See TracChangeset
for help on using the changeset viewer.