Skip to content

Commit cef0ca5

Browse files
committed
Add --use-system-freetype flag to automate.py (cztomczak#402)
1 parent 2bf1758 commit cef0ca5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/automate.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
[--build-dir BUILD_DIR] [--cef-build-dir CEF_BUILD_DIR]
3434
[--ninja-jobs JOBS] [--gyp-generators GENERATORS]
3535
[--gyp-msvs-version MSVS]
36+
[--use-system-freetype USE_SYSTEM_FREETYPE]
3637
automate.py (-h | --help) [type -h to show full description for options]
3738
3839
Options:
@@ -61,6 +62,7 @@
6162
By default set to cpu_count / 2.
6263
--gyp-generators=<gen> Set GYP_GENERATORS [default: ninja].
6364
--gyp-msvs-version=<v> Set GYP_MSVS_VERSION.
65+
--use-system-freetype Use system Freetype library on Linux (Issue #402)
6466
6567
"""
6668

@@ -103,6 +105,7 @@ class Options(object):
103105
ninja_jobs = None
104106
gyp_generators = "ninja" # Even though CEF uses now GN, still some GYP
105107
gyp_msvs_version = "" # env variables are being used.
108+
use_system_freetype = False
106109

107110
# Internal options
108111
depot_tools_dir = ""
@@ -878,6 +881,10 @@ def getenv():
878881
if Options.release_build and not Options.fast_build:
879882
env["GN_DEFINES"] += " is_official_build=true"
880883

884+
# Isssue #402 - Blurry font rendering on Linux
885+
if Options.use_system_freetype:
886+
env["GN_DEFINES"] += " use_system_freetype=true"
887+
881888
# GYP configuration is DEPRECATED, however it is still set in
882889
# upstream Linux configuration on AutomatedBuildSetup wiki page,
883890
# so setting it here as well.

0 commit comments

Comments
 (0)