Commit cede870b authored by dalecurtis's avatar dalecurtis Committed by Commit bot

Fix proprietary codecs builds for GN.

BUG=none
TEST=mojo plays mp3s.

Review URL: https://codereview.chromium.org/664303002

Cr-Commit-Position: refs/heads/master@{#300738}
parent 4b256448
...@@ -27,8 +27,12 @@ config("media_config") { ...@@ -27,8 +27,12 @@ config("media_config") {
} }
config("media_dependent_config") { config("media_dependent_config") {
defines = []
if (!media_use_libvpx) { if (!media_use_libvpx) {
defines = [ "MEDIA_DISABLE_LIBVPX" ] defines += [ "MEDIA_DISABLE_LIBVPX" ]
}
if (proprietary_codecs) {
defines += [ "USE_PROPRIETARY_CODECS" ]
} }
if (is_win) { if (is_win) {
ldflags = [ ldflags = [
...@@ -375,6 +379,8 @@ component("media") { ...@@ -375,6 +379,8 @@ component("media") {
if (proprietary_codecs) { if (proprietary_codecs) {
sources += [ sources += [
"filters/h264_to_annex_b_bitstream_converter.cc",
"filters/h264_to_annex_b_bitstream_converter.h",
"formats/mp2t/es_adapter_video.cc", "formats/mp2t/es_adapter_video.cc",
"formats/mp2t/es_adapter_video.h", "formats/mp2t/es_adapter_video.h",
"formats/mp2t/es_parser.cc", "formats/mp2t/es_parser.cc",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment