|
34 | 34 | [--ninja-jobs JOBS] [--gyp-generators GENERATORS] |
35 | 35 | [--gyp-msvs-version MSVS] |
36 | 36 | [--use-system-freetype USE_SYSTEM_FREETYPE] |
| 37 | + [--use-gtk3 USE_GTK3] |
37 | 38 | [--no-depot-tools-update NO_DEPOT_TOOLS_UPDATE] |
38 | 39 | automate.py (-h | --help) [type -h to show full description for options] |
39 | 40 |
|
|
64 | 65 | --gyp-generators=<gen> Set GYP_GENERATORS [default: ninja]. |
65 | 66 | --gyp-msvs-version=<v> Set GYP_MSVS_VERSION. |
66 | 67 | --use-system-freetype Use system Freetype library on Linux (Issue #402) |
| 68 | + --use-gtk3 Link CEF with GTK 3 libraries (Issue #446) |
67 | 69 | --no-depot-tools-update Do not update depot_tools/ directory. When |
68 | 70 | building old unsupported versions of Chromium |
69 | 71 | you want to manually checkout an old version |
@@ -111,6 +113,7 @@ class Options(object): |
111 | 113 | gyp_generators = "ninja" # Even though CEF uses now GN, still some GYP |
112 | 114 | gyp_msvs_version = "" # env variables are being used. |
113 | 115 | use_system_freetype = False |
| 116 | + use_gtk3 = False |
114 | 117 | no_depot_tools_update = False |
115 | 118 |
|
116 | 119 | # Internal options |
@@ -897,14 +900,18 @@ def getenv(): |
897 | 900 | env["CEF_USE_GN"] = "1" |
898 | 901 | # Issue #73 patch applied here with "use_allocator=none" |
899 | 902 | 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 | + |
901 | 908 | # To perform an official build set GYP_DEFINES=buildtype=Official. |
902 | 909 | # This will disable debugging code and enable additional link-time |
903 | 910 | # optimizations in Release builds. |
904 | 911 | if Options.release_build and not Options.fast_build: |
905 | 912 | env["GN_DEFINES"] += " is_official_build=true" |
906 | 913 |
|
907 | | - # Isssue #402 - Blurry font rendering on Linux |
| 914 | + # Blurry font rendering on Linux (Isssue #402) |
908 | 915 | if Options.use_system_freetype: |
909 | 916 | env["GN_DEFINES"] += " use_system_freetype=true" |
910 | 917 |
|
|
0 commit comments