* Sync to trunk r63845.
[reactos.git] / dll / opengl / mesa / CMakeLists.txt
1
2 include_directories(.)
3
4 # our DBG definitions conflict with mesa source code
5 remove_definitions(-DDBG=1 -DDBG=0)
6
7 add_definitions(
8 -DWIN32
9 -D_WINDOWS
10 -D_DLL
11 -DFEATURE_GL=1
12 -D_GDI32_ # prevent gl* being declared __declspec(dllimport) in MS headers
13 -DBUILD_GL32 # declare gl* as __declspec(dllexport) in Mesa headers
14 -D_GLAPI_NO_EXPORTS # prevent _glapi_* from being declared __declspec(dllimport)
15 )
16
17 if(OPENGL32_USE_TLS)
18 add_definitions(-DOPENGL32_USE_TLS)
19 endif()
20
21 if((ARCH STREQUAL "i386") AND (NOT MSVC))
22 add_definitions(
23 -DUSE_X86_ASM
24 -DUSE_MMX_ASM
25 -DUSE_3DNOW_ASM
26 -DUSE_SSE_ASM
27 )
28 add_subdirectory(x86)
29 endif()
30
31 add_subdirectory(drivers/common)
32 add_subdirectory(main)
33 add_subdirectory(math)
34 add_subdirectory(swrast)
35 add_subdirectory(swrast_setup)
36 add_subdirectory(tnl)
37 add_subdirectory(vbo)