Home | History | Annotate | Download | only in tools
      1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
      2 #
      3 # Use of this source code is governed by a BSD-style license
      4 # that can be found in the LICENSE file in the root of the source
      5 # tree. An additional intellectual property rights grant can be found
      6 # in the file PATENTS.  All contributing project authors may
      7 # be found in the AUTHORS file in the root of the source tree.
      8 
      9 {
     10   'includes': [
     11     '../build/common.gypi',
     12   ],
     13   'targets': [
     14     {
     15       'target_name': 'video_quality_analysis',
     16       'type': 'static_library',
     17       'dependencies': [
     18         '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
     19       ],
     20       'export_dependent_settings': [
     21         '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
     22       ],
     23       'sources': [
     24         'frame_analyzer/video_quality_analysis.h',
     25         'frame_analyzer/video_quality_analysis.cc',
     26       ],
     27     }, # video_quality_analysis
     28     {
     29       'target_name': 'frame_analyzer',
     30       'type': 'executable',
     31       'dependencies': [
     32         '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
     33         'video_quality_analysis',
     34       ],
     35       'sources': [
     36         'frame_analyzer/frame_analyzer.cc',
     37       ],
     38     }, # frame_analyzer
     39     {
     40       'target_name': 'psnr_ssim_analyzer',
     41       'type': 'executable',
     42       'dependencies': [
     43         '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
     44         'video_quality_analysis',
     45       ],
     46       'sources': [
     47         'psnr_ssim_analyzer/psnr_ssim_analyzer.cc',
     48       ],
     49     }, # psnr_ssim_analyzer
     50     {
     51       'target_name': 'rgba_to_i420_converter',
     52       'type': 'executable',
     53       'dependencies': [
     54         '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
     55         '<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
     56       ],
     57       'sources': [
     58         'converter/converter.h',
     59         'converter/converter.cc',
     60         'converter/rgba_to_i420_converter.cc',
     61       ],
     62     }, # rgba_to_i420_converter
     63     {
     64       'target_name': 'frame_editing_lib',
     65       'type': 'static_library',
     66       'dependencies': [
     67         '<(webrtc_root)/common_video/common_video.gyp:common_video',
     68       ],
     69       'sources': [
     70         'frame_editing/frame_editing_lib.cc',
     71         'frame_editing/frame_editing_lib.h',
     72       ],
     73       # Disable warnings to enable Win64 build, issue 1323.
     74       'msvs_disabled_warnings': [
     75         4267,  # size_t to int truncation.
     76       ],
     77     }, # frame_editing_lib
     78     {
     79       'target_name': 'frame_editor',
     80       'type': 'executable',
     81       'dependencies': [
     82         '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
     83         'frame_editing_lib',
     84       ],
     85       'sources': [
     86         'frame_editing/frame_editing.cc',
     87       ],
     88     }, # frame_editing
     89     {
     90       'target_name': 'force_mic_volume_max',
     91       'type': 'executable',
     92       'dependencies': [
     93         '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
     94         '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:field_trial_default',
     95       ],
     96       'sources': [
     97         'force_mic_volume_max/force_mic_volume_max.cc',
     98       ],
     99     }, # force_mic_volume_max
    100   ],
    101   'conditions': [
    102     ['include_tests==1', {
    103       'targets' : [
    104         {
    105           'target_name': 'audio_e2e_harness',
    106           'type': 'executable',
    107           'dependencies': [
    108             '<(webrtc_root)/test/test.gyp:channel_transport',
    109             '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
    110             '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:field_trial_default',
    111             '<(DEPTH)/testing/gtest.gyp:gtest',
    112             '<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
    113           ],
    114           'sources': [
    115             'e2e_quality/audio/audio_e2e_harness.cc',
    116           ],
    117         }, # audio_e2e_harness
    118         {
    119           'target_name': 'tools_unittests',
    120           'type': '<(gtest_target_type)',
    121           'dependencies': [
    122             'frame_editing_lib',
    123             'video_quality_analysis',
    124             '<(webrtc_root)/tools/internal_tools.gyp:command_line_parser',
    125             '<(webrtc_root)/test/test.gyp:test_support_main',
    126             '<(DEPTH)/testing/gtest.gyp:gtest',
    127           ],
    128           'sources': [
    129             'simple_command_line_parser_unittest.cc',
    130             'frame_editing/frame_editing_unittest.cc',
    131             'frame_analyzer/video_quality_analysis_unittest.cc',
    132           ],
    133           # Disable warnings to enable Win64 build, issue 1323.
    134           'msvs_disabled_warnings': [
    135             4267,  # size_t to int truncation.
    136           ],
    137           'conditions': [
    138             # TODO(henrike): remove build_with_chromium==1 when the bots are
    139             # using Chromium's buildbots.
    140             ['build_with_chromium==1 and OS=="android"', {
    141               'dependencies': [
    142                 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
    143               ],
    144             }],
    145           ],
    146         }, # tools_unittests
    147       ], # targets
    148       # TODO(henrike): remove build_with_chromium==1 when the bots are using
    149       # Chromium's buildbots.
    150       'conditions': [
    151         ['build_with_chromium==1 and OS=="android"', {
    152           'targets': [
    153             {
    154               'target_name': 'tools_unittests_apk_target',
    155               'type': 'none',
    156               'dependencies': [
    157                 '<(apk_tests_path):tools_unittests_apk',
    158               ],
    159             },
    160           ],
    161         }],
    162         ['test_isolation_mode != "noop"', {
    163           'targets': [
    164             {
    165               'target_name': 'tools_unittests_run',
    166               'type': 'none',
    167               'dependencies': [
    168                 'tools_unittests',
    169               ],
    170               'includes': [
    171                 '../build/isolate.gypi',
    172                 'tools_unittests.isolate',
    173               ],
    174               'sources': [
    175                 'tools_unittests.isolate',
    176               ],
    177             },
    178           ],
    179         }],
    180       ],
    181     }], # include_tests
    182   ], # conditions
    183 }
    184