OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/module_args/mojo.gni") |
| 6 import("$mojo_sdk_root/mojo/public/mojo_sdk.gni") |
| 7 |
| 8 config("default_include_dirs") { |
| 9 include_dirs = [ |
| 10 "//", |
| 11 root_gen_dir, |
| 12 "//third_party/ffmpeg", |
| 13 ] |
| 14 |
| 15 # TODO(dalesat): Why is this needed? |
| 16 if (is_android) { |
| 17 include_dirs += |
| 18 [ "//third_party/ffmpeg/chromium/config/Chromium/android/arm" ] |
| 19 } |
| 20 } |
| 21 |
| 22 source_set("framework_ffmpeg") { |
| 23 sources = [ |
| 24 "ffmpeg_audio_decoder.cc", |
| 25 "ffmpeg_audio_decoder.h", |
| 26 "ffmpeg_decoder.cc", |
| 27 "ffmpeg_decoder.h", |
| 28 "ffmpeg_decoder_base.cc", |
| 29 "ffmpeg_decoder_base.h", |
| 30 "ffmpeg_demux.cc", |
| 31 "ffmpeg_demux.h", |
| 32 "ffmpeg_formatting.cc", |
| 33 "ffmpeg_formatting.h", |
| 34 "ffmpeg_init.cc", |
| 35 "ffmpeg_init.h", |
| 36 "ffmpeg_io.cc", |
| 37 "ffmpeg_io.h", |
| 38 "ffmpeg_type_converters.cc", |
| 39 "ffmpeg_type_converters.h", |
| 40 "ffmpeg_video_decoder.cc", |
| 41 "ffmpeg_video_decoder.h", |
| 42 ] |
| 43 |
| 44 deps = [ |
| 45 "//base", |
| 46 "//mojo/common", |
| 47 "//services/media/framework", |
| 48 "//third_party/ffmpeg", |
| 49 ] |
| 50 |
| 51 defines = [ |
| 52 "FF_API_PIX_FMT_DESC=0", |
| 53 "FF_API_OLD_DECODE_AUDIO=0", |
| 54 "FF_API_DESTRUCT_PACKET=0", |
| 55 "FF_API_GET_BUFFER=0", |
| 56 ] |
| 57 |
| 58 configs -= [ "//build/config/compiler:default_include_dirs" ] |
| 59 configs += [ ":default_include_dirs" ] |
| 60 } |
OLD | NEW |