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
"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
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",
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",
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",
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",
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",
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",
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",
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",
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",
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",
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",
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",
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",