- Timestamp:
- Nov 9, 2014 8:36:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Makefile.kmk
r53271 r53273 256 256 VBoxDD_LDFLAGS.darwin += -framework OpenGL 257 257 endif 258 Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/ 258 259 endif 259 260 … … 1352 1353 1353 1354 1354 TEMPLATE_VBoxSVGA3D = VBoxSVGA3D1355 TEMPLATE_VBoxSVGA3D_EXTENDS = VBOXR31356 TEMPLATE_VBoxSVGA3D_CFLAGS = \1357 $(filter-out -pedantic -fno-common -Wstrict-prototypes,$(TEMPLATE_VBOXR3_CFLAGS))1358 TEMPLATE_VBoxSVGA3D_CXXFLAG = \1359 $(filter-out -pedantic -fno-common,$(TEMPLATE_VBOXR3_CXXFLAGS))1360 TEMPLATE_VBoxSVGA3D_CFLAGS.darwin = \1361 $(filter-out -fno-common,$(TEMPLATE_VBOXR3_CFLAGS.darwin))1362 TEMPLATE_VBoxSVGA3D_LDFLAGS.darwin += \1363 -framework AppKit -framework OpenGL1364 1365 1355 if defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS) 1366 DLLS += VBoxSVGA3D 1367 endif 1368 1369 VBoxSVGA3D_TEMPLATE = VBoxSVGA3D 1370 VBoxSVGA3D_SDKS = ReorderCompilerIncs 1371 VBoxSVGA3D_DEFS = \ 1372 __WINESRC__ \ 1373 WINE_UNICODE_API="" \ 1374 _REENTRANT \ 1375 WINE_NOWINSOCK \ 1376 IN_RING3 \ 1377 VBOX_WITH_VMSVGA \ 1378 VBOX_WITH_VMSVGA3D \ 1379 DLLDIR=\"\" \ 1380 BINDIR=\"\" \ 1381 LIB_TO_BINDIR=\"\" \ 1382 LIB_TO_DLLDIR=\"\" \ 1383 BIN_TO_DLLDIR=\"\" \ 1384 LIB_TO_DATADIR=\"\" \ 1385 BIN_TO_DATADIR=\"\" \ 1386 _USE_MATH_DEFINES \ 1387 VBOX_USING_WINDDK_W7_OR_LATER \ 1388 VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT \ 1389 IN_vmsvgashader_STATIC \ 1390 VBOX_WINE_WITH_IPRT 1391 if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS) 1392 VBoxSVGA3D_DEFS += WINE_NO_DEBUG_MSGS 1393 endif 1394 VBoxSVGA3D_DEFS.x86 += __i386__ 1395 VBoxSVGA3D_DEFS.amd64 += __x86_64__ 1396 VBoxSVGA3D_DEFS.win += \ 1397 USE_WIN32_OPENGL \ 1398 VBOX_WINE_WITHOUT_LIBWINE 1399 # WINE relies on a gcc 4.4 feature but we have 4.2 on Darwin 1400 VBoxSVGA3D_DEFS.darwin += \ 1401 __builtin_ms_va_list=va_list \ 1402 __stdcall= 1403 VBoxSVGA3D_CFLAGS = \ 1404 $(filter-out -pedantic -Wattributes,$(VBoxR3DllWarnNoPic_CFLAGS)) 1405 VBoxSVGA3D_INCS.win := \ 1406 Graphics/shaderlib/libWineStub/include 1407 VBoxSVGA3D_INCS.linux := \ 1408 Graphics/shaderlib/wine/include 1409 VBoxSVGA3D_INCS.darwin := \ 1410 Graphics/shaderlib/wine/include 1411 VBoxSVGA3D_SOURCES := \ 1412 Graphics/shaderlib/glsl_shader.c \ 1413 Graphics/shaderlib/shader.c \ 1414 Graphics/shaderlib/shader_sm1.c \ 1415 Graphics/shaderlib/shader_sm4.c \ 1416 Graphics/shaderlib/shaderapi.c \ 1417 Graphics/shaderlib/utils.c \ 1418 Graphics/shaderlib/stateblock.c \ 1419 Graphics/shaderlib/directx.c \ 1420 Graphics/shaderlib/libWineStub/debug.c 1421 VBoxSVGA3D_SOURCES.darwin += \ 1422 Graphics/DevVGA-SVGA3d-cocoa.m 1423 VBoxSVGA3D_LIBS = \ 1424 $(LIB_RUNTIME) 1425 VBoxSVGA3D_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib 1426 if1of ($(KBUILD_TARGET), solaris linux freebsd) 1427 VBoxSVGA3D_LIBS += GL 1428 endif 1429 VBoxSVGA3D_LDFLAGS.darwin += \ 1430 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib 1356 # 1357 # Template used for VBoxSVGA3D. (Stips away compiler options.) 1358 # 1359 TEMPLATE_VBoxSVGA3D = VBoxSVGA3D 1360 TEMPLATE_VBoxSVGA3D_EXTENDS = VBOXR3 1361 TEMPLATE_VBoxSVGA3D_CFLAGS = \ 1362 $(filter-out -pedantic -fno-common -Wstrict-prototypes,$(TEMPLATE_VBOXR3_CFLAGS)) 1363 TEMPLATE_VBoxSVGA3D_CXXFLAG = \ 1364 $(filter-out -pedantic -fno-common,$(TEMPLATE_VBOXR3_CXXFLAGS)) 1365 TEMPLATE_VBoxSVGA3D_CFLAGS.darwin = \ 1366 $(filter-out -fno-common,$(TEMPLATE_VBOXR3_CFLAGS.darwin)) 1367 TEMPLATE_VBoxSVGA3D_LDFLAGS.darwin = \ 1368 -framework AppKit -framework OpenGL 1369 1370 # 1371 # The shader library used by the SVGA3D implementation. 1372 # 1373 DLLS += VBoxSVGA3D 1374 VBoxSVGA3D_TEMPLATE = VBoxSVGA3D 1375 VBoxSVGA3D_SDKS = ReorderCompilerIncs 1376 VBoxSVGA3D_DEFS = \ 1377 __WINESRC__ \ 1378 WINE_UNICODE_API="" \ 1379 _REENTRANT \ 1380 WINE_NOWINSOCK \ 1381 VBOX_WITH_VMSVGA \ 1382 VBOX_WITH_VMSVGA3D \ 1383 DLLDIR=\"\" \ 1384 BINDIR=\"\" \ 1385 LIB_TO_BINDIR=\"\" \ 1386 LIB_TO_DLLDIR=\"\" \ 1387 BIN_TO_DLLDIR=\"\" \ 1388 LIB_TO_DATADIR=\"\" \ 1389 BIN_TO_DATADIR=\"\" \ 1390 _USE_MATH_DEFINES \ 1391 VBOX_USING_WINDDK_W7_OR_LATER \ 1392 VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT \ 1393 IN_vmsvgashader_STATIC \ 1394 VBOX_WINE_WITH_IPRT 1395 if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS) 1396 VBoxSVGA3D_DEFS += WINE_NO_DEBUG_MSGS 1397 endif 1398 VBoxSVGA3D_DEFS.x86 += __i386__ 1399 VBoxSVGA3D_DEFS.amd64 += __x86_64__ 1400 VBoxSVGA3D_DEFS.win += \ 1401 USE_WIN32_OPENGL \ 1402 VBOX_WINE_WITHOUT_LIBWINE 1403 # WINE relies on a gcc 4.4 feature but we have 4.2 on Darwin 1404 VBoxSVGA3D_DEFS.darwin += \ 1405 __builtin_ms_va_list=va_list \ 1406 __stdcall= \ 1407 ms_abi= 1408 # WTF IS THIS? -fno-pic?? doubt it. 1409 VBoxSVGA3D_CFLAGS = \ 1410 $(filter-out -pedantic -Wattributes,$(VBoxR3DllWarnNoPic_CFLAGS)) 1411 VBoxSVGA3D_INCS.win := \ 1412 Graphics/shaderlib/libWineStub/include 1413 VBoxSVGA3D_INCS.linux := \ 1414 Graphics/shaderlib/wine/include 1415 VBoxSVGA3D_INCS.darwin := \ 1416 Graphics/shaderlib/wine/include 1417 VBoxSVGA3D_SOURCES := \ 1418 Graphics/shaderlib/glsl_shader.c \ 1419 Graphics/shaderlib/shader.c \ 1420 Graphics/shaderlib/shader_sm1.c \ 1421 Graphics/shaderlib/shader_sm4.c \ 1422 Graphics/shaderlib/shaderapi.c \ 1423 Graphics/shaderlib/utils.c \ 1424 Graphics/shaderlib/stateblock.c \ 1425 Graphics/shaderlib/directx.c \ 1426 Graphics/shaderlib/libWineStub/debug.c 1427 VBoxSVGA3D_SOURCES.darwin += \ 1428 Graphics/DevVGA-SVGA3d-cocoa.m 1429 VBoxSVGA3D_LIBS = \ 1430 $(LIB_RUNTIME) 1431 VBoxSVGA3D_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib 1432 if1of ($(KBUILD_TARGET), solaris linux freebsd) 1433 VBoxSVGA3D_LIBS += GL 1434 endif 1435 VBoxSVGA3D_LDFLAGS.darwin += \ 1436 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib 1437 1438 endif # defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS) 1431 1439 1432 1440 include $(FILE_KBUILD_SUB_FOOTER)
Note:
See TracChangeset
for help on using the changeset viewer.