Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: media/BUILD.gn

Issue 664303002: Fix proprietary codecs builds for GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//build/config/linux/pkg_config.gni") 8 import("//build/config/linux/pkg_config.gni")
9 import("//media/media_options.gni") 9 import("//media/media_options.gni")
10 10
11 # Common configuration for targets in the media directory. 11 # Common configuration for targets in the media directory.
12 # NOT for exporting. 12 # NOT for exporting.
13 config("media_config") { 13 config("media_config") {
14 defines = [ "MEDIA_IMPLEMENTATION" ] 14 defines = [ "MEDIA_IMPLEMENTATION" ]
15 if (cpu_arch == "arm" && arm_use_neon) { 15 if (cpu_arch == "arm" && arm_use_neon) {
16 defines += [ "USE_NEON" ] 16 defines += [ "USE_NEON" ]
17 } 17 }
18 if (use_pulseaudio) { 18 if (use_pulseaudio) {
19 defines += [ "USE_PULSEAUDIO" ] 19 defines += [ "USE_PULSEAUDIO" ]
20 if (!link_pulseaudio) { 20 if (!link_pulseaudio) {
21 defines += [ "DLOPEN_PULSEAUDIO" ] 21 defines += [ "DLOPEN_PULSEAUDIO" ]
22 } 22 }
23 } 23 }
24 if (use_cras) { 24 if (use_cras) {
25 defines += [ "USE_CRAS" ] 25 defines += [ "USE_CRAS" ]
26 } 26 }
27 } 27 }
28 28
29 config("media_dependent_config") { 29 config("media_dependent_config") {
30 defines = []
30 if (!media_use_libvpx) { 31 if (!media_use_libvpx) {
31 defines = [ "MEDIA_DISABLE_LIBVPX" ] 32 defines += [ "MEDIA_DISABLE_LIBVPX" ]
33 }
34 if (proprietary_codecs) {
35 defines += [ "USE_PROPRIETARY_CODECS" ]
32 } 36 }
33 if (is_win) { 37 if (is_win) {
34 ldflags = [ 38 ldflags = [
35 "/DELAYLOAD:mf.dll", 39 "/DELAYLOAD:mf.dll",
36 "/DELAYLOAD:mfplat.dll", 40 "/DELAYLOAD:mfplat.dll",
37 "/DELAYLOAD:mfreadwrite.dll", 41 "/DELAYLOAD:mfreadwrite.dll",
38 ] 42 ]
39 } 43 }
40 } 44 }
41 45
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 "mfuuid.lib", 372 "mfuuid.lib",
369 ] 373 ]
370 cflags += [ 374 cflags += [
371 "/wd4267" # TODO(wolenetz): Fix size_t to int trunctaion in win64. See 375 "/wd4267" # TODO(wolenetz): Fix size_t to int trunctaion in win64. See
372 # http://crbug.com/171009 376 # http://crbug.com/171009
373 ] 377 ]
374 } 378 }
375 379
376 if (proprietary_codecs) { 380 if (proprietary_codecs) {
377 sources += [ 381 sources += [
382 "filters/h264_to_annex_b_bitstream_converter.cc",
383 "filters/h264_to_annex_b_bitstream_converter.h",
378 "formats/mp2t/es_adapter_video.cc", 384 "formats/mp2t/es_adapter_video.cc",
379 "formats/mp2t/es_adapter_video.h", 385 "formats/mp2t/es_adapter_video.h",
380 "formats/mp2t/es_parser.cc", 386 "formats/mp2t/es_parser.cc",
381 "formats/mp2t/es_parser.h", 387 "formats/mp2t/es_parser.h",
382 "formats/mp2t/es_parser_adts.cc", 388 "formats/mp2t/es_parser_adts.cc",
383 "formats/mp2t/es_parser_adts.h", 389 "formats/mp2t/es_parser_adts.h",
384 "formats/mp2t/es_parser_h264.cc", 390 "formats/mp2t/es_parser_h264.cc",
385 "formats/mp2t/es_parser_h264.h", 391 "formats/mp2t/es_parser_h264.h",
386 "formats/mp2t/es_parser_mpeg1audio.cc", 392 "formats/mp2t/es_parser_mpeg1audio.cc",
387 "formats/mp2t/es_parser_mpeg1audio.h", 393 "formats/mp2t/es_parser_mpeg1audio.h",
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 deps = [ 768 deps = [
763 ":media", 769 ":media",
764 ":shared_memory_support", 770 ":shared_memory_support",
765 "//base", 771 "//base",
766 "//ui/gl", 772 "//ui/gl",
767 "//ui/gfx", 773 "//ui/gfx",
768 "//ui/gfx/geometry", 774 "//ui/gfx/geometry",
769 ] 775 ]
770 } 776 }
771 } 777 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698