niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame] | 1 | # Copyright (c) 2011 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': [ |
niklase@google.com | f6d205a | 2011-07-07 09:18:14 +0000 | [diff] [blame] | 11 | 'src/common_settings.gypi', # Common settings |
niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame] | 12 | ], |
| 13 | 'targets': [ |
| 14 | { |
| 15 | 'target_name': 'auto_tests', |
| 16 | 'type': 'none', |
| 17 | 'dependencies': [ |
niklase@google.com | f6d205a | 2011-07-07 09:18:14 +0000 | [diff] [blame] | 18 | 'src/voice_engine.gyp:voe_auto_test', |
| 19 | 'src/video_engine.gyp:vie_auto_test', |
niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame] | 20 | ], |
leozwang@google.com | 5e9a682 | 2011-06-20 17:05:14 +0000 | [diff] [blame] | 21 | }, |
| 22 | { |
| 23 | 'target_name': 'cmd_test', |
| 24 | 'type': 'none', |
| 25 | 'dependencies': [ |
niklase@google.com | f6d205a | 2011-07-07 09:18:14 +0000 | [diff] [blame] | 26 | 'src/voice_engine.gyp:voe_cmd_test', |
leozwang@google.com | 5e9a682 | 2011-06-20 17:05:14 +0000 | [diff] [blame] | 27 | ], |
tommi@google.com | aefcdf4 | 2011-05-31 15:49:22 +0000 | [diff] [blame] | 28 | }, |
niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame] | 29 | { |
tommi@google.com | aefcdf4 | 2011-05-31 15:49:22 +0000 | [diff] [blame] | 30 | 'target_name': 'peerconnection_server', |
| 31 | 'type': 'executable', |
| 32 | 'sources': [ |
| 33 | 'peerconnection/samples/server/data_socket.cc', |
| 34 | 'peerconnection/samples/server/data_socket.h', |
| 35 | 'peerconnection/samples/server/main.cc', |
| 36 | 'peerconnection/samples/server/peer_channel.cc', |
| 37 | 'peerconnection/samples/server/peer_channel.h', |
| 38 | 'peerconnection/samples/server/utils.cc', |
| 39 | 'peerconnection/samples/server/utils.h', |
| 40 | ], |
| 41 | }, |
| 42 | ], |
| 43 | 'conditions': [ |
| 44 | ['OS=="win"', { |
| 45 | 'targets': [ |
| 46 | { |
| 47 | 'target_name': 'peerconnection_client', |
niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame] | 48 | 'type': 'executable', |
| 49 | 'sources': [ |
| 50 | 'peerconnection/samples/client/conductor.cc', |
| 51 | 'peerconnection/samples/client/conductor.h', |
| 52 | 'peerconnection/samples/client/defaults.cc', |
| 53 | 'peerconnection/samples/client/defaults.h', |
| 54 | 'peerconnection/samples/client/main.cc', |
| 55 | 'peerconnection/samples/client/main_wnd.cc', |
| 56 | 'peerconnection/samples/client/main_wnd.h', |
| 57 | 'peerconnection/samples/client/peer_connection_client.cc', |
| 58 | 'peerconnection/samples/client/peer_connection_client.h', |
niklase@google.com | f6d205a | 2011-07-07 09:18:14 +0000 | [diff] [blame] | 59 | 'third_party/libjingle/source/talk/base/win32socketinit.cc', |
| 60 | 'third_party/libjingle/source/talk/base/win32socketserver.cc', |
niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame] | 61 | ], |
| 62 | 'msvs_settings': { |
| 63 | 'VCLinkerTool': { |
| 64 | 'SubSystem': '2', # Windows |
| 65 | }, |
| 66 | }, |
tommi@google.com | aefcdf4 | 2011-05-31 15:49:22 +0000 | [diff] [blame] | 67 | 'dependencies': [ |
ronghuawu@google.com | 35f5345 | 2011-08-05 22:08:29 +0000 | [diff] [blame] | 68 | 'third_party_mods/libjingle/libjingle.gyp:libjingle_app', |
tommi@google.com | aefcdf4 | 2011-05-31 15:49:22 +0000 | [diff] [blame] | 69 | ], |
| 70 | 'include_dirs': [ |
niklase@google.com | f6d205a | 2011-07-07 09:18:14 +0000 | [diff] [blame] | 71 | 'third_party/libjingle/source', |
tommi@webrtc.org | 102b227 | 2011-08-25 15:03:52 +0000 | [diff] [blame] | 72 | 'third_party_mods/libjingle/source', |
tommi@google.com | aefcdf4 | 2011-05-31 15:49:22 +0000 | [diff] [blame] | 73 | ], |
| 74 | }, |
| 75 | ], # targets |
| 76 | }, ], # OS="win" |
tommi@google.com | b0d7a87 | 2011-08-10 09:03:29 +0000 | [diff] [blame] | 77 | ['OS=="linux"', { |
| 78 | 'targets': [ |
| 79 | { |
| 80 | 'target_name': 'peerconnection_client', |
| 81 | 'type': 'executable', |
| 82 | 'sources': [ |
tommi@webrtc.org | 102b227 | 2011-08-25 15:03:52 +0000 | [diff] [blame] | 83 | 'peerconnection/samples/client/conductor.cc', |
| 84 | 'peerconnection/samples/client/conductor.h', |
| 85 | 'peerconnection/samples/client/defaults.cc', |
| 86 | 'peerconnection/samples/client/defaults.h', |
tommi@google.com | b0d7a87 | 2011-08-10 09:03:29 +0000 | [diff] [blame] | 87 | 'peerconnection/samples/client/linux/main.cc', |
| 88 | 'peerconnection/samples/client/linux/main_wnd.cc', |
| 89 | 'peerconnection/samples/client/linux/main_wnd.h', |
tommi@webrtc.org | 102b227 | 2011-08-25 15:03:52 +0000 | [diff] [blame] | 90 | 'peerconnection/samples/client/peer_connection_client.cc', |
| 91 | 'peerconnection/samples/client/peer_connection_client.h', |
tommi@google.com | b0d7a87 | 2011-08-10 09:03:29 +0000 | [diff] [blame] | 92 | ], |
| 93 | 'dependencies': [ |
| 94 | 'third_party_mods/libjingle/libjingle.gyp:libjingle_app', |
| 95 | # TODO(tommi): Switch to this and remove specific gtk dependency |
| 96 | # sections below for cflags and link_settings. |
| 97 | # '<(DEPTH)/build/linux/system.gyp:gtk', |
| 98 | ], |
| 99 | 'include_dirs': [ |
| 100 | 'third_party/libjingle/source', |
tommi@webrtc.org | 102b227 | 2011-08-25 15:03:52 +0000 | [diff] [blame] | 101 | 'third_party_mods/libjingle/source', |
tommi@google.com | b0d7a87 | 2011-08-10 09:03:29 +0000 | [diff] [blame] | 102 | ], |
| 103 | 'cflags': [ |
| 104 | '<!@(pkg-config --cflags gtk+-2.0)', |
| 105 | ], |
| 106 | 'link_settings': { |
| 107 | 'ldflags': [ |
| 108 | '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)', |
| 109 | ], |
| 110 | 'libraries': [ |
| 111 | '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)', |
tommi@webrtc.org | 102b227 | 2011-08-25 15:03:52 +0000 | [diff] [blame] | 112 | '-lX11', |
| 113 | '-lXext', |
tommi@google.com | b0d7a87 | 2011-08-10 09:03:29 +0000 | [diff] [blame] | 114 | ], |
| 115 | }, |
| 116 | }, |
| 117 | ], # targets |
| 118 | }, ], # OS="linux" |
tommi@google.com | aefcdf4 | 2011-05-31 15:49:22 +0000 | [diff] [blame] | 119 | ], # conditions |
niklase@google.com | da159d6 | 2011-05-30 11:51:34 +0000 | [diff] [blame] | 120 | } |