Skip to content

Commit fbbe317

Browse files
committed
[emscripten] libgraphics: Permit harfbuzz text rendering on non-Android
1 parent 2acb023 commit fbbe317

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

libgraphics/libgraphics.gyp

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
'src/legacyblendmodes.cpp',
3535
'src/legacygradients.cpp',
3636
'src/lnxtext.cpp',
37-
'src/mblandroidtext.cpp',
37+
'src/harfbuzztext.cpp',
38+
'src/hb-sk.cpp',
3839
'src/mbliphonetext.mm',
3940
#'src/osxtext.cpp', # UNUSED?
4041
'src/path.cpp',
@@ -56,19 +57,24 @@
5657
},
5758
],
5859
[
59-
'OS == "android"',
60+
'OS != "android" and OS != "emscripten"',
61+
{
62+
'sources!':
63+
[
64+
'src/harfbuzztext.cpp',
65+
'src/hb-sk.cpp',
66+
],
67+
},
68+
],
69+
[
70+
'OS == "android" or OS == "emscripten"',
6071
{
6172
'dependencies':
6273
[
6374
'../prebuilt/libicu.gyp:libicu',
6475
'../thirdparty/libfreetype/libfreetype.gyp:libfreetype',
6576
'../thirdparty/libharfbuzz/libharfbuzz.gyp:libharfbuzz',
6677
],
67-
68-
'sources':
69-
[
70-
'src/hb-sk.cpp',
71-
],
7278
},
7379
],
7480
],

0 commit comments

Comments
 (0)