mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-28 17:16:29 +03:00
Fix macOS cross build.
This commit is contained in:
@@ -22,7 +22,7 @@ done
|
||||
|
||||
RESOURCES_PATH="ecode.app/Contents/Resources"
|
||||
|
||||
premake5 --file=../../../premake5.lua --use-frameworks gmake || exit
|
||||
premake5 --file=../../../premake5.lua --disable-static-build --with-text-shaper --use-frameworks gmake || exit
|
||||
|
||||
make -C ../../../make/macosx/ -j$(sysctl -n hw.ncpu) -e verbose=true -e config=release_x86_64 ecode || exit
|
||||
rm -rf ./ecode.app
|
||||
|
||||
@@ -84,7 +84,6 @@ shapeAndRun( const String& string, FontTrueType* font, Uint32 characterSize, Uin
|
||||
hb_buffer_destroy( hbBuffer );
|
||||
return completeRun;
|
||||
}
|
||||
#endif
|
||||
|
||||
// New helper function to identify scripts where our custom kerning is safe to apply.
|
||||
static inline bool isSimpleScript( hb_script_t script ) {
|
||||
@@ -93,6 +92,8 @@ static inline bool isSimpleScript( hb_script_t script ) {
|
||||
script == HB_SCRIPT_INVALID;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static inline bool canSkipShaping( Uint32 textDrawHints ) {
|
||||
return Text::TextShaperOptimizations && ( textDrawHints & TextHints::AllAscii ) != 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user