fixup! [Tizen][MM][Webrtc] Video Capture Port using CAPI
authormsu.koo <msu.koo@samsung.com>
Wed, 21 Jan 2015 07:30:17 +0000 (16:30 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
This patch is to enable the tizen video capture port on mobile build only.

Together with: I62321a3b0cfba87da4f2acd5ee9e53e80427a4af
Reviewed by: SeungSeop Park, Venugopal S M

Change-Id: I55a08af9f9939ec5664815916e408607486544a4
Signed-off-by: msu.koo <msu.koo@samsung.com>
tizen_src/impl/chromium-efl-mm.gypi
tizen_src/impl/chromium-efl.gypi

index 443b619..fd06b29 100644 (file)
@@ -9,6 +9,13 @@
       'content/common/gpu/media/tizen/tizen_video_encode_accelerator.h',
       'content/common/gpu/media/tizen/tizen_video_encode_accelerator.cc',
     ],
+    'capi_camera_sources': [
+      'media/video/capture/tizen/video_capture_device_tizen.cc',
+      'media/video/capture/tizen/video_capture_device_tizen.h',
+      'media/video/capture/tizen/video_capture_device_factory_tizen.cc',
+      'media/video/capture/tizen/video_capture_device_factory_tizen.h',
+      'media/video/capture/tizen/video_capture_device_factory_tizen_helper.cc',
+    ],
   },
   'sources': [
     'media/base/tizen/webaudio_media_codec_info_tizen.h',
     'media/base/tizen/media_source_player_gstreamer.h',
     'media/base/tizen/webmediaplayer_tizen.cc',
     'media/base/tizen/webmediaplayer_tizen.h',#ME and MSE
-    'media/video/capture/tizen/video_capture_device_factory_tizen_helper.cc',
     '<@(webrtc_sources)',
   ],
   'conditions': [
-    ['building_for_tizen==1', {
+    ['building_for_tizen_mobile==1', {
       'defines': [
        'TIZEN_VIDEO_CAPTURE_SUPPORT=1',
       ],
       'sources': [
-        'media/video/capture/tizen/video_capture_device_tizen.h',
-        'media/video/capture/tizen/video_capture_device_tizen.cc',
-        'media/video/capture/tizen/video_capture_device_factory_tizen.h',
-        'media/video/capture/tizen/video_capture_device_factory_tizen.cc',
+        '<@(capi_camera_sources)',
       ],
       'dependencies': [
         '<(chrome_src_dir)/third_party/libyuv/libyuv.gyp:libyuv',
index d5912f2..f0383f1 100644 (file)
                'TIZEN_LEGACY_V_2_2_1=1',
              ],
            }],
-           ['tizen_multimedia_support==1', {
-             'sources/': [
-               ['exclude', 'video/capture/linux/video_capture_device_factory_linux.cc$'],
-               ['exclude', 'video/capture/linux/video_capture_device_factory_linux.h$'],
-               ['exclude', 'video/capture/linux/video_capture_device_linux.h$'],
-               ['exclude', 'video/capture/linux/video_capture_device_linux.cc$'],
-             ],
-           }],
          ],
          'sources/': [
            ['exclude', 'browser/device_sensors/data_fetcher_shared_memory_default.cc$'],
            'TIZEN_CONTENTS_DETECTION=1',
            'TIZEN_ENABLE_CAPI_SUPPORT=1',
            ],
+         'conditions': [
+           ['tizen_multimedia_support==1', {
+             'sources/': [
+               ['exclude', 'video/capture/linux/video_capture_device_factory_linux.cc$'],
+               ['exclude', 'video/capture/linux/video_capture_device_factory_linux.h$'],
+               ['exclude', 'video/capture/linux/video_capture_device_linux.h$'],
+               ['exclude', 'video/capture/linux/video_capture_device_linux.cc$'],
+             ],
+           }],
+         ],
       }],
       ['building_for_tizen_tv==1', {
        'defines': ['OS_TIZEN_TV=1'],