# Copyright (c) 2012 The WebRTC Project Authors. All rights reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project authors may # be found in the AUTHORS file in the root of the source tree. { 'includes': [ '../talk/build/common.gypi', ], 'targets': [ { 'target_name': 'relayserver', 'type': 'executable', 'dependencies': [ '../talk/libjingle.gyp:libjingle', '../talk/libjingle.gyp:libjingle_p2p', ], 'sources': [ 'examples/relayserver/relayserver_main.cc', ], }, # target relayserver { 'target_name': 'stunserver', 'type': 'executable', 'dependencies': [ '../talk/libjingle.gyp:libjingle', '../talk/libjingle.gyp:libjingle_p2p', ], 'sources': [ 'examples/stunserver/stunserver_main.cc', ], }, # target stunserver { 'target_name': 'turnserver', 'type': 'executable', 'dependencies': [ '../talk/libjingle.gyp:libjingle', '../talk/libjingle.gyp:libjingle_p2p', ], 'sources': [ 'examples/turnserver/turnserver_main.cc', ], }, # target turnserver { 'target_name': 'peerconnection_server', 'type': 'executable', 'sources': [ 'examples/peerconnection/server/data_socket.cc', 'examples/peerconnection/server/data_socket.h', 'examples/peerconnection/server/main.cc', 'examples/peerconnection/server/peer_channel.cc', 'examples/peerconnection/server/peer_channel.h', 'examples/peerconnection/server/utils.cc', 'examples/peerconnection/server/utils.h', ], 'dependencies': [ '<(webrtc_root)/common.gyp:webrtc_common', '../talk/libjingle.gyp:libjingle', ], # TODO(ronghuawu): crbug.com/167187 fix size_t to int truncations. 'msvs_disabled_warnings': [ 4309, ], }, # target peerconnection_server ], 'conditions': [ ['OS=="linux" or OS=="win"', { 'targets': [ { 'target_name': 'peerconnection_client', 'type': 'executable', 'sources': [ 'examples/peerconnection/client/conductor.cc', 'examples/peerconnection/client/conductor.h', 'examples/peerconnection/client/defaults.cc', 'examples/peerconnection/client/defaults.h', 'examples/peerconnection/client/peer_connection_client.cc', 'examples/peerconnection/client/peer_connection_client.h', ], 'dependencies': [ '../talk/libjingle.gyp:libjingle_peerconnection', '<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_default', '<@(libjingle_tests_additional_deps)', ], 'conditions': [ ['build_json==1', { 'dependencies': [ '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', ], }], # TODO(ronghuawu): Move these files to a win/ directory then they # can be excluded automatically. ['OS=="win"', { 'sources': [ 'examples/peerconnection/client/flagdefs.h', 'examples/peerconnection/client/main.cc', 'examples/peerconnection/client/main_wnd.cc', 'examples/peerconnection/client/main_wnd.h', ], 'msvs_settings': { 'VCLinkerTool': { 'SubSystem': '2', # Windows }, }, }], # OS=="win" ['OS=="win" and clang==1', { 'msvs_settings': { 'VCCLCompilerTool': { 'AdditionalOptions': [ # Disable warnings failing when compiling with Clang on Windows. # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366 '-Wno-reorder', '-Wno-unused-function', ], }, }, }], # OS=="win" and clang==1 ['OS=="linux"', { 'sources': [ 'examples/peerconnection/client/linux/main.cc', 'examples/peerconnection/client/linux/main_wnd.cc', 'examples/peerconnection/client/linux/main_wnd.h', ], 'cflags': [ '