Skip to content

Commit 5bf5d19

Browse files
committed
Add --use-gtk3 flag to automate.py (cztomczak#446)
1 parent bff458e commit 5bf5d19

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

tools/automate.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
[--ninja-jobs JOBS] [--gyp-generators GENERATORS]
3535
[--gyp-msvs-version MSVS]
3636
[--use-system-freetype USE_SYSTEM_FREETYPE]
37+
[--use-gtk3 USE_GTK3]
3738
[--no-depot-tools-update NO_DEPOT_TOOLS_UPDATE]
3839
automate.py (-h | --help) [type -h to show full description for options]
3940
@@ -64,6 +65,7 @@
6465
--gyp-generators=<gen> Set GYP_GENERATORS [default: ninja].
6566
--gyp-msvs-version=<v> Set GYP_MSVS_VERSION.
6667
--use-system-freetype Use system Freetype library on Linux (Issue #402)
68+
--use-gtk3 Link CEF with GTK 3 libraries (Issue #446)
6769
--no-depot-tools-update Do not update depot_tools/ directory. When
6870
building old unsupported versions of Chromium
6971
you want to manually checkout an old version
@@ -111,6 +113,7 @@ class Options(object):
111113
gyp_generators = "ninja" # Even though CEF uses now GN, still some GYP
112114
gyp_msvs_version = "" # env variables are being used.
113115
use_system_freetype = False
116+
use_gtk3 = False
114117
no_depot_tools_update = False
115118

116119
# Internal options
@@ -897,14 +900,18 @@ def getenv():
897900
env["CEF_USE_GN"] = "1"
898901
# Issue #73 patch applied here with "use_allocator=none"
899902
env["GN_DEFINES"] = "use_sysroot=true use_allocator=none symbol_level=1"
900-
# env["GN_DEFINES"] += " use_gtk3=false"
903+
904+
# Link with GTK 3 (Issue #446)
905+
if Options.use_gtk3:
906+
env["GN_DEFINES"] += " use_gtk3=true"
907+
901908
# To perform an official build set GYP_DEFINES=buildtype=Official.
902909
# This will disable debugging code and enable additional link-time
903910
# optimizations in Release builds.
904911
if Options.release_build and not Options.fast_build:
905912
env["GN_DEFINES"] += " is_official_build=true"
906913

907-
# Isssue #402 - Blurry font rendering on Linux
914+
# Blurry font rendering on Linux (Isssue #402)
908915
if Options.use_system_freetype:
909916
env["GN_DEFINES"] += " use_system_freetype=true"
910917

0 commit comments

Comments
 (0)