1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
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.
9 import("../../build/webrtc.gni")
11 source_set("video_render") {
13 "external/video_render_external_impl.cc",
14 "external/video_render_external_impl.h",
16 "include/video_render.h",
17 "include/video_render_defines.h",
18 "incoming_video_stream.cc",
19 "incoming_video_stream.h",
20 "video_render_frames.cc",
21 "video_render_frames.h",
22 "video_render_impl.h",
27 "../../system_wrappers",
31 configs += [ "../..:common_config" ]
32 public_configs = [ "../..:common_inherited_config" ]
35 # Suppress warnings from Chrome's Clang plugins.
36 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
37 configs -= [ "//build/config/clang:find_bad_constructs" ]
41 source_set("video_render_impl") {
43 "video_render_impl.cc",
47 "../../system_wrappers",
50 configs += [ "../..:common_config" ]
51 public_configs = [ "../..:common_inherited_config" ]
54 # Suppress warnings from Chrome's Clang plugins.
55 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
56 configs -= [ "//build/config/clang:find_bad_constructs" ]
60 config("video_render_internal_impl_config") {
64 "QuartzCore.framework",
69 source_set("video_render_internal_impl") {
72 "video_render_internal_impl.cc",
76 "../../system_wrappers",
81 "linux/video_render_linux_impl.cc",
82 "linux/video_render_linux_impl.h",
83 "linux/video_x11_channel.cc",
84 "linux/video_x11_channel.h",
85 "linux/video_x11_render.cc",
86 "linux/video_x11_render.h",
93 "mac/cocoa_full_screen_window.h",
94 "mac/cocoa_full_screen_window.mm",
95 "mac/cocoa_render_view.h",
96 "mac/cocoa_render_view.mm",
97 "mac/video_render_agl.cc",
98 "mac/video_render_agl.h",
99 "mac/video_render_mac_carbon_impl.cc",
100 "mac/video_render_mac_carbon_impl.h",
101 "mac/video_render_mac_cocoa_impl.h",
102 "mac/video_render_mac_cocoa_impl.mm",
103 "mac/video_render_nsopengl.h",
104 "mac/video_render_nsopengl.mm",
108 "CoreVideo.framework",
114 "windows/i_video_render_win.h",
115 "windows/video_render_direct3d9.cc",
116 "windows/video_render_direct3d9.h",
117 "windows/video_render_windows_impl.cc",
118 "windows/video_render_windows_impl.h",
122 (exec_script("//build/dir_exists.py",
123 [ rebase_path("//third_party/directxsdk/files",
125 "trim string") == "True")
126 if (directxsdk_exists) {
127 directxsdk_path = "//third_party/directxsdk/files"
129 directxsdk_path = getenv("DXSDK_DIR")
131 include_dirs = [ directxsdk_path + "/Include" ]
135 "android/video_render_android_impl.cc",
136 "android/video_render_android_impl.h",
137 "android/video_render_android_native_opengl2.cc",
138 "android/video_render_android_native_opengl2.h",
139 "android/video_render_android_surface_view.cc",
140 "android/video_render_android_surface_view.h",
141 "android/video_render_opengles20.cc",
142 "android/video_render_opengles20.h",
150 "ios/open_gles20.mm",
151 "ios/video_render_ios_channel.h",
152 "ios/video_render_ios_channel.mm",
153 "ios/video_render_ios_gles20.h",
154 "ios/video_render_ios_gles20.mm",
155 "ios/video_render_ios_impl.h",
156 "ios/video_render_ios_impl.mm",
157 "ios/video_render_ios_view.h",
158 "ios/video_render_ios_view.mm",
161 cflags += [ "-fobjc-arc" ] # CLANG_ENABLE_OBJC_ARC = YES.
164 all_dependent_configs = [ ":video_render_internal_impl_config"]
166 configs += [ "../..:common_config" ]
167 public_configs = [ "../..:common_inherited_config" ]
170 # Suppress warnings from Chrome's Clang plugins.
171 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
172 configs -= [ "//build/config/clang:find_bad_constructs" ]