blob: 90ca0b736bdce08f7b0b287ce341e53220ab71ac [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:*',
kjellander@webrtc.org82d91ae2011-12-05 13:03:38 +000024 'test/test.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': [
xians@webrtc.org0dffc642011-11-30 15:35:44 +000043 ['build_with_chromium==1', {
44 # Exclude components in engine_configuration.h.
45 'defines': [
46 'WEBRTC_CHROMIUM_BUILD',
47 ],
48 }, ], # build_with_chromium=1
tommi@google.comaefcdf42011-05-31 15:49:22 +000049 ['OS=="win"', {
50 'targets': [
51 {
52 'target_name': 'peerconnection_client',
niklase@google.comda159d62011-05-30 11:51:34 +000053 'type': 'executable',
54 'sources': [
55 'peerconnection/samples/client/conductor.cc',
56 'peerconnection/samples/client/conductor.h',
57 'peerconnection/samples/client/defaults.cc',
58 'peerconnection/samples/client/defaults.h',
59 'peerconnection/samples/client/main.cc',
60 'peerconnection/samples/client/main_wnd.cc',
61 'peerconnection/samples/client/main_wnd.h',
62 'peerconnection/samples/client/peer_connection_client.cc',
63 'peerconnection/samples/client/peer_connection_client.h',
niklase@google.comf6d205a2011-07-07 09:18:14 +000064 'third_party/libjingle/source/talk/base/win32socketinit.cc',
65 'third_party/libjingle/source/talk/base/win32socketserver.cc',
niklase@google.comda159d62011-05-30 11:51:34 +000066 ],
67 'msvs_settings': {
68 'VCLinkerTool': {
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000069 'SubSystem': '2', # Windows
niklase@google.comda159d62011-05-30 11:51:34 +000070 },
71 },
tommi@google.comaefcdf42011-05-31 15:49:22 +000072 'dependencies': [
ronghuawu@google.com35f53452011-08-05 22:08:29 +000073 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
tommi@google.comaefcdf42011-05-31 15:49:22 +000074 ],
75 'include_dirs': [
niklase@google.comf6d205a2011-07-07 09:18:14 +000076 'third_party/libjingle/source',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000077 'third_party_mods/libjingle/source',
tommi@google.comaefcdf42011-05-31 15:49:22 +000078 ],
79 },
80 ], # targets
81 }, ], # OS="win"
tommi@google.comb0d7a872011-08-10 09:03:29 +000082 ['OS=="linux"', {
83 'targets': [
84 {
85 'target_name': 'peerconnection_client',
86 'type': 'executable',
87 'sources': [
tommi@webrtc.org102b2272011-08-25 15:03:52 +000088 'peerconnection/samples/client/conductor.cc',
89 'peerconnection/samples/client/conductor.h',
90 'peerconnection/samples/client/defaults.cc',
91 'peerconnection/samples/client/defaults.h',
tommi@google.comb0d7a872011-08-10 09:03:29 +000092 'peerconnection/samples/client/linux/main.cc',
93 'peerconnection/samples/client/linux/main_wnd.cc',
94 'peerconnection/samples/client/linux/main_wnd.h',
tommi@webrtc.org102b2272011-08-25 15:03:52 +000095 'peerconnection/samples/client/peer_connection_client.cc',
96 'peerconnection/samples/client/peer_connection_client.h',
tommi@google.comb0d7a872011-08-10 09:03:29 +000097 ],
98 'dependencies': [
99 'third_party_mods/libjingle/libjingle.gyp:libjingle_app',
100 # TODO(tommi): Switch to this and remove specific gtk dependency
101 # sections below for cflags and link_settings.
102 # '<(DEPTH)/build/linux/system.gyp:gtk',
103 ],
104 'include_dirs': [
105 'third_party/libjingle/source',
tommi@webrtc.org102b2272011-08-25 15:03:52 +0000106 'third_party_mods/libjingle/source',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000107 ],
108 'cflags': [
109 '<!@(pkg-config --cflags gtk+-2.0)',
110 ],
111 'link_settings': {
112 'ldflags': [
113 '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)',
114 ],
115 'libraries': [
116 '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)',
tommi@webrtc.org102b2272011-08-25 15:03:52 +0000117 '-lX11',
118 '-lXext',
tommi@google.comb0d7a872011-08-10 09:03:29 +0000119 ],
120 },
121 },
122 ], # targets
123 }, ], # OS="linux"
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +0000124 ], # conditions
niklase@google.comda159d62011-05-30 11:51:34 +0000125}