blob: 04833e73d0985d55215e0d3c16aadb6998d0ce18 [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': [
xians@webrtc.org0dffc642011-11-30 15:35:44 +000042 ['build_with_chromium==1', {
43 # Exclude components in engine_configuration.h.
44 'defines': [
45 'WEBRTC_CHROMIUM_BUILD',
46 ],
47 }, ], # build_with_chromium=1
tommi@google.comaefcdf42011-05-31 15:49:22 +000048 ['OS=="win"', {
49 'targets': [
50 {
51 'target_name': 'peerconnection_client',
niklase@google.comda159d62011-05-30 11:51:34 +000052 'type': 'executable',
53 'sources': [
54 'peerconnection/samples/client/conductor.cc',
55 'peerconnection/samples/client/conductor.h',
56 'peerconnection/samples/client/defaults.cc',
57 'peerconnection/samples/client/defaults.h',
58 'peerconnection/samples/client/main.cc',
59 'peerconnection/samples/client/main_wnd.cc',
60 'peerconnection/samples/client/main_wnd.h',
61 'peerconnection/samples/client/peer_connection_client.cc',
62 'peerconnection/samples/client/peer_connection_client.h',
niklase@google.comf6d205a2011-07-07 09:18:14 +000063 'third_party/libjingle/source/talk/base/win32socketinit.cc',
64 'third_party/libjingle/source/talk/base/win32socketserver.cc',
niklase@google.comda159d62011-05-30 11:51:34 +000065 ],
66 'msvs_settings': {
67 'VCLinkerTool': {
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000068 'SubSystem': '2', # Windows
niklase@google.comda159d62011-05-30 11:51:34 +000069 },
70 },
tommi@google.comaefcdf42011-05-31 15:49:22 +000071 'dependencies': [
ronghuawu@google.com35f53452011-08-05 22:08:29 +000072 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
tommi@google.comaefcdf42011-05-31 15:49:22 +000073 ],
74 'include_dirs': [
niklase@google.comf6d205a2011-07-07 09:18:14 +000075 'third_party/libjingle/source',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000076 'third_party_mods/libjingle/source',
tommi@google.comaefcdf42011-05-31 15:49:22 +000077 ],
78 },
79 ], # targets
80 }, ], # OS="win"
tommi@google.comb0d7a872011-08-10 09:03:29 +000081 ['OS=="linux"', {
82 'targets': [
83 {
84 'target_name': 'peerconnection_client',
85 'type': 'executable',
86 'sources': [
tommi@webrtc.org102b2272011-08-25 15:03:52 +000087 'peerconnection/samples/client/conductor.cc',
88 'peerconnection/samples/client/conductor.h',
89 'peerconnection/samples/client/defaults.cc',
90 'peerconnection/samples/client/defaults.h',
tommi@google.comb0d7a872011-08-10 09:03:29 +000091 'peerconnection/samples/client/linux/main.cc',
92 'peerconnection/samples/client/linux/main_wnd.cc',
93 'peerconnection/samples/client/linux/main_wnd.h',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000094 'peerconnection/samples/client/peer_connection_client.cc',
95 'peerconnection/samples/client/peer_connection_client.h',
tommi@google.comb0d7a872011-08-10 09:03:29 +000096 ],
97 'dependencies': [
98 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
99 # TODO(tommi): Switch to this and remove specific gtk dependency
100 # sections below for cflags and link_settings.
101 # '<(DEPTH)/build/linux/system.gyp:gtk',
102 ],
103 'include_dirs': [
104 'third_party/libjingle/source',
tommi@webrtc.org102b2272011-08-25 15:03:52 +0000105 'third_party_mods/libjingle/source',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000106 ],
107 'cflags': [
108 '<!@(pkg-config --cflags gtk+-2.0)',
109 ],
110 'link_settings': {
111 'ldflags': [
112 '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)',
113 ],
114 'libraries': [
115 '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)',
tommi@webrtc.org102b2272011-08-25 15:03:52 +0000116 '-lX11',
117 '-lXext',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000118 ],
119 },
120 },
121 ], # targets
122 }, ], # OS="linux"
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +0000123 ], # conditions
niklase@google.comda159d62011-05-30 11:51:34 +0000124}