Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / build / secondary / third_party / libsrtp / BUILD.gn
index ba6dba0..b0e0a91 100644 (file)
@@ -67,14 +67,14 @@ config("system_libsrtp_config") {
 
 if (use_system_libsrtp) {
   group("libsrtp") {
-    direct_dependent_configs = [ ":libsrtp_config", ":system_libsrtp_config" ]
+    public_configs = [ ":libsrtp_config", ":system_libsrtp_config" ]
     libs = [ "-lsrtp" ]
   }
 } else {
   static_library("libsrtp") {
     configs -= [ "//build/config/compiler:chromium_code" ]
     configs += [ "//build/config/compiler:no_chromium_code" ]
-    configs += [ ":libsrtp_config" ]
+    public_configs = [ ":libsrtp_config" ]
 
     sources = [
       # includes
@@ -142,6 +142,10 @@ if (use_system_libsrtp) {
       "srtp/crypto/rng/prng.c",
       "srtp/crypto/rng/rand_source.c",
     ]
+
+    if (is_clang) {
+      cflags = [ "-Wno-implicit-function-declaration" ]
+    }
   }
 
   # TODO(GYP): A bunch of these tests don't compile (in gyp either). They're
@@ -150,7 +154,6 @@ if (use_system_libsrtp) {
     executable("rdbx_driver") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/include/getopt_s.h",
@@ -162,7 +165,6 @@ if (use_system_libsrtp) {
     executable("srtp_driver") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/include/getopt_s.h",
@@ -175,7 +177,6 @@ if (use_system_libsrtp) {
     executable("roc_driver") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/crypto/include/rdbx.h",
@@ -187,7 +188,6 @@ if (use_system_libsrtp) {
     executable("replay_driver") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/crypto/include/rdbx.h",
@@ -199,7 +199,6 @@ if (use_system_libsrtp) {
     executable("rtpw") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/include/getopt_s.h",
@@ -213,12 +212,14 @@ if (use_system_libsrtp) {
       if (is_android) {
         defines = [ "HAVE_SYS_SOCKET_H" ]
       }
+      if (is_clang) {
+        cflags = [ "-Wno-implicit-function-declaration" ]
+      }
     }
 
     executable("srtp_test_cipher_driver") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/crypto/test/cipher_driver.c",
@@ -228,7 +229,6 @@ if (use_system_libsrtp) {
     executable("srtp_test_datatypes_driver") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/crypto/test/datatypes_driver.c",
@@ -238,7 +238,6 @@ if (use_system_libsrtp) {
     executable("srtp_test_stat_driver") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/crypto/test/stat_driver.c",
@@ -248,7 +247,6 @@ if (use_system_libsrtp) {
     executable("srtp_test_sha1_driver") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/crypto/test/sha1_driver.c",
@@ -258,7 +256,6 @@ if (use_system_libsrtp) {
     executable("srtp_test_kernel_driver") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/crypto/test/kernel_driver.c",
@@ -268,7 +265,6 @@ if (use_system_libsrtp) {
     executable("srtp_test_aes_calc") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/crypto/test/aes_calc.c",
@@ -278,7 +274,6 @@ if (use_system_libsrtp) {
     executable("srtp_test_rand_gen") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/crypto/test/rand_gen.c",
@@ -288,7 +283,6 @@ if (use_system_libsrtp) {
     executable("srtp_test_env") {
       configs -= [ "//build/config/compiler:chromium_code" ]
       configs += [ "//build/config/compiler:no_chromium_code" ]
-      configs += [ ":libsrtp_config" ]
       deps = [ ":libsrtp" ]
       sources = [
         "srtp/crypto/test/env.c",