blob: 19844be36e25c3eb7e43f085ae3894f8857340d7 [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:*',
20 # TODO(andrew): enable this when all tests build.
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000021 #'src/modules/modules.gyp:*',
kjellander@webrtc.org177bb522011-10-31 17:10:01 +000022 'src/system_wrappers/source/system_wrappers.gyp:*',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000023 'src/video_engine/video_engine.gyp:*',
24 'src/voice_engine/voice_engine.gyp:*',
leozwang@google.com5e9a6822011-06-20 17:05:14 +000025 ],
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000026 },
27 # TODO(andrew): move peerconnection to its own gyp.
niklase@google.comda159d62011-05-30 11:51:34 +000028 {
tommi@google.comaefcdf42011-05-31 15:49:22 +000029 '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.comda159d62011-05-30 11:51:34 +000047 '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.comf6d205a2011-07-07 09:18:14 +000058 'third_party/libjingle/source/talk/base/win32socketinit.cc',
59 'third_party/libjingle/source/talk/base/win32socketserver.cc',
niklase@google.comda159d62011-05-30 11:51:34 +000060 ],
61 'msvs_settings': {
62 'VCLinkerTool': {
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000063 'SubSystem': '2', # Windows
niklase@google.comda159d62011-05-30 11:51:34 +000064 },
65 },
tommi@google.comaefcdf42011-05-31 15:49:22 +000066 'dependencies': [
ronghuawu@google.com35f53452011-08-05 22:08:29 +000067 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
tommi@google.comaefcdf42011-05-31 15:49:22 +000068 ],
69 'include_dirs': [
niklase@google.comf6d205a2011-07-07 09:18:14 +000070 'third_party/libjingle/source',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000071 'third_party_mods/libjingle/source',
tommi@google.comaefcdf42011-05-31 15:49:22 +000072 ],
73 },
74 ], # targets
75 }, ], # OS="win"
tommi@google.comb0d7a872011-08-10 09:03:29 +000076 ['OS=="linux"', {
77 'targets': [
78 {
79 'target_name': 'peerconnection_client',
80 'type': 'executable',
81 'sources': [
tommi@webrtc.org102b2272011-08-25 15:03:52 +000082 '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.comb0d7a872011-08-10 09:03:29 +000086 'peerconnection/samples/client/linux/main.cc',
87 'peerconnection/samples/client/linux/main_wnd.cc',
88 'peerconnection/samples/client/linux/main_wnd.h',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000089 'peerconnection/samples/client/peer_connection_client.cc',
90 'peerconnection/samples/client/peer_connection_client.h',
tommi@google.comb0d7a872011-08-10 09:03:29 +000091 ],
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.org102b2272011-08-25 15:03:52 +0000100 'third_party_mods/libjingle/source',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000101 ],
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.org102b2272011-08-25 15:03:52 +0000111 '-lX11',
112 '-lXext',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000113 ],
114 },
115 },
116 ], # targets
117 }, ], # OS="linux"
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +0000118 ], # conditions
niklase@google.comda159d62011-05-30 11:51:34 +0000119}