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

Unified Diff: media/media.gyp

Issue 269673005: media: Add MediaOzonePlatform support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using OzonePlatformMedia 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..1328334d947ee7d8dcec7efbc1218595b7ddb232 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/ozone_platform.cc',
+ 'ozone/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', {
spang 2014/06/09 19:01:58 (question for media/ owners) should we move this
+ '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)',
+ ],
+ 'sources': [
+ '<(constructor_list_cc_file)',
+ ],
+ 'dependencies': [
+ '../ui/ozone/ozone.gyp:ozone',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'generate_constructor_list',
+ '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=OzonePlatformMedia',
+ '--include="media/ozone/ozone_platform.h"'
+ ],
+ },
+ ]
+ }],
['OS!="linux"', {
'sources!': [
'audio/cras/audio_manager_cras.cc',

Powered by Google App Engine
This is Rietveld 408576698