blob: ee8c14e9289499cb5159b9909aff5f410a6949bc [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:*',
19 # TODO(andrew): enable these when all tests build.
20 #'src/common_video/common_video.gyp:*',
21 #'src/modules/modules.gyp:*',
22 #'src/system_wrappers/source/system_wrappers.gyp:*',
23 # TODO(andrew): move the merge_lib targets to a private gyp so we can
24 # target "*" in these.
xians@google.comd3185fe2011-09-12 12:24:39 +000025 'src/video_engine/video_engine.gyp:vie_auto_test',
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000026 'src/voice_engine/voice_engine.gyp:voe_auto_test',
xians@google.comd3185fe2011-09-12 12:24:39 +000027 'src/voice_engine/voice_engine.gyp:voe_cmd_test',
leozwang@google.com5e9a6822011-06-20 17:05:14 +000028 ],
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000029 },
30 # TODO(andrew): move peerconnection to its own gyp.
niklase@google.comda159d62011-05-30 11:51:34 +000031 {
tommi@google.comaefcdf42011-05-31 15:49:22 +000032 'target_name': 'peerconnection_server',
33 'type': 'executable',
34 'sources': [
35 'peerconnection/samples/server/data_socket.cc',
36 'peerconnection/samples/server/data_socket.h',
37 'peerconnection/samples/server/main.cc',
38 'peerconnection/samples/server/peer_channel.cc',
39 'peerconnection/samples/server/peer_channel.h',
40 'peerconnection/samples/server/utils.cc',
41 'peerconnection/samples/server/utils.h',
42 ],
43 },
44 ],
45 'conditions': [
46 ['OS=="win"', {
47 'targets': [
48 {
49 'target_name': 'peerconnection_client',
niklase@google.comda159d62011-05-30 11:51:34 +000050 'type': 'executable',
51 'sources': [
52 'peerconnection/samples/client/conductor.cc',
53 'peerconnection/samples/client/conductor.h',
54 'peerconnection/samples/client/defaults.cc',
55 'peerconnection/samples/client/defaults.h',
56 'peerconnection/samples/client/main.cc',
57 'peerconnection/samples/client/main_wnd.cc',
58 'peerconnection/samples/client/main_wnd.h',
59 'peerconnection/samples/client/peer_connection_client.cc',
60 'peerconnection/samples/client/peer_connection_client.h',
niklase@google.comf6d205a2011-07-07 09:18:14 +000061 'third_party/libjingle/source/talk/base/win32socketinit.cc',
62 'third_party/libjingle/source/talk/base/win32socketserver.cc',
niklase@google.comda159d62011-05-30 11:51:34 +000063 ],
64 'msvs_settings': {
65 'VCLinkerTool': {
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000066 'SubSystem': '2', # Windows
niklase@google.comda159d62011-05-30 11:51:34 +000067 },
68 },
tommi@google.comaefcdf42011-05-31 15:49:22 +000069 'dependencies': [
ronghuawu@google.com35f53452011-08-05 22:08:29 +000070 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
tommi@google.comaefcdf42011-05-31 15:49:22 +000071 ],
72 'include_dirs': [
niklase@google.comf6d205a2011-07-07 09:18:14 +000073 'third_party/libjingle/source',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000074 'third_party_mods/libjingle/source',
tommi@google.comaefcdf42011-05-31 15:49:22 +000075 ],
76 },
77 ], # targets
78 }, ], # OS="win"
tommi@google.comb0d7a872011-08-10 09:03:29 +000079 ['OS=="linux"', {
80 'targets': [
81 {
82 'target_name': 'peerconnection_client',
83 'type': 'executable',
84 'sources': [
tommi@webrtc.org102b2272011-08-25 15:03:52 +000085 'peerconnection/samples/client/conductor.cc',
86 'peerconnection/samples/client/conductor.h',
87 'peerconnection/samples/client/defaults.cc',
88 'peerconnection/samples/client/defaults.h',
tommi@google.comb0d7a872011-08-10 09:03:29 +000089 'peerconnection/samples/client/linux/main.cc',
90 'peerconnection/samples/client/linux/main_wnd.cc',
91 'peerconnection/samples/client/linux/main_wnd.h',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000092 'peerconnection/samples/client/peer_connection_client.cc',
93 'peerconnection/samples/client/peer_connection_client.h',
tommi@google.comb0d7a872011-08-10 09:03:29 +000094 ],
95 'dependencies': [
96 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
97 # TODO(tommi): Switch to this and remove specific gtk dependency
98 # sections below for cflags and link_settings.
99 # '<(DEPTH)/build/linux/system.gyp:gtk',
100 ],
101 'include_dirs': [
102 'third_party/libjingle/source',
tommi@webrtc.org102b2272011-08-25 15:03:52 +0000103 'third_party_mods/libjingle/source',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000104 ],
105 'cflags': [
106 '<!@(pkg-config --cflags gtk+-2.0)',
107 ],
108 'link_settings': {
109 'ldflags': [
110 '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)',
111 ],
112 'libraries': [
113 '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)',
tommi@webrtc.org102b2272011-08-25 15:03:52 +0000114 '-lX11',
115 '-lXext',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000116 ],
117 },
118 },
119 ], # targets
120 }, ], # OS="linux"
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +0000121 ], # conditions
niklase@google.comda159d62011-05-30 11:51:34 +0000122}