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