umk: Fixed to compile in macos

git-svn-id: svn://ultimatepp.org/upp/trunk@12983 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-04-10 21:50:06 +00:00
parent 682694c0ea
commit 6b41e4e761
2 changed files with 38 additions and 0 deletions

37
uppsrc/umk/MacOs.cpp Normal file
View file

@ -0,0 +1,37 @@
#include "umake.h"
#include <Draw/Draw.h>
#ifdef PLATFORM_COCOA
namespace Upp { // Silence linker errors
CommonFontInfo GetFontInfoSys(Font font)
{
CommonFontInfo fi;
return fi;
}
GlyphInfo GetGlyphInfoSys(Font font, int chr)
{
GlyphInfo gi;
return gi;
}
Vector<FaceInfo> GetAllFacesSys()
{
Vector<FaceInfo> r;
return r;
}
String GetFontDataSys(Font font)
{
return String();
}
void RenderCharacterSys(FontGlyphConsumer& sw, double x, double y, int chr, Font font)
{
}
};
#endif

View file

@ -4,6 +4,7 @@ uses
ide\Builders;
file
MacOs.cpp,
umake.h,
Console.cpp,
IdeContext.cpp,