2012-08-22 17:58:09 +00:00
|
|
|
|
2013-10-07 14:57:57 +00:00
|
|
|
include_directories(.)
|
2012-08-22 17:58:09 +00:00
|
|
|
|
2013-10-07 14:57:57 +00:00
|
|
|
# our DBG definitions conflict with mesa source code
|
|
|
|
remove_definitions(-DDBG=1 -DDBG=0)
|
2012-08-22 17:58:09 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-DWIN32
|
|
|
|
-D_WINDOWS
|
|
|
|
-D_DLL
|
2013-10-07 14:57:57 +00:00
|
|
|
-DFEATURE_GL=1
|
|
|
|
-D_GDI32_ # prevent gl* being declared __declspec(dllimport) in MS headers
|
|
|
|
-DBUILD_GL32 # declare gl* as __declspec(dllexport) in Mesa headers
|
|
|
|
-D_GLAPI_NO_EXPORTS # prevent _glapi_* from being declared __declspec(dllimport)
|
2012-08-22 17:58:09 +00:00
|
|
|
)
|
|
|
|
|
2013-10-07 14:57:57 +00:00
|
|
|
if(OPENGL32_USE_TLS)
|
|
|
|
add_definitions(-DOPENGL32_USE_TLS)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if((ARCH STREQUAL "i386") AND (NOT MSVC))
|
|
|
|
add_definitions(
|
|
|
|
-DUSE_X86_ASM
|
|
|
|
-DUSE_MMX_ASM
|
|
|
|
-DUSE_3DNOW_ASM
|
2014-10-17 23:28:29 +00:00
|
|
|
-DUSE_SSE_ASM)
|
2013-10-07 14:57:57 +00:00
|
|
|
add_subdirectory(x86)
|
|
|
|
endif()
|
2012-08-22 17:58:09 +00:00
|
|
|
|
2013-10-07 14:57:57 +00:00
|
|
|
add_subdirectory(drivers/common)
|
|
|
|
add_subdirectory(main)
|
|
|
|
add_subdirectory(math)
|
|
|
|
add_subdirectory(swrast)
|
|
|
|
add_subdirectory(swrast_setup)
|
|
|
|
add_subdirectory(tnl)
|
|
|
|
add_subdirectory(vbo)
|