Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2c99e06

Browse filesBrowse files
authored
Merge pull request cztomczak#475 from jakogut/proprietary-codecs
Add option --proprietary-codecs to enable non-free codecs
2 parents e63afc4 + e8979f2 commit 2c99e06
Copy full SHA for 2c99e06

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Collapse file

‎tools/automate.py‎

Copy file name to clipboardExpand all lines: tools/automate.py
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
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
@@ -70,6 +71,8 @@
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

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.