blob: 801e1adf520c37d2ddb857e1ffdd7c669a74c453 [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': [
niklase@google.comf6d205a2011-07-07 09:18:14 +000011 'src/common_settings.gypi', # Common settings
niklase@google.comda159d62011-05-30 11:51:34 +000012 ],
13 'targets': [
14 {
15 'target_name': 'auto_tests',
16 'type': 'none',
17 'dependencies': [
niklase@google.comf6d205a2011-07-07 09:18:14 +000018 'src/voice_engine.gyp:voe_auto_test',
19 'src/video_engine.gyp:vie_auto_test',
niklase@google.comda159d62011-05-30 11:51:34 +000020 ],
leozwang@google.com5e9a6822011-06-20 17:05:14 +000021 },
22 {
23 'target_name': 'cmd_test',
24 'type': 'none',
25 'dependencies': [
niklase@google.comf6d205a2011-07-07 09:18:14 +000026 'src/voice_engine.gyp:voe_cmd_test',
leozwang@google.com5e9a6822011-06-20 17:05:14 +000027 ],
tommi@google.comaefcdf42011-05-31 15:49:22 +000028 },
niklase@google.comda159d62011-05-30 11:51:34 +000029 {
tommi@google.comaefcdf42011-05-31 15:49:22 +000030 '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.comda159d62011-05-30 11:51:34 +000048 '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.comf6d205a2011-07-07 09:18:14 +000059 'third_party/libjingle/source/talk/base/win32socketinit.cc',
60 'third_party/libjingle/source/talk/base/win32socketserver.cc',
niklase@google.comda159d62011-05-30 11:51:34 +000061 ],
62 'msvs_settings': {
63 'VCLinkerTool': {
64 'SubSystem': '2', # Windows
65 },
66 },
tommi@google.comaefcdf42011-05-31 15:49:22 +000067 'dependencies': [
ronghuawu@google.com35f53452011-08-05 22:08:29 +000068 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
tommi@google.comaefcdf42011-05-31 15:49:22 +000069 ],
70 'include_dirs': [
ronghuawu@google.com35f53452011-08-05 22:08:29 +000071 'third_party_mods/libjingle/source',
niklase@google.comf6d205a2011-07-07 09:18:14 +000072 'third_party/libjingle/source',
tommi@google.comaefcdf42011-05-31 15:49:22 +000073 ],
74 },
75 ], # targets
76 }, ], # OS="win"
tommi@google.comb0d7a872011-08-10 09:03:29 +000077 ['OS=="linux"', {
78 'targets': [
79 {
80 'target_name': 'peerconnection_client',
81 'type': 'executable',
82 'sources': [
83 'peerconnection/samples/client/linux/main.cc',
84 'peerconnection/samples/client/linux/main_wnd.cc',
85 'peerconnection/samples/client/linux/main_wnd.h',
86 ],
87 'dependencies': [
88 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
89 # TODO(tommi): Switch to this and remove specific gtk dependency
90 # sections below for cflags and link_settings.
91 # '<(DEPTH)/build/linux/system.gyp:gtk',
92 ],
93 'include_dirs': [
94 'third_party/libjingle/source',
95 ],
96 'cflags': [
97 '<!@(pkg-config --cflags gtk+-2.0)',
98 ],
99 'link_settings': {
100 'ldflags': [
101 '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)',
102 ],
103 'libraries': [
104 '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)',
105 ],
106 },
107 },
108 ], # targets
109 }, ], # OS="linux"
tommi@google.comaefcdf42011-05-31 15:49:22 +0000110 ], # conditions
niklase@google.comda159d62011-05-30 11:51:34 +0000111}