| 1 |
|
| 2 |
from misc.utility.scons_hints import * |
| 3 |
|
| 4 |
Import("env") |
| 5 |
Import("env_modules") |
| 6 |
|
| 7 |
freetype_enabled = "freetype" in env.module_list |
| 8 |
msdfgen_enabled = "msdfgen" in env.module_list |
| 9 |
|
| 10 |
env_text_server_fb = env_modules.Clone() |
| 11 |
|
| 12 |
if "svg" in env.module_list: |
| 13 |
env_text_server_fb.Prepend( |
| 14 |
CPPPATH=["#thirdparty/thorvg/inc", "#thirdparty/thorvg/src/common", "#thirdparty/thorvg/src/renderer"] |
| 15 |
) |
| 16 |
|
| 17 |
env_text_server_fb.Append(CPPDEFINES=["TVG_STATIC"]) |
| 18 |
|
| 19 |
if env["builtin_msdfgen"] and msdfgen_enabled: |
| 20 |
env_text_server_fb.Append(CPPDEFINES=[("MSDFGEN_PUBLIC", "")]) |
| 21 |
env_text_server_fb.Prepend(CPPPATH=["#thirdparty/msdfgen"]) |
| 22 |
|
| 23 |
if env["builtin_freetype"] and freetype_enabled: |
| 24 |
env_text_server_fb.Append(CPPDEFINES=["FT_CONFIG_OPTION_USE_BROTLI"]) |
| 25 |
env_text_server_fb.Prepend(CPPPATH=["#thirdparty/freetype/include"]) |
| 26 |
|
| 27 |
env_text_server_fb.add_source_files(env.modules_sources, "*.cpp") |