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

Unified Diff: media/media.gyp

Issue 269673005: media: Add MediaOzonePlatform support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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: media/media.gyp
diff --git a/media/media.gyp b/media/media.gyp
index bbded6ff951b2a075585169d9a523d1d4c6dcd65..e1e61869e69d318fc47f95c84f9f3e1b0b456ab4 100644
--- a/media/media.gyp
+++ b/media/media.gyp
@@ -461,6 +461,8 @@
'midi/usb_midi_jack.h',
'midi/usb_midi_output_stream.cc',
'midi/usb_midi_output_stream.h',
+ 'ozone/media_ozone_platform.cc',
+ 'ozone/media_ozone_platform.h',
'video/capture/android/video_capture_device_android.cc',
'video/capture/android/video_capture_device_android.h',
'video/capture/android/video_capture_device_factory_android.cc',
@@ -716,6 +718,45 @@
}],
],
}],
+ ['use_ozone==1', {
+ 'variables': {
+ 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_list.txt',
+ 'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/media/ozone/constructor_list.cc',
+ },
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)',
xhwang 2014/06/09 23:53:33 Comment about what this is used for.
vignatti (out of this project) 2014/06/10 14:50:29 Done.
+ ],
+ 'sources': [
+ '<(constructor_list_cc_file)',
+ ],
+ 'dependencies': [
+ '../ui/ozone/ozone.gyp:ozone',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'generate_constructor_list',
xhwang 2014/06/09 23:53:33 Add a comment about what this generates. Since thi
vignatti (out of this project) 2014/06/10 14:50:29 Done.
+ 'variables': {
+ 'generator_path': '../ui/ozone/generate_constructor_list.py',
+ },
+ 'inputs': [
+ '<(generator_path)',
+ '<(platform_list_txt_file)',
+ ],
+ 'outputs': [
+ '<(constructor_list_cc_file)',
+ ],
+ 'action': [
+ 'python',
+ '<(generator_path)',
+ '--platform_list=<(platform_list_txt_file)',
+ '--output_cc=<(constructor_list_cc_file)',
+ '--namespace=media',
+ '--typename=MediaOzonePlatform',
+ '--include="media/ozone/media_ozone_platform.h"'
+ ],
+ },
+ ]
+ }],
['OS!="linux"', {
'sources!': [
'audio/cras/audio_manager_cras.cc',

Powered by Google App Engine
This is Rietveld 408576698