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

Side by Side Diff: services/media/framework_ffmpeg/BUILD.gn

Issue 1814583002: Motown: New wrapper classes for ffmpeg format context and io context (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Tweaks based on feedback. Created 4 years, 9 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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/module_args/mojo.gni") 5 import("//build/module_args/mojo.gni")
6 import("$mojo_sdk_root/mojo/public/mojo_sdk.gni") 6 import("$mojo_sdk_root/mojo/public/mojo_sdk.gni")
7 7
8 config("default_include_dirs") { 8 config("default_include_dirs") {
9 include_dirs = [ 9 include_dirs = [
10 "//", 10 "//",
11 root_gen_dir, 11 root_gen_dir,
12 "//third_party/ffmpeg", 12 "//third_party/ffmpeg",
13 ] 13 ]
14 14
15 # TODO(dalesat): Why is this needed? 15 # TODO(dalesat): Why is this needed?
16 if (is_android) { 16 if (is_android) {
17 include_dirs += 17 include_dirs +=
18 [ "//third_party/ffmpeg/chromium/config/Chromium/android/arm" ] 18 [ "//third_party/ffmpeg/chromium/config/Chromium/android/arm" ]
19 } 19 }
20 } 20 }
21 21
22 source_set("framework_ffmpeg") { 22 source_set("framework_ffmpeg") {
23 sources = [ 23 sources = [
24 "av_codec_context.cc",
25 "av_codec_context.h",
26 "av_format_context.h",
24 "av_frame.h", 27 "av_frame.h",
28 "av_io_context.cc",
29 "av_io_context.h",
25 "av_packet.h", 30 "av_packet.h",
26 "ffmpeg_audio_decoder.cc", 31 "ffmpeg_audio_decoder.cc",
27 "ffmpeg_audio_decoder.h", 32 "ffmpeg_audio_decoder.h",
28 "ffmpeg_decoder.cc", 33 "ffmpeg_decoder.cc",
29 "ffmpeg_decoder.h", 34 "ffmpeg_decoder.h",
30 "ffmpeg_decoder_base.cc", 35 "ffmpeg_decoder_base.cc",
31 "ffmpeg_decoder_base.h", 36 "ffmpeg_decoder_base.h",
32 "ffmpeg_demux.cc", 37 "ffmpeg_demux.cc",
33 "ffmpeg_demux.h", 38 "ffmpeg_demux.h",
34 "ffmpeg_formatting.cc", 39 "ffmpeg_formatting.cc",
35 "ffmpeg_formatting.h", 40 "ffmpeg_formatting.h",
36 "ffmpeg_init.cc", 41 "ffmpeg_init.cc",
37 "ffmpeg_init.h", 42 "ffmpeg_init.h",
38 "ffmpeg_io.cc",
39 "ffmpeg_io.h",
40 "ffmpeg_type_converters.cc",
41 "ffmpeg_type_converters.h",
42 "ffmpeg_video_decoder.cc", 43 "ffmpeg_video_decoder.cc",
43 "ffmpeg_video_decoder.h", 44 "ffmpeg_video_decoder.h",
44 ] 45 ]
45 46
46 deps = [ 47 deps = [
47 "//base", 48 "//base",
48 "//mojo/common", 49 "//mojo/common",
49 "//services/media/framework", 50 "//services/media/framework",
50 "//third_party/ffmpeg", 51 "//third_party/ffmpeg",
51 ] 52 ]
52 53
53 defines = [ 54 defines = [
54 "FF_API_PIX_FMT_DESC=0", 55 "FF_API_PIX_FMT_DESC=0",
55 "FF_API_OLD_DECODE_AUDIO=0", 56 "FF_API_OLD_DECODE_AUDIO=0",
56 "FF_API_DESTRUCT_PACKET=0", 57 "FF_API_DESTRUCT_PACKET=0",
57 "FF_API_GET_BUFFER=0", 58 "FF_API_GET_BUFFER=0",
58 ] 59 ]
59 60
60 configs -= [ "//build/config/compiler:default_include_dirs" ] 61 configs -= [ "//build/config/compiler:default_include_dirs" ]
61 configs += [ ":default_include_dirs" ] 62 configs += [ ":default_include_dirs" ]
62 } 63 }
OLDNEW
« no previous file with comments | « services/media/framework/parts/reader.h ('k') | services/media/framework_ffmpeg/av_codec_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698