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

Unified Diff: services/media/framework_ffmpeg/BUILD.gn

Issue 1686363002: Motown: ffmpeg implementations of framework 'parts' (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Changed the way AVBuffer allocation/deallocation is done in the ffmpeg audio decoder. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: services/media/framework_ffmpeg/BUILD.gn
diff --git a/services/media/framework_ffmpeg/BUILD.gn b/services/media/framework_ffmpeg/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..8934bc5295e0afb44fed56d0f50b82066ede2c8e
--- /dev/null
+++ b/services/media/framework_ffmpeg/BUILD.gn
@@ -0,0 +1,60 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/module_args/mojo.gni")
+import("$mojo_sdk_root/mojo/public/mojo_sdk.gni")
+
+config("default_include_dirs") {
+ include_dirs = [
+ "//",
+ root_gen_dir,
+ "//third_party/ffmpeg",
+ ]
+
+ # TODO(dalesat): Why is this needed?
+ if (is_android) {
+ include_dirs +=
+ [ "//third_party/ffmpeg/chromium/config/Chromium/android/arm" ]
+ }
+}
+
+source_set("framework_ffmpeg") {
+ sources = [
+ "ffmpeg_audio_decoder.cc",
+ "ffmpeg_audio_decoder.h",
+ "ffmpeg_decoder.cc",
+ "ffmpeg_decoder.h",
+ "ffmpeg_decoder_base.cc",
+ "ffmpeg_decoder_base.h",
+ "ffmpeg_demux.cc",
+ "ffmpeg_demux.h",
+ "ffmpeg_formatting.cc",
+ "ffmpeg_formatting.h",
+ "ffmpeg_init.cc",
+ "ffmpeg_init.h",
+ "ffmpeg_io.cc",
+ "ffmpeg_io.h",
+ "ffmpeg_type_converters.cc",
+ "ffmpeg_type_converters.h",
+ "ffmpeg_video_decoder.cc",
+ "ffmpeg_video_decoder.h",
+ ]
+
+ deps = [
+ "//base",
+ "//mojo/common",
+ "//services/media/framework",
+ "//third_party/ffmpeg",
+ ]
+
+ defines = [
+ "FF_API_PIX_FMT_DESC=0",
+ "FF_API_OLD_DECODE_AUDIO=0",
+ "FF_API_DESTRUCT_PACKET=0",
+ "FF_API_GET_BUFFER=0",
+ ]
+
+ configs -= [ "//build/config/compiler:default_include_dirs" ]
+ configs += [ ":default_include_dirs" ]
+}

Powered by Google App Engine
This is Rietveld 408576698