OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 declare_args() { | 5 declare_args() { |
6 use_system_libsrtp = false | 6 use_system_libsrtp = false |
7 } | 7 } |
8 | 8 |
9 config("libsrtp_config") { | 9 config("libsrtp_config") { |
10 defines = [ | 10 defines = [ |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 } | 61 } |
62 | 62 |
63 config("system_libsrtp_config") { | 63 config("system_libsrtp_config") { |
64 defines = [ "USE_SYSTEM_LIBSRTP" ] | 64 defines = [ "USE_SYSTEM_LIBSRTP" ] |
65 include_dirs = [ "/usr/include/srtp" ] | 65 include_dirs = [ "/usr/include/srtp" ] |
66 } | 66 } |
67 | 67 |
68 if (use_system_libsrtp) { | 68 if (use_system_libsrtp) { |
69 group("libsrtp") { | 69 group("libsrtp") { |
70 direct_dependent_configs = [ ":libsrtp_config", ":system_libsrtp_config" ] | 70 public_configs = [ ":libsrtp_config", ":system_libsrtp_config" ] |
71 libs = [ "-lsrtp" ] | 71 libs = [ "-lsrtp" ] |
72 } | 72 } |
73 } else { | 73 } else { |
74 static_library("libsrtp") { | 74 static_library("libsrtp") { |
75 configs -= [ "//build/config/compiler:chromium_code" ] | 75 configs -= [ "//build/config/compiler:chromium_code" ] |
76 configs += [ "//build/config/compiler:no_chromium_code" ] | 76 configs += [ "//build/config/compiler:no_chromium_code" ] |
77 direct_dependent_configs = [ ":libsrtp_config" ] | 77 public_configs = [ ":libsrtp_config" ] |
78 | 78 |
79 sources = [ | 79 sources = [ |
80 # includes | 80 # includes |
81 "srtp/include/ekt.h", | 81 "srtp/include/ekt.h", |
82 "srtp/include/getopt_s.h", | 82 "srtp/include/getopt_s.h", |
83 "srtp/include/rtp.h", | 83 "srtp/include/rtp.h", |
84 "srtp/include/rtp_priv.h", | 84 "srtp/include/rtp_priv.h", |
85 "srtp/include/srtp.h", | 85 "srtp/include/srtp.h", |
86 "srtp/include/srtp_priv.h", | 86 "srtp/include/srtp_priv.h", |
87 "srtp/include/ut_sim.h", | 87 "srtp/include/ut_sim.h", |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 ":srtp_test_stat_driver", | 301 ":srtp_test_stat_driver", |
302 ":srtp_test_sha1_driver", | 302 ":srtp_test_sha1_driver", |
303 ":srtp_test_kernel_driver", | 303 ":srtp_test_kernel_driver", |
304 ":srtp_test_aes_calc", | 304 ":srtp_test_aes_calc", |
305 ":srtp_test_rand_gen", | 305 ":srtp_test_rand_gen", |
306 ":srtp_test_env", | 306 ":srtp_test_env", |
307 ] | 307 ] |
308 } | 308 } |
309 } | 309 } |
310 } | 310 } |
OLD | NEW |