2 # we link against C++ static libs
6 ../../state_trackers/wgl
10 add_definitions(-DWIN32_LEAN_AND_MEAN)
15 # We don't need a specfile here, as opengl application link against opengl32
16 # and gallium is kind enough to provide good def files for both MSVC/mingw-w64 and mingw32
17 if(MSVC OR (ARCH MATCHES amd64))
18 list(APPEND SOURCE ../../state_trackers/wgl/opengl32.def)
20 list(APPEND SOURCE ../../state_trackers/wgl/opengl32.mingw.def)
23 add_library(mesa32 SHARED ${SOURCE})
25 target_link_libraries(mesa32
35 set_module_type(mesa32 win32dll)
37 add_importlibs(mesa32 gdi32 user32 msvcrt ws2_32 kernel32 ntdll)
40 target_link_libraries(mesa32 oldnames)
43 add_dependencies(mesa32 psdk)
44 add_cd_file(TARGET mesa32 DESTINATION reactos/system32 FOR all)