|
36 | 36 | [--use-system-freetype USE_SYSTEM_FREETYPE] |
37 | 37 | [--use-gtk3 USE_GTK3] |
38 | 38 | [--use-ccache USE_CCACHE] |
| 39 | + [--proprietary-codecs PROPRIETARY_CODECS] |
39 | 40 | [--no-depot-tools-update NO_DEPOT_TOOLS_UPDATE] |
40 | 41 | automate.py (-h | --help) [type -h to show full description for options] |
41 | 42 |
|
|
70 | 71 | --use-system-freetype Use system Freetype library on Linux (Issue #402) |
71 | 72 | --use-gtk3 Link CEF with GTK 3 libraries (Issue #446) |
72 | 73 | --use-ccache Use ccache for faster (re)builds |
| 74 | + --proprietary-codecs Enable proprietary codecs such as H264 and AAC, |
| 75 | + licensing restrictions may apply. |
73 | 76 | --no-depot-tools-update Do not update depot_tools/ directory. When |
74 | 77 | building old unsupported versions of Chromium |
75 | 78 | you want to manually checkout an old version |
@@ -119,6 +122,7 @@ class Options(object): |
119 | 122 | use_system_freetype = False |
120 | 123 | use_gtk3 = False |
121 | 124 | use_ccache = False |
| 125 | + proprietary_codecs = False |
122 | 126 | no_depot_tools_update = False |
123 | 127 |
|
124 | 128 | # Internal options |
@@ -913,6 +917,10 @@ def getenv(): |
913 | 917 | if Options.use_ccache: |
914 | 918 | env["GN_DEFINES"] += " cc_wrapper=ccache" |
915 | 919 |
|
| 920 | + # Enable proprietary codecs |
| 921 | + if Options.proprietary_codecs: |
| 922 | + env["GN_DEFINES"] += " proprietary_codecs=true ffmpeg_branding=Chrome" |
| 923 | + |
916 | 924 | # To perform an official build set GYP_DEFINES=buildtype=Official. |
917 | 925 | # This will disable debugging code and enable additional link-time |
918 | 926 | # optimizations in Release builds. |
|
0 commit comments