You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

196 lines
6.7 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #
  2. # libjingle
  3. # Copyright 2012, Google Inc.
  4. #
  5. # Redistribution and use in source and binary forms, with or without
  6. # modification, are permitted provided that the following conditions are met:
  7. #
  8. # 1. Redistributions of source code must retain the above copyright notice,
  9. # this list of conditions and the following disclaimer.
  10. # 2. Redistributions in binary form must reproduce the above copyright notice,
  11. # this list of conditions and the following disclaimer in the documentation
  12. # and/or other materials provided with the distribution.
  13. # 3. The name of the author may not be used to endorse or promote products
  14. # derived from this software without specific prior written permission.
  15. #
  16. # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
  17. # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  18. # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
  19. # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  20. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  21. # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  22. # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  23. # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  24. # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  25. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. #
  27. {
  28. 'includes': [
  29. 'build/common.gypi',
  30. ],
  31. 'targets': [
  32. {
  33. 'target_name': 'libjingle_xmpphelp',
  34. 'type': 'static_library',
  35. 'dependencies': [
  36. '<(DEPTH)/third_party/expat/expat.gyp:expat',
  37. 'libjingle.gyp:libjingle',
  38. 'libjingle.gyp:libjingle_p2p',
  39. ],
  40. 'sources': [
  41. 'xmpp/jingleinfotask.cc',
  42. ],
  43. }, # target libjingle_xmpphelp
  44. {
  45. 'target_name': 'relayserver',
  46. 'type': 'executable',
  47. 'dependencies': [
  48. 'libjingle.gyp:libjingle',
  49. 'libjingle.gyp:libjingle_p2p',
  50. ],
  51. 'sources': [
  52. 'p2p/base/relayserver_main.cc',
  53. ],
  54. }, # target relayserver
  55. {
  56. 'target_name': 'stunserver',
  57. 'type': 'executable',
  58. 'dependencies': [
  59. 'libjingle.gyp:libjingle',
  60. 'libjingle.gyp:libjingle_p2p',
  61. ],
  62. 'sources': [
  63. 'p2p/base/stunserver_main.cc',
  64. ],
  65. }, # target stunserver
  66. {
  67. 'target_name': 'login',
  68. 'type': 'executable',
  69. 'dependencies': [
  70. 'libjingle_xmpphelp',
  71. ],
  72. 'sources': [
  73. 'examples/login/login_main.cc',
  74. ],
  75. }, # target login
  76. {
  77. 'target_name': 'peerconnection_server',
  78. 'type': 'executable',
  79. 'sources': [
  80. 'examples/peerconnection/server/data_socket.cc',
  81. 'examples/peerconnection/server/data_socket.h',
  82. 'examples/peerconnection/server/main.cc',
  83. 'examples/peerconnection/server/peer_channel.cc',
  84. 'examples/peerconnection/server/peer_channel.h',
  85. 'examples/peerconnection/server/utils.cc',
  86. 'examples/peerconnection/server/utils.h',
  87. ],
  88. 'dependencies': [
  89. 'libjingle.gyp:libjingle',
  90. ],
  91. # TODO(ronghuawu): crbug.com/167187 fix size_t to int truncations.
  92. 'msvs_disabled_warnings': [ 4309, ],
  93. }, # target peerconnection_server
  94. ],
  95. 'conditions': [
  96. ['OS!="android"', {
  97. 'targets': [
  98. {
  99. 'target_name': 'call',
  100. 'type': 'executable',
  101. 'dependencies': [
  102. 'libjingle.gyp:libjingle_p2p',
  103. 'libjingle_xmpphelp',
  104. ],
  105. 'sources': [
  106. 'examples/call/call_main.cc',
  107. 'examples/call/callclient.cc',
  108. 'examples/call/console.cc',
  109. 'examples/call/friendinvitesendtask.cc',
  110. 'examples/call/mediaenginefactory.cc',
  111. 'examples/call/mucinviterecvtask.cc',
  112. 'examples/call/mucinvitesendtask.cc',
  113. 'examples/call/presencepushtask.cc',
  114. ],
  115. 'conditions': [
  116. ['OS=="linux"', {
  117. 'link_settings': {
  118. 'libraries': [
  119. '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)',
  120. ],
  121. },
  122. }],
  123. ['OS=="win"', {
  124. 'msvs_settings': {
  125. 'VCLinkerTool': {
  126. 'AdditionalDependencies': [
  127. 'strmiids.lib',
  128. ],
  129. },
  130. },
  131. }],
  132. ], # conditions
  133. }, # target call
  134. ], # targets
  135. }], # OS!="android"
  136. ['OS=="linux" or OS=="win"', {
  137. 'targets': [
  138. {
  139. 'target_name': 'peerconnection_client',
  140. 'type': 'executable',
  141. 'sources': [
  142. 'examples/peerconnection/client/conductor.cc',
  143. 'examples/peerconnection/client/conductor.h',
  144. 'examples/peerconnection/client/defaults.cc',
  145. 'examples/peerconnection/client/defaults.h',
  146. 'examples/peerconnection/client/peer_connection_client.cc',
  147. 'examples/peerconnection/client/peer_connection_client.h',
  148. ],
  149. 'dependencies': [
  150. '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
  151. 'libjingle.gyp:libjingle_peerconnection',
  152. ],
  153. 'conditions': [
  154. # TODO(ronghuawu): Move these files to a win/ directory then they
  155. # can be excluded automatically.
  156. ['OS=="win"', {
  157. 'sources': [
  158. 'examples/peerconnection/client/main.cc',
  159. 'examples/peerconnection/client/main_wnd.cc',
  160. 'examples/peerconnection/client/main_wnd.h',
  161. ],
  162. 'msvs_settings': {
  163. 'VCLinkerTool': {
  164. 'SubSystem': '2', # Windows
  165. },
  166. },
  167. }], # OS=="win"
  168. ['OS=="linux"', {
  169. 'sources': [
  170. 'examples/peerconnection/client/linux/main.cc',
  171. 'examples/peerconnection/client/linux/main_wnd.cc',
  172. 'examples/peerconnection/client/linux/main_wnd.h',
  173. ],
  174. 'cflags': [
  175. '<!@(pkg-config --cflags gtk+-2.0)',
  176. ],
  177. 'link_settings': {
  178. 'ldflags': [
  179. '<!@(pkg-config --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)',
  180. ],
  181. 'libraries': [
  182. '<!@(pkg-config --libs-only-l gtk+-2.0 gthread-2.0)',
  183. '-lX11',
  184. '-lXcomposite',
  185. '-lXext',
  186. '-lXrender',
  187. ],
  188. },
  189. }], # OS=="linux"
  190. ], # conditions
  191. }, # target peerconnection_client
  192. ], # targets
  193. }], # OS=="linux" or OS=="win"
  194. ],
  195. }