Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / BUILD.gn
index a86c8a7..04618bf 100644 (file)
@@ -6,6 +6,8 @@
 # in the file PATENTS.  All contributing project authors may
 # be found in the AUTHORS file in the root of the source tree.
 
+# TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330.
+
 import("//build/config/arm.gni")
 import("//build/config/crypto.gni")
 import("//build/config/linux/pkg_config.gni")
@@ -61,8 +63,10 @@ config("common_inherited_config") {
   }
 }
 
-pkg_config("dbus-glib") {
-  packages = [ "dbus-glib-1" ]
+if (have_dbus_glib) {
+  pkg_config("dbus-glib") {
+    packages = [ "dbus-glib-1" ]
+  }
 }
 
 config("common_config") {
@@ -168,7 +172,46 @@ config("common_config") {
 }
 
 static_library("webrtc") {
+  sources = [
+    "call.h",
+    "config.h",
+    "experiments.h",
+    "frame_callback.h",
+    "transport.h",
+  ]
+
+  direct_dependent_configs = [ ":common_inherited_config"]
+
   deps = [
+    ":webrtc_common",
     "base:webrtc_base",
+    "common_audio",
+    "common_video",
+    "modules/audio_coding",
+    "modules/audio_conference_mixer",
+    "modules/audio_device",
+    "modules/audio_processing",
+    "modules/bitrate_controller",
+    "modules/desktop_capture",
+    "modules/media_file",
+    "modules/rtp_rtcp",
+    "modules/utility",
+    "modules/video_capture",
+    "modules/video_coding",
+    "modules/video_processing",
+    "modules/video_render",
+    "system_wrappers",
+    "video",
+    "video_engine",
+    "voice_engine",
   ]
 }
+
+source_set("webrtc_common") {
+  sources = [
+    "config.h",
+    "config.cc",
+  ]
+
+  configs += [ ":common_inherited_config"]
+}