blob: d7c307ca940347d2f3d65a95e9b14d191e927e7d [file] [log] [blame]
niklase@google.comda159d62011-05-30 11:51:34 +00001# 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.org19eefdc2011-09-14 17:02:44 +000011 'src/build/common.gypi',
niklase@google.comda159d62011-05-30 11:51:34 +000012 ],
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000013 'targets': [
niklase@google.comda159d62011-05-30 11:51:34 +000014 {
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000015 'target_name': 'All',
niklase@google.comda159d62011-05-30 11:51:34 +000016 'type': 'none',
17 'dependencies': [
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000018 'src/common_audio/common_audio.gyp:*',
andrew@webrtc.org22562692011-11-04 16:21:47 +000019 'src/common_video/common_video.gyp:*',
kjellander@webrtc.org543c3ea2011-11-23 12:20:35 +000020 'src/modules/modules.gyp:*',
kjellander@webrtc.org177bb522011-10-31 17:10:01 +000021 'src/system_wrappers/source/system_wrappers.gyp:*',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000022 'src/video_engine/video_engine.gyp:*',
23 'src/voice_engine/voice_engine.gyp:*',
leozwang@google.com5e9a6822011-06-20 17:05:14 +000024 ],
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000025 },
26 # TODO(andrew): move peerconnection to its own gyp.
niklase@google.comda159d62011-05-30 11:51:34 +000027 {
tommi@google.comaefcdf42011-05-31 15:49:22 +000028 'target_name': 'peerconnection_server',
29 'type': 'executable',
30 'sources': [
31 'peerconnection/samples/server/data_socket.cc',
32 'peerconnection/samples/server/data_socket.h',
33 'peerconnection/samples/server/main.cc',
34 'peerconnection/samples/server/peer_channel.cc',
35 'peerconnection/samples/server/peer_channel.h',
36 'peerconnection/samples/server/utils.cc',
37 'peerconnection/samples/server/utils.h',
38 ],
39 },
40 ],
41 'conditions': [
42 ['OS=="win"', {
43 'targets': [
44 {
45 'target_name': 'peerconnection_client',
niklase@google.comda159d62011-05-30 11:51:34 +000046 'type': 'executable',
47 'sources': [
48 'peerconnection/samples/client/conductor.cc',
49 'peerconnection/samples/client/conductor.h',
50 'peerconnection/samples/client/defaults.cc',
51 'peerconnection/samples/client/defaults.h',
52 'peerconnection/samples/client/main.cc',
53 'peerconnection/samples/client/main_wnd.cc',
54 'peerconnection/samples/client/main_wnd.h',
55 'peerconnection/samples/client/peer_connection_client.cc',
56 'peerconnection/samples/client/peer_connection_client.h',
niklase@google.comf6d205a2011-07-07 09:18:14 +000057 'third_party/libjingle/source/talk/base/win32socketinit.cc',
58 'third_party/libjingle/source/talk/base/win32socketserver.cc',
niklase@google.comda159d62011-05-30 11:51:34 +000059 ],
60 'msvs_settings': {
61 'VCLinkerTool': {
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000062 'SubSystem': '2', # Windows
niklase@google.comda159d62011-05-30 11:51:34 +000063 },
64 },
tommi@google.comaefcdf42011-05-31 15:49:22 +000065 'dependencies': [
ronghuawu@google.com35f53452011-08-05 22:08:29 +000066 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
tommi@google.comaefcdf42011-05-31 15:49:22 +000067 ],
68 'include_dirs': [
niklase@google.comf6d205a2011-07-07 09:18:14 +000069 'third_party/libjingle/source',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000070 'third_party_mods/libjingle/source',
tommi@google.comaefcdf42011-05-31 15:49:22 +000071 ],
72 },
73 ], # targets
74 }, ], # OS="win"
tommi@google.comb0d7a872011-08-10 09:03:29 +000075 ['OS=="linux"', {
76 'targets': [
77 {
78 'target_name': 'peerconnection_client',
79 'type': 'executable',
80 'sources': [
tommi@webrtc.org102b2272011-08-25 15:03:52 +000081 'peerconnection/samples/client/conductor.cc',
82 'peerconnection/samples/client/conductor.h',
83 'peerconnection/samples/client/defaults.cc',
84 'peerconnection/samples/client/defaults.h',
tommi@google.comb0d7a872011-08-10 09:03:29 +000085 'peerconnection/samples/client/linux/main.cc',
86 'peerconnection/samples/client/linux/main_wnd.cc',
87 'peerconnection/samples/client/linux/main_wnd.h',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000088 'peerconnection/samples/client/peer_connection_client.cc',
89 'peerconnection/samples/client/peer_connection_client.h',
tommi@google.comb0d7a872011-08-10 09:03:29 +000090 ],
91 'dependencies': [
92 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
93 # TODO(tommi): Switch to this and remove specific gtk dependency
94 # sections below for cflags and link_settings.
95 # '<(DEPTH)/build/linux/system.gyp:gtk',
96 ],
97 'include_dirs': [
98 'third_party/libjingle/source',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000099 'third_party_mods/libjingle/source',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000100 ],
101 'cflags': [
102 '<!@(pkg-config --cflags gtk+-2.0)',
103 ],
104 'link_settings': {
105 'ldflags': [
106 '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)',
107 ],
108 'libraries': [
109 '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)',
tommi@webrtc.org102b2272011-08-25 15:03:52 +0000110 '-lX11',
111 '-lXext',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000112 ],
113 },
114 },
115 ], # targets
116 }, ], # OS="linux"
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +0000117 ], # conditions
niklase@google.comda159d62011-05-30 11:51:34 +0000118}