From 8254bebed7609fe24902267bea25e3866f2a4bcc Mon Sep 17 00:00:00 2001 From: Piers Daniell Date: Tue, 24 Feb 2015 13:58:47 -0700 Subject: Get the trace player to work with Windows This change modifies many of the generators to use "#if defined(PLATFORM_LINUX) || defined(XCB_NVIDIA)" to choose between using XCB or WIN32 native. --- loader/CMakeLists.txt | 2 +- loader/XGL.def | 4 ++++ loader/loader_platform.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'loader') diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt index f5f835cd..697d0304 100644 --- a/loader/CMakeLists.txt +++ b/loader/CMakeLists.txt @@ -17,7 +17,7 @@ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG") if (WIN32) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXGL_PROTOTYPES -D_CRT_SECURE_NO_WARNINGS") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXGL_PROTOTYPES -D_CRT_SECURE_NO_WARNINGS -DXCB_NVIDIA") add_library(XGL SHARED loader.c loader.h dirent_on_windows.c dispatch.c table_ops.h XGL.def) set_target_properties(XGL PROPERTIES LINK_FLAGS "/DEF:${PROJECT_SOURCE_DIR}/loader/XGL.def") diff --git a/loader/XGL.def b/loader/XGL.def index 6c560ba1..4d1877ea 100644 --- a/loader/XGL.def +++ b/loader/XGL.def @@ -148,3 +148,7 @@ EXPORTS xglDbgSetDeviceOption xglCmdDbgMarkerBegin xglCmdDbgMarkerEnd + xglWsiX11AssociateConnection + xglWsiX11GetMSC + xglWsiX11CreatePresentableImage + xglWsiX11QueuePresent diff --git a/loader/loader_platform.h b/loader/loader_platform.h index 2d878bce..b4f711af 100644 --- a/loader/loader_platform.h +++ b/loader/loader_platform.h @@ -135,6 +135,7 @@ static inline void loader_platform_thread_delete_mutex(loader_platform_thread_mu /* Windows-specific common code: */ // Headers: +#include #include #include #ifdef __cplusplus -- cgit v1.2.3