1 2add_subdirectory(wine) 3 4add_definitions(-DLANGPACK) 5 6include_directories( 7 include 8 ${REACTOS_SOURCE_DIR}/win32ss/include) 9 10add_definitions(-DLANGPACK) 11spec2def(gdi32.dll gdi32.spec ADD_IMPORTLIB) 12 13if(ARCH STREQUAL "i386") 14 list(APPEND SOURCE objects/efloat.c) 15endif() 16 17list(APPEND SOURCE 18 main/dllmain.c 19 misc/heap.c 20 misc/gdientry.c 21 misc/historic.c 22 misc/misc.c 23 misc/wingl.c 24 objects/arc.c 25 objects/bitmap.c 26 objects/brush.c 27 objects/clientobj.c 28 objects/colorspace.c 29 objects/coord.c 30 objects/dc.c 31 objects/eng.c 32 objects/enhmfile.c 33 objects/font.c 34 objects/gdiobj.c 35 objects/icm.c 36 objects/linedda.c 37 objects/metafile.c 38 objects/painting.c 39 objects/printdrv.c 40 objects/palette.c 41 objects/pen.c 42 objects/region.c 43 objects/text.c 44 objects/utils.c 45 objects/path.c 46 include/precomp.h) 47 48add_library(gdi32 MODULE 49 ${SOURCE} 50 gdi32.rc 51 ${CMAKE_CURRENT_BINARY_DIR}/gdi32.def) 52 53set_module_type(gdi32 win32dll UNICODE ENTRYPOINT DllMain 12) 54 55target_link_libraries(gdi32 56 winegdi 57 wine 58 win32ksys 59 dxguid 60 atan2 61 ${PSEH_LIB}) 62 63if(MSVC AND (ARCH STREQUAL "i386")) 64 target_sources(gdi32 PRIVATE $<TARGET_OBJECTS:ftol2_sse>) 65endif() 66 67add_importlibs(gdi32 user32 advapi32 kernel32 ntdll) 68add_pch(gdi32 include/precomp.h SOURCE) 69add_dependencies(gdi32 psdk) 70add_cd_file(TARGET gdi32 DESTINATION reactos/system32 FOR all) 71