From: Amine Khaldi Date: Fri, 13 Aug 2010 16:27:15 +0000 (+0000) Subject: [CMAKE] X-Git-Tag: backups/GSoC_2011/GSoC_Themes@51550~910 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=ad7164ff5b1a7039e609ae7f6b4d52d35ecf35d4;hp=57738417d5b61945b8c85378e3f762e6d5a3fee1 [CMAKE] - Add an MSVC compatible definition file for gdi32. - Temporarily add the gdi32 import library (until RosBE ships with one). - Add gdi32 to build. svn path=/branches/cmake-bringup/; revision=48533 --- diff --git a/dll/win32/gdi32/CMakeLists.txt b/dll/win32/gdi32/CMakeLists.txt new file mode 100644 index 00000000000..a0be8001c58 --- /dev/null +++ b/dll/win32/gdi32/CMakeLists.txt @@ -0,0 +1,30 @@ + +set(CMAKE_C_CREATE_SHARED_LIBRARY " -o ") + +add_definitions(-DUNICODE -D_UNICODE) +add_definitions(-D_DLL -D__USE_CRTIMP) +add_definitions(-DLANGPACK) + +include_directories(include) + +file(GLOB_RECURSE SOURCE *.c) + +add_library(gdi32 SHARED + ${SOURCE} + ${CMAKE_CURRENT_SOURCE_DIR}/gdi32.rc + ${CMAKE_CURRENT_BINARY_DIR}/gdi32_precomp.h.gch) + +set_target_properties(gdi32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12") + +target_link_libraries(gdi32 + ${CMAKE_CURRENT_SOURCE_DIR}/gdi32.def + ${REACTOS_SOURCE_DIR}/dll/win32/user32/libuser32.a + ${REACTOS_SOURCE_DIR}/dll/win32/advapi32/libadvapi32.a + win32ksys + dxguid + pseh + ${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a + ${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a) + +add_pch(gdi32 ${CMAKE_CURRENT_SOURCE_DIR}/include/precomp.h ${SOURCE}) +add_dependencies(gdi32 psdk) diff --git a/dll/win32/gdi32/gdi32.def b/dll/win32/gdi32/gdi32.def new file mode 100644 index 00000000000..85569a9ca8e --- /dev/null +++ b/dll/win32/gdi32/gdi32.def @@ -0,0 +1,614 @@ + +LIBRARY gdi32.dll + +EXPORTS + AbortDoc + AbortPath + AddFontMemResourceEx + AddFontResourceA + AddFontResourceExA + AddFontResourceExW + AddFontResourceTracking + AddFontResourceW + AngleArc + AnimatePalette + AnyLinkedFonts=NtGdiAnyLinkedFonts + Arc + ArcTo + BRUSHOBJ_hGetColorTransform=NtGdiBRUSHOBJ_hGetColorTransform + BRUSHOBJ_pvAllocRbrush=NtGdiBRUSHOBJ_pvAllocRbrush + BRUSHOBJ_pvGetRbrush=NtGdiBRUSHOBJ_pvGetRbrush + BRUSHOBJ_ulGetBrushColor=NtGdiBRUSHOBJ_ulGetBrushColor + BeginPath + BitBlt + CLIPOBJ_bEnum=NtGdiCLIPOBJ_bEnum + CLIPOBJ_cEnumStart=NtGdiCLIPOBJ_cEnumStart + CLIPOBJ_ppoGetPath=NtGdiCLIPOBJ_ppoGetPath + CancelDC + CheckColorsInGamut + ChoosePixelFormat + Chord + ClearBitmapAttributes + ClearBrushAttributes + CloseEnhMetaFile + CloseFigure + CloseMetaFile + ColorCorrectPalette + ColorMatchToTarget + CombineRgn + CombineTransform=NtGdiCombineTransform + CopyEnhMetaFileA + CopyEnhMetaFileW + CopyMetaFileA + CopyMetaFileW + CreateBitmap + CreateBitmapIndirect + CreateBrushIndirect + CreateColorSpaceA + CreateColorSpaceW + CreateCompatibleBitmap + CreateCompatibleDC + CreateDCA + CreateDCW + CreateDIBPatternBrush + CreateDIBPatternBrushPt + CreateDIBSection + CreateDIBitmap + CreateDiscardableBitmap + CreateEllipticRgn=NtGdiCreateEllipticRgn + CreateEllipticRgnIndirect + CreateEnhMetaFileA + CreateEnhMetaFileW + CreateFontA + CreateFontIndirectA + CreateFontIndirectExA + CreateFontIndirectExW + CreateFontIndirectW + CreateFontW + CreateHalftonePalette=NtGdiCreateHalftonePalette + CreateHatchBrush + CreateICA + CreateICW + CreateMetaFileA + CreateMetaFileW + CreatePalette + CreatePatternBrush + CreatePen + CreatePenIndirect + CreatePolyPolygonRgn + CreatePolygonRgn + CreateRectRgn + CreateRectRgnIndirect + CreateRoundRectRgn=NtGdiCreateRoundRectRgn + CreateScalableFontResourceA + CreateScalableFontResourceW + CreateSolidBrush + DPtoLP + DdEntry0=NtGdiDxgGenericThunk + DdEntry10=NtGdiDdBeginMoCompFrame + DdEntry11=NtGdiDdBlt + DdEntry12=NtGdiDdCanCreateSurface + DdEntry13=NtGdiDdCanCreateD3DBuffer + DdEntry14=NtGdiDdColorControl + DdEntry15=NtGdiDdCreateDirectDrawObject + DdEntry16=NtGdiDdCreateSurface + DdEntry17=NtGdiDdCreateD3DBuffer + DdEntry18=NtGdiDdCreateMoComp + DdEntry19=NtGdiDdCreateSurfaceObject + DdEntry1=NtGdiD3dContextCreate + DdEntry20=NtGdiDdDeleteDirectDrawObject + DdEntry21=NtGdiDdDeleteSurfaceObject + DdEntry22=NtGdiDdDestroyMoComp + DdEntry23=NtGdiDdDestroySurface + DdEntry24=NtGdiDdDestroyD3DBuffer + DdEntry25=NtGdiDdEndMoCompFrame + DdEntry26=NtGdiDdFlip + DdEntry27=NtGdiDdFlipToGDISurface + DdEntry28=NtGdiDdGetAvailDriverMemory + DdEntry29=NtGdiDdGetBltStatus + DdEntry2=NtGdiD3dContextDestroy + DdEntry30=NtGdiDdGetDC + DdEntry31=NtGdiDdGetDriverInfo + DdEntry32=NtGdiDdGetDxHandle + DdEntry33=NtGdiDdGetFlipStatus + DdEntry34=NtGdiDdGetInternalMoCompInfo + DdEntry35=NtGdiDdGetMoCompBuffInfo + DdEntry36=NtGdiDdGetMoCompGuids + DdEntry37=NtGdiDdGetMoCompFormats + DdEntry38=NtGdiDdGetScanLine + DdEntry39=NtGdiDdLock + DdEntry3=NtGdiD3dContextDestroyAll + DdEntry40=NtGdiDdLockD3D + DdEntry41=NtGdiDdQueryDirectDrawObject + DdEntry42=NtGdiDdQueryMoCompStatus + DdEntry43=NtGdiDdReenableDirectDrawObject + DdEntry44=NtGdiDdReleaseDC + DdEntry45=NtGdiDdRenderMoComp + DdEntry46=NtGdiDdResetVisrgn + DdEntry47=NtGdiDdSetColorKey + DdEntry48=NtGdiDdSetExclusiveMode + DdEntry49=NtGdiDdSetGammaRamp + DdEntry4=NtGdiD3dValidateTextureStageState + DdEntry50=NtGdiDdCreateSurfaceEx + DdEntry51=NtGdiDdSetOverlayPosition + DdEntry52=NtGdiDdUnattachSurface + DdEntry53=NtGdiDdUnlock + DdEntry54=NtGdiDdUnlockD3D + DdEntry55=NtGdiDdUpdateOverlay + DdEntry56=NtGdiDdWaitForVerticalBlank + DdEntry5=NtGdiD3dDrawPrimitives2 + DdEntry6=NtGdiDdGetDriverState + DdEntry7=NtGdiDdAddAttachedSurface + DdEntry8=NtGdiDdAlphaBlt + DdEntry9=NtGdiDdAttachSurface + DeleteColorSpace=NtGdiDeleteColorSpace + DeleteDC + DeleteEnhMetaFile + DeleteMetaFile + DeleteObject + DescribePixelFormat + DeviceCapabilitiesExA + DeviceCapabilitiesExW + DrawEscape + Ellipse + EnableEUDC=NtGdiEnableEudc + EndDoc + EndFormPage + EndPage + EndPath + EngAcquireSemaphore + EngAlphaBlend=NtGdiEngAlphaBlend + EngAssociateSurface=NtGdiEngAssociateSurface + EngBitBlt=NtGdiEngBitBlt + EngCheckAbort=NtGdiEngCheckAbort + EngComputeGlyphSet + EngCopyBits=NtGdiEngCopyBits + EngCreateBitmap=NtGdiEngCreateBitmap + EngCreateClip=NtGdiEngCreateClip + EngCreateDeviceBitmap=NtGdiEngCreateDeviceBitmap + EngCreateDeviceSurface=NtGdiEngCreateDeviceSurface + EngCreatePalette=NtGdiEngCreatePalette + EngCreateSemaphore + EngDeleteClip=NtGdiEngDeleteClip + EngDeletePalette=NtGdiEngDeletePalette + EngDeletePath=NtGdiEngDeletePath + EngDeleteSemaphore + EngDeleteSurface=NtGdiEngDeleteSurface + EngEraseSurface=NtGdiEngEraseSurface + EngFillPath=NtGdiEngFillPath + EngFindResource + EngFreeModule + EngGetCurrentCodePage + EngGetDriverName + EngGetPrinterDataFileName + EngGradientFill=NtGdiEngGradientFill + EngLineTo=NtGdiEngLineTo + EngLoadModule + EngLockSurface=NtGdiEngLockSurface + EngMarkBandingSurface=NtGdiEngMarkBandingSurface + EngMultiByteToUnicodeN=RtlMultiByteToUnicodeN + EngMultiByteToWideChar + EngPaint=NtGdiEngPaint + EngPlgBlt=NtGdiEngPlgBlt + EngQueryEMFInfo + EngQueryLocalTime + EngReleaseSemaphore + EngStretchBlt=NtGdiEngStretchBlt + EngStretchBltROP=NtGdiEngStretchBltROP + EngStrokeAndFillPath=NtGdiEngStrokeAndFillPath + EngStrokePath=NtGdiEngStrokePath + EngTextOut=NtGdiEngTextOut + EngTransparentBlt=NtGdiEngTransparentBlt + EngUnicodeToMultiByteN=RtlUnicodeToMultiByteN + EngUnlockSurface=NtGdiEngUnlockSurface + EngWideCharToMultiByte + EnumEnhMetaFile + EnumFontFamiliesA + EnumFontFamiliesExA + EnumFontFamiliesExW + EnumFontFamiliesW + EnumFontsA + EnumFontsW + EnumICMProfilesA + EnumICMProfilesW + EnumMetaFile + EnumObjects + EqualRgn=NtGdiEqualRgn + Escape + EudcLoadLinkW + EudcUnloadLinkW + ExcludeClipRect + ExtCreatePen + ExtCreateRegion + ExtEscape + ExtFloodFill + ExtSelectClipRgn + ExtTextOutA + ExtTextOutW + FONTOBJ_cGetAllGlyphHandles=NtGdiFONTOBJ_cGetAllGlyphHandles + FONTOBJ_cGetGlyphs=NtGdiFONTOBJ_cGetGlyphs + FONTOBJ_pQueryGlyphAttrs=NtGdiFONTOBJ_pQueryGlyphAttrs + FONTOBJ_pfdg=NtGdiFONTOBJ_pfdg + FONTOBJ_pifi=NtGdiFONTOBJ_pifi + FONTOBJ_pvTrueTypeFontFile=NtGdiFONTOBJ_pvTrueTypeFontFile + FONTOBJ_pxoGetXform=NtGdiFONTOBJ_pxoGetXform + FONTOBJ_vGetInfo=NtGdiFONTOBJ_vGetInfo + FillPath + FillRgn + FixBrushOrgEx + FlattenPath + FloodFill + FontIsLinked=NtGdiFontIsLinked + FrameRgn + GdiAddFontResourceW + GdiAddGlsBounds + GdiAddGlsRecord + GdiAlphaBlend + GdiArtificialDecrementDriver + GdiCleanCacheDC + GdiComment + GdiConsoleTextOut=NtGdiConsoleTextOut + GdiConvertAndCheckDC + GdiConvertBitmap + GdiConvertBitmapV5 + GdiConvertBrush + GdiConvertDC + GdiConvertEnhMetaFile + GdiConvertFont + GdiConvertMetaFilePict + GdiConvertPalette + GdiConvertRegion + GdiConvertToDevmodeW + GdiCreateLocalEnhMetaFile + GdiCreateLocalMetaFilePict + GdiDeleteLocalDC + GdiDeleteSpoolFileHandle + GdiDescribePixelFormat=NtGdiDescribePixelFormat + GdiDllInitialize + GdiDrawStream + GdiEndDocEMF + GdiEndPageEMF + GdiEntry10 + GdiEntry11 + GdiEntry12 + GdiEntry13 + GdiEntry14 + GdiEntry15 + GdiEntry16 + GdiEntry1 + GdiEntry2 + GdiEntry3 + GdiEntry4 + GdiEntry5 + GdiEntry6 + GdiEntry7 + GdiEntry8 + GdiEntry9 + GdiFixUpHandle + GdiFlush + GdiFullscreenControl=NtGdiFullscreenControl + GdiGetBatchLimit + GdiGetBitmapBitsSize + GdiGetCharDimensions + GdiGetCodePage + GdiGetDC + GdiGetDevmodeForPage + GdiGetLocalBrush + GdiGetLocalDC + GdiGetLocalFont + GdiGetPageCount + GdiGetPageHandle + GdiGetSpoolFileHandle + GdiGetSpoolMessage=NtGdiGetSpoolMessage + GdiGradientFill + GdiInitSpool=NtGdiInitSpool + GdiInitializeLanguagePack + GdiIsMetaFileDC + GdiIsMetaPrintDC + GdiIsPlayMetafileDC + GdiPlayDCScript + GdiPlayEMF + GdiPlayJournal + GdiPlayPageEMF + GdiPlayPrivatePageEMF + GdiPlayScript + GdiPrinterThunk + GdiProcessSetup + GdiQueryFonts=NtGdiQueryFonts + GdiQueryTable + GdiRealizationInfo + GdiReleaseDC + GdiReleaseLocalDC + GdiResetDCEMF + GdiSetAttrs + GdiSetBatchLimit + GdiSetLastError + GdiSetPixelFormat=NtGdiSetPixelFormat + GdiSetServerAttr + GdiStartDocEMF + GdiStartPageEMF + GdiSwapBuffers=NtGdiSwapBuffers + GdiTransparentBlt + GdiValidateHandle + GetArcDirection + GetAspectRatioFilterEx + GetBitmapAttributes + GetBitmapBits=NtGdiGetBitmapBits + GetBitmapDimensionEx=NtGdiGetBitmapDimension + GetBkColor + GetBkMode + GetBoundsRect + GetBrushAttributes + GetBrushOrgEx + GetCharABCWidthsA + GetCharABCWidthsFloatA + GetCharABCWidthsFloatW + GetCharABCWidthsI + GetCharABCWidthsW + GetCharWidth32A + GetCharWidth32W + GetCharWidthA=GetCharWidth32A + GetCharWidthFloatA + GetCharWidthFloatW + GetCharWidthI + GetCharWidthInfo=NtGdiGetCharWidthInfo + GetCharWidthW + GetCharacterPlacementA + GetCharacterPlacementW + GetClipBox + GetClipRgn + GetColorAdjustment=NtGdiGetColorAdjustment + GetColorSpace + GetCurrentObject + GetCurrentPositionEx + GetDCBrushColor + GetDCOrgEx + GetDCPenColor + GetDIBColorTable + GetDIBits + GetDeviceCaps + GetDeviceGammaRamp + GetETM + GetEUDCTimeStamp + GetEUDCTimeStampExW + GetEnhMetaFileA + GetEnhMetaFileBits + GetEnhMetaFileDescriptionA + GetEnhMetaFileDescriptionW + GetEnhMetaFileHeader + GetEnhMetaFilePaletteEntries + GetEnhMetaFilePixelFormat + GetEnhMetaFileW + GetFontAssocStatus + GetFontData + GetFontLanguageInfo + GetFontResourceInfoW + GetFontUnicodeRanges=NtGdiGetFontUnicodeRanges + GetGlyphIndicesA + GetGlyphIndicesW=NtGdiGetGlyphIndicesW + GetGlyphOutline=GetGlyphOutlineA + GetGlyphOutlineA + GetGlyphOutlineW + GetGlyphOutlineWow + GetGraphicsMode + GetHFONT + GetICMProfileA + GetICMProfileW + GetKerningPairs=GetKerningPairsA + GetKerningPairsA + GetKerningPairsW + GetLayout + GetLogColorSpaceA + GetLogColorSpaceW + GetMapMode + GetMetaFileA + GetMetaFileBitsEx + GetMetaFileW + GetMetaRgn + GetMiterLimit=NtGdiGetMiterLimit + GetNearestColor=NtGdiGetNearestColor + GetNearestPaletteIndex=NtGdiGetNearestPaletteIndex + GetObjectA + GetObjectType + GetObjectW + GetOutlineTextMetricsA + GetOutlineTextMetricsW + GetPaletteEntries + GetPath + GetPixel + GetPixelFormat + GetPolyFillMode + GetROP2 + GetRandomRgn=NtGdiGetRandomRgn + GetRasterizerCaps=NtGdiGetRasterizerCaps + GetRegionData + GetRelAbs + GetRgnBox + GetStockObject + GetStretchBltMode + GetStringBitmapA + GetStringBitmapW + GetSystemPaletteEntries + GetSystemPaletteUse=NtGdiGetSystemPaletteUse + GetTextAlign + GetTextCharacterExtra + GetTextCharset + GetTextCharsetInfo=NtGdiGetTextCharsetInfo + GetTextColor + GetTextExtentExPointA + GetTextExtentExPointI + GetTextExtentExPointW + GetTextExtentExPointWPri + GetTextExtentPoint32A + GetTextExtentPoint32W + GetTextExtentPointA + GetTextExtentPointI + GetTextExtentPointW + GetTextFaceA + GetTextFaceAliasW + GetTextFaceW + GetTextMetricsA + GetTextMetricsW + GetTransform=NtGdiGetTransform + GetViewportExtEx + GetViewportOrgEx + GetWinMetaFileBits + GetWindowExtEx + GetWindowOrgEx + GetWorldTransform + HT_Get8BPPFormatPalette=NtGdiHT_Get8BPPFormatPalette + HT_Get8BPPMaskPalette=NtGdiHT_Get8BPPMaskPalette + IntersectClipRect + InvertRgn + IsValidEnhMetaRecord + IsValidEnhMetaRecordOffExt + LPtoDP + LineDDA + LineTo + MaskBlt + MirrorRgn + ModifyWorldTransform + MoveToEx + NamedEscape + OffsetClipRgn + OffsetRgn + OffsetViewportOrgEx + OffsetWindowOrgEx + PATHOBJ_bEnum=NtGdiPATHOBJ_bEnum + PATHOBJ_bEnumClipLines=NtGdiPATHOBJ_bEnumClipLines + PATHOBJ_vEnumStart=NtGdiPATHOBJ_vEnumStart + PATHOBJ_vEnumStartClipLines=NtGdiPATHOBJ_vEnumStartClipLines + PATHOBJ_vGetBounds=NtGdiPATHOBJ_vGetBounds + PaintRgn + PatBlt + PathToRegion + Pie + PlayEnhMetaFile + PlayEnhMetaFileRecord + PlayMetaFile + PlayMetaFileRecord + PlgBlt + PolyBezier + PolyBezierTo + PolyDraw + PolyPatBlt + PolyPolygon + PolyPolyline + PolyTextOutA + PolyTextOutW + Polygon + Polyline + PolylineTo + PtInRegion + PtVisible=NtGdiPtVisible + QueryFontAssocStatus + RealizePalette + RectInRegion + RectVisible=NtGdiRectVisible + Rectangle + RemoveFontMemResourceEx + RemoveFontResourceA + RemoveFontResourceExA + RemoveFontResourceExW + RemoveFontResourceTracking + RemoveFontResourceW + ResetDCA + ResetDCW + ResizePalette + RestoreDC + RoundRect + STROBJ_bEnum=NtGdiSTROBJ_bEnum + STROBJ_bEnumPositionsOnly=NtGdiSTROBJ_bEnumPositionsOnly + STROBJ_bGetAdvanceWidths=NtGdiSTROBJ_bGetAdvanceWidths + STROBJ_dwGetCodePage=NtGdiSTROBJ_dwGetCodePage + STROBJ_vEnumStart=NtGdiSTROBJ_vEnumStart + SaveDC + ScaleViewportExtEx + ScaleWindowExtEx + SelectBrushLocal + SelectClipPath + SelectClipRgn + SelectFontLocal + SelectObject + SelectPalette + SetAbortProc + SetArcDirection + SetBitmapAttributes + SetBitmapBits=NtGdiSetBitmapBits + SetBitmapDimensionEx=NtGdiSetBitmapDimension + SetBkColor + SetBkMode + SetBoundsRect + SetBrushAttributes + SetBrushOrgEx + SetColorAdjustment + SetColorSpace + SetDCBrushColor + SetDCPenColor + SetDIBColorTable + SetDIBits + SetDIBitsToDevice + SetDeviceGammaRamp + SetEnhMetaFileBits + SetFontEnumeration=NtGdiSetFontEnumeration + SetGraphicsMode + SetICMMode + SetICMProfileA + SetICMProfileW + SetLayout + SetLayoutWidth + SetMagicColors=NtGdiSetMagicColors + SetMapMode + SetMapperFlags + SetMetaFileBitsEx + SetMetaRgn + SetMiterLimit + SetPaletteEntries + SetPixel + SetPixelFormat + SetPixelV + SetPolyFillMode + SetROP2 + SetRectRgn + SetRelAbs + SetStretchBltMode + SetSystemPaletteUse=NtGdiSetSystemPaletteUse + SetTextAlign + SetTextCharacterExtra + SetTextColor + SetTextJustification + SetViewportExtEx + SetViewportOrgEx + SetVirtualResolution=NtGdiSetVirtualResolution + SetWinMetaFileBits + SetWindowExtEx + SetWindowOrgEx + SetWorldTransform + StartDocA + StartDocW + StartFormPage + StartPage + StretchBlt + StretchDIBits + StrokeAndFillPath + StrokePath + SwapBuffers + TextOutA + TextOutW + TranslateCharsetInfo + UnloadNetworkFonts + UnrealizeObject + UpdateColors + UpdateICMRegKeyA + UpdateICMRegKeyW + WidenPath + XFORMOBJ_bApplyXform=NtGdiXFORMOBJ_bApplyXform + XFORMOBJ_iGetXform=NtGdiXFORMOBJ_iGetXform + XLATEOBJ_cGetPalette=NtGdiXLATEOBJ_cGetPalette + XLATEOBJ_hGetColorTransform=NtGdiXLATEOBJ_hGetColorTransform + XLATEOBJ_iXlate=NtGdiXLATEOBJ_iXlate + XLATEOBJ_piVector + bInitSystemAndFontsDirectoriesW + bMakePathNameW + cGetTTFFromFOT + gdiPlaySpoolStream diff --git a/dll/win32/gdi32/libgdi32.a b/dll/win32/gdi32/libgdi32.a new file mode 100644 index 00000000000..4d658114f66 Binary files /dev/null and b/dll/win32/gdi32/libgdi32.a differ