cab575efb2d8550a76495c0de467e37115243c47
[reactos.git] / reactos / dll / opengl / mesa / src / gallium / targets / libgl-gdi / CMakeLists.txt
1
2 # we link against C++ static libs
3 set_cpp()
4
5 include_directories(
6 ../../state_trackers/wgl
7 ../../winsys/sw
8 )
9
10 add_definitions(-DWIN32_LEAN_AND_MEAN)
11
12 list(APPEND SOURCE
13 libgl_gdi.c)
14
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)
19 else()
20 list(APPEND SOURCE ../../state_trackers/wgl/opengl32.mingw.def)
21 endif()
22
23 add_library(mesa32 SHARED ${SOURCE})
24
25 target_link_libraries(mesa32
26 gallium_wgl
27 gallium_ws_gdi
28 mesa_glapi
29 mesa_core
30 gallium_softpipe
31 gallium_core
32 mesa_glsl
33 )
34
35 set_module_type(mesa32 win32dll)
36
37 add_importlibs(mesa32 gdi32 user32 msvcrt ws2_32 kernel32 ntdll)
38
39 if(MSVC)
40 target_link_libraries(mesa32 oldnames)
41 endif()
42
43 add_dependencies(mesa32 psdk)
44 add_cd_file(TARGET mesa32 DESTINATION reactos/system32 FOR all)
45