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