3636 [--use-system-freetype USE_SYSTEM_FREETYPE]
3737 [--use-gtk3 USE_GTK3]
3838 [--use-ccache USE_CCACHE]
39+ [--proprietary-codecs PROPRIETARY_CODECS]
3940 [--no-depot-tools-update NO_DEPOT_TOOLS_UPDATE]
4041 automate.py (-h | --help) [type -h to show full description for options]
4142
7071 --use-system-freetype Use system Freetype library on Linux (Issue #402)
7172 --use-gtk3 Link CEF with GTK 3 libraries (Issue #446)
7273 --use-ccache Use ccache for faster (re)builds
74+ --proprietary-codecs Enable proprietary codecs such as H264 and AAC,
75+ licensing restrictions may apply.
7376 --no-depot-tools-update Do not update depot_tools/ directory. When
7477 building old unsupported versions of Chromium
7578 you want to manually checkout an old version
@@ -119,6 +122,7 @@ class Options(object):
119122 use_system_freetype = False
120123 use_gtk3 = False
121124 use_ccache = False
125+ proprietary_codecs = False
122126 no_depot_tools_update = False
123127
124128 # Internal options
@@ -913,6 +917,10 @@ def getenv():
913917 if Options .use_ccache :
914918 env ["GN_DEFINES" ] += " cc_wrapper=ccache"
915919
920+ # Enable proprietary codecs
921+ if Options .proprietary_codecs :
922+ env ["GN_DEFINES" ] += " proprietary_codecs=true ffmpeg_branding=Chrome"
923+
916924 # To perform an official build set GYP_DEFINES=buildtype=Official.
917925 # This will disable debugging code and enable additional link-time
918926 # optimizations in Release builds.
0 commit comments