2011-05-16 13:12:07 +00:00
|
|
|
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(opengl32.dll opengl32.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-07-30 01:07:57 +00:00
|
|
|
add_definitions(
|
|
|
|
-D_GDI32_ # prevent gl* being declared __declspec(dllimport) in MS headers
|
|
|
|
-DBUILD_GL32 # declare gl* as __declspec(dllexport) in Mesa headers
|
|
|
|
)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
font.c
|
|
|
|
gl.c
|
|
|
|
opengl32.c
|
|
|
|
wgl.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/opengl32_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/opengl32.def)
|
|
|
|
|
2011-06-02 12:18:22 +00:00
|
|
|
add_library(opengl32 SHARED ${SOURCE})
|
2013-03-22 15:22:05 +00:00
|
|
|
target_link_libraries(opengl32 wine)
|
2011-09-03 19:11:44 +00:00
|
|
|
set_module_type(opengl32 win32dll UNICODE)
|
2013-03-22 15:22:05 +00:00
|
|
|
add_importlibs(opengl32 gdi32 user32 advapi32 msvcrt kernel32 ntdll)
|
2011-06-02 12:18:22 +00:00
|
|
|
add_pch(opengl32 opengl32.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET opengl32 DESTINATION reactos/system32 FOR all)
|