blob: df0e22b95b72cd9587b9ac4524c08ba6ee0d6810 [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': [
niklase@google.comf6d205a2011-07-07 09:18:14 +000071 'third_party/libjingle/source',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000072 'third_party_mods/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': [
tommi@webrtc.org102b2272011-08-25 15:03:52 +000083 'peerconnection/samples/client/conductor.cc',
84 'peerconnection/samples/client/conductor.h',
85 'peerconnection/samples/client/defaults.cc',
86 'peerconnection/samples/client/defaults.h',
tommi@google.comb0d7a872011-08-10 09:03:29 +000087 'peerconnection/samples/client/linux/main.cc',
88 'peerconnection/samples/client/linux/main_wnd.cc',
89 'peerconnection/samples/client/linux/main_wnd.h',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000090 'peerconnection/samples/client/peer_connection_client.cc',
91 'peerconnection/samples/client/peer_connection_client.h',
tommi@google.comb0d7a872011-08-10 09:03:29 +000092 ],
93 'dependencies': [
94 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
95 # TODO(tommi): Switch to this and remove specific gtk dependency
96 # sections below for cflags and link_settings.
97 # '<(DEPTH)/build/linux/system.gyp:gtk',
98 ],
99 'include_dirs': [
100 'third_party/libjingle/source',
tommi@webrtc.org102b2272011-08-25 15:03:52 +0000101 'third_party_mods/libjingle/source',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000102 ],
103 'cflags': [
104 '<!@(pkg-config --cflags gtk+-2.0)',
105 ],
106 'link_settings': {
107 'ldflags': [
108 '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)',
109 ],
110 'libraries': [
111 '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)',
tommi@webrtc.org102b2272011-08-25 15:03:52 +0000112 '-lX11',
113 '-lXext',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000114 ],
115 },
116 },
117 ], # targets
118 }, ], # OS="linux"
tommi@google.comaefcdf42011-05-31 15:49:22 +0000119 ], # conditions
niklase@google.comda159d62011-05-30 11:51:34 +0000120}