Chromium Code Reviews| 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 | |
| 7 use_srtp_boringssl = true | 6 use_srtp_boringssl = true |
| 8 } | 7 } |
| 9 | 8 |
| 10 config("libsrtp_config") { | 9 config("libsrtp_config") { |
| 11 defines = [ | 10 defines = [ |
| 12 "HAVE_CONFIG_H", | 11 "HAVE_CONFIG_H", |
| 13 "HAVE_STDLIB_H", | 12 "HAVE_STDLIB_H", |
| 14 "HAVE_STRING_H", | 13 "HAVE_STRING_H", |
| 15 "TESTAPP_SOURCE", | 14 "TESTAPP_SOURCE", |
| 16 ] | 15 ] |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 current_cpu == "mipsel" || current_cpu == "mips64el") { | 62 current_cpu == "mipsel" || current_cpu == "mips64el") { |
| 64 # TODO(leozwang): CPU_RISC doesn't work properly on android/arm and | 63 # TODO(leozwang): CPU_RISC doesn't work properly on android/arm and |
| 65 # mips platforms for unknown reasons, need to investigate the root | 64 # mips platforms for unknown reasons, need to investigate the root |
| 66 # cause of it. CPU_RISC is used for optimization only, and CPU_CISC | 65 # cause of it. CPU_RISC is used for optimization only, and CPU_CISC |
| 67 # should just work just fine, it has been tested on android/arm with | 66 # should just work just fine, it has been tested on android/arm with |
| 68 # srtp test applications and libjingle. | 67 # srtp test applications and libjingle. |
| 69 defines += [ "CPU_CISC" ] | 68 defines += [ "CPU_CISC" ] |
| 70 } | 69 } |
| 71 } | 70 } |
| 72 | 71 |
| 73 config("system_libsrtp_config") { | 72 static_library("libsrtp") { |
|
davidben
2016/02/04 19:37:11
The diff is unfortunate. This *should* be just uni
| |
| 74 defines = [ "USE_SYSTEM_LIBSRTP" ] | 73 configs -= [ "//build/config/compiler:chromium_code" ] |
| 75 include_dirs = [ "/usr/include/srtp" ] | 74 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 76 } | 75 public_configs = [ ":libsrtp_config" ] |
| 77 | 76 |
| 78 if (use_system_libsrtp) { | 77 sources = [ |
| 79 group("libsrtp") { | 78 # includes |
| 80 public_configs = [ | 79 "srtp/include/ekt.h", |
| 81 ":libsrtp_config", | 80 "srtp/include/getopt_s.h", |
| 82 ":system_libsrtp_config", | 81 "srtp/include/rtp.h", |
| 83 ] | 82 "srtp/include/rtp_priv.h", |
| 84 libs = [ "-lsrtp" ] | 83 "srtp/include/srtp.h", |
| 85 } | 84 "srtp/include/srtp_priv.h", |
| 86 } else { | 85 "srtp/include/ut_sim.h", |
| 87 static_library("libsrtp") { | 86 |
| 88 configs -= [ "//build/config/compiler:chromium_code" ] | 87 # headers |
| 89 configs += [ "//build/config/compiler:no_chromium_code" ] | 88 "srtp/crypto/include/aes.h", |
| 90 public_configs = [ ":libsrtp_config" ] | 89 "srtp/crypto/include/aes_cbc.h", |
| 91 | 90 "srtp/crypto/include/aes_icm.h", |
| 92 sources = [ | 91 "srtp/crypto/include/alloc.h", |
| 93 # includes | 92 "srtp/crypto/include/auth.h", |
| 94 "srtp/include/ekt.h", | 93 "srtp/crypto/include/cipher.h", |
| 95 "srtp/include/getopt_s.h", | 94 "srtp/crypto/include/crypto.h", |
| 96 "srtp/include/rtp.h", | 95 "srtp/crypto/include/crypto_kernel.h", |
| 97 "srtp/include/rtp_priv.h", | 96 "srtp/crypto/include/crypto_math.h", |
| 98 "srtp/include/srtp.h", | 97 "srtp/crypto/include/crypto_types.h", |
| 99 "srtp/include/srtp_priv.h", | 98 "srtp/crypto/include/cryptoalg.h", |
| 100 "srtp/include/ut_sim.h", | 99 "srtp/crypto/include/datatypes.h", |
| 101 | 100 "srtp/crypto/include/err.h", |
| 102 # headers | 101 "srtp/crypto/include/gf2_8.h", |
| 103 "srtp/crypto/include/aes.h", | 102 "srtp/crypto/include/hmac.h", |
| 104 "srtp/crypto/include/aes_cbc.h", | 103 "srtp/crypto/include/integers.h", |
| 105 "srtp/crypto/include/aes_icm.h", | 104 "srtp/crypto/include/kernel_compat.h", |
| 106 "srtp/crypto/include/alloc.h", | 105 "srtp/crypto/include/key.h", |
| 107 "srtp/crypto/include/auth.h", | 106 "srtp/crypto/include/null_auth.h", |
| 108 "srtp/crypto/include/cipher.h", | 107 "srtp/crypto/include/null_cipher.h", |
| 109 "srtp/crypto/include/crypto.h", | 108 "srtp/crypto/include/prng.h", |
| 110 "srtp/crypto/include/crypto_kernel.h", | 109 "srtp/crypto/include/rand_source.h", |
| 111 "srtp/crypto/include/crypto_math.h", | 110 "srtp/crypto/include/rdb.h", |
| 112 "srtp/crypto/include/crypto_types.h", | 111 "srtp/crypto/include/rdbx.h", |
| 113 "srtp/crypto/include/cryptoalg.h", | 112 "srtp/crypto/include/sha1.h", |
| 114 "srtp/crypto/include/datatypes.h", | 113 "srtp/crypto/include/stat.h", |
| 115 "srtp/crypto/include/err.h", | 114 "srtp/crypto/include/xfm.h", |
| 116 "srtp/crypto/include/gf2_8.h", | 115 |
| 117 "srtp/crypto/include/hmac.h", | 116 # sources |
| 118 "srtp/crypto/include/integers.h", | 117 "srtp/crypto/cipher/aes.c", |
| 119 "srtp/crypto/include/kernel_compat.h", | 118 "srtp/crypto/cipher/aes_cbc.c", |
| 120 "srtp/crypto/include/key.h", | 119 "srtp/crypto/cipher/aes_icm.c", |
| 121 "srtp/crypto/include/null_auth.h", | 120 "srtp/crypto/cipher/cipher.c", |
| 122 "srtp/crypto/include/null_cipher.h", | 121 "srtp/crypto/cipher/null_cipher.c", |
| 123 "srtp/crypto/include/prng.h", | 122 "srtp/crypto/hash/auth.c", |
| 124 "srtp/crypto/include/rand_source.h", | 123 "srtp/crypto/hash/hmac.c", |
| 125 "srtp/crypto/include/rdb.h", | 124 "srtp/crypto/hash/null_auth.c", |
| 126 "srtp/crypto/include/rdbx.h", | 125 "srtp/crypto/hash/sha1.c", |
| 127 "srtp/crypto/include/sha1.h", | 126 "srtp/crypto/kernel/alloc.c", |
| 128 "srtp/crypto/include/stat.h", | 127 "srtp/crypto/kernel/crypto_kernel.c", |
| 129 "srtp/crypto/include/xfm.h", | 128 "srtp/crypto/kernel/err.c", |
| 130 | 129 "srtp/crypto/kernel/key.c", |
| 131 # sources | 130 "srtp/crypto/math/datatypes.c", |
| 132 "srtp/crypto/cipher/aes.c", | 131 "srtp/crypto/math/gf2_8.c", |
| 132 "srtp/crypto/math/stat.c", | |
| 133 "srtp/crypto/replay/rdb.c", | |
| 134 "srtp/crypto/replay/rdbx.c", | |
| 135 "srtp/crypto/replay/ut_sim.c", | |
| 136 "srtp/crypto/rng/ctr_prng.c", | |
| 137 "srtp/crypto/rng/prng.c", | |
| 138 "srtp/crypto/rng/rand_source.c", | |
| 139 "srtp/srtp/ekt.c", | |
| 140 "srtp/srtp/srtp.c", | |
| 141 ] | |
| 142 | |
| 143 if (is_clang) { | |
| 144 cflags = [ "-Wno-implicit-function-declaration" ] | |
| 145 } | |
| 146 | |
| 147 if (use_srtp_boringssl) { | |
| 148 deps = [ | |
| 149 "//third_party/boringssl:boringssl", | |
| 150 ] | |
| 151 public_deps = [ | |
| 152 "//third_party/boringssl:boringssl", | |
| 153 ] | |
| 154 sources -= [ | |
| 133 "srtp/crypto/cipher/aes_cbc.c", | 155 "srtp/crypto/cipher/aes_cbc.c", |
| 134 "srtp/crypto/cipher/aes_icm.c", | 156 "srtp/crypto/cipher/aes_icm.c", |
| 135 "srtp/crypto/cipher/cipher.c", | |
| 136 "srtp/crypto/cipher/null_cipher.c", | |
| 137 "srtp/crypto/hash/auth.c", | |
| 138 "srtp/crypto/hash/hmac.c", | 157 "srtp/crypto/hash/hmac.c", |
| 139 "srtp/crypto/hash/null_auth.c", | |
| 140 "srtp/crypto/hash/sha1.c", | 158 "srtp/crypto/hash/sha1.c", |
| 141 "srtp/crypto/kernel/alloc.c", | |
| 142 "srtp/crypto/kernel/crypto_kernel.c", | |
| 143 "srtp/crypto/kernel/err.c", | |
| 144 "srtp/crypto/kernel/key.c", | |
| 145 "srtp/crypto/math/datatypes.c", | |
| 146 "srtp/crypto/math/gf2_8.c", | |
| 147 "srtp/crypto/math/stat.c", | |
| 148 "srtp/crypto/replay/rdb.c", | |
| 149 "srtp/crypto/replay/rdbx.c", | |
| 150 "srtp/crypto/replay/ut_sim.c", | |
| 151 "srtp/crypto/rng/ctr_prng.c", | 159 "srtp/crypto/rng/ctr_prng.c", |
| 152 "srtp/crypto/rng/prng.c", | 160 "srtp/crypto/rng/prng.c", |
| 153 "srtp/crypto/rng/rand_source.c", | 161 "srtp/crypto/rng/rand_source.c", |
| 154 "srtp/srtp/ekt.c", | 162 ] |
| 155 "srtp/srtp/srtp.c", | 163 sources += [ |
| 156 ] | 164 "srtp/crypto/cipher/aes_gcm_ossl.c", |
| 157 | 165 "srtp/crypto/cipher/aes_icm_ossl.c", |
| 166 "srtp/crypto/hash/hmac_ossl.c", | |
| 167 "srtp/crypto/include/aes_gcm_ossl.h", | |
| 168 "srtp/crypto/include/aes_icm_ossl.h", | |
| 169 "srtp/crypto/rng/rand_source_ossl.c", | |
| 170 ] | |
| 171 } | |
| 172 } | |
| 173 | |
| 174 # TODO(GYP): A bunch of these tests don't compile (in gyp either). They're | |
| 175 # not very broken, so could probably be made to work if it's useful. | |
| 176 if (!is_win) { | |
| 177 executable("rdbx_driver") { | |
| 178 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 179 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 180 deps = [ | |
| 181 ":libsrtp", | |
| 182 ] | |
| 183 sources = [ | |
| 184 "srtp/include/getopt_s.h", | |
| 185 "srtp/test/getopt_s.c", | |
| 186 "srtp/test/rdbx_driver.c", | |
| 187 ] | |
| 188 } | |
| 189 | |
| 190 executable("srtp_driver") { | |
| 191 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 192 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 193 deps = [ | |
| 194 ":libsrtp", | |
| 195 ] | |
| 196 sources = [ | |
| 197 "srtp/include/getopt_s.h", | |
| 198 "srtp/include/srtp_priv.h", | |
| 199 "srtp/test/getopt_s.c", | |
| 200 "srtp/test/srtp_driver.c", | |
| 201 ] | |
| 202 } | |
| 203 | |
| 204 executable("roc_driver") { | |
| 205 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 206 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 207 deps = [ | |
| 208 ":libsrtp", | |
| 209 ] | |
| 210 sources = [ | |
| 211 "srtp/crypto/include/rdbx.h", | |
| 212 "srtp/include/ut_sim.h", | |
| 213 "srtp/test/roc_driver.c", | |
| 214 ] | |
| 215 } | |
| 216 | |
| 217 executable("replay_driver") { | |
| 218 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 219 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 220 deps = [ | |
| 221 ":libsrtp", | |
| 222 ] | |
| 223 sources = [ | |
| 224 "srtp/crypto/include/rdbx.h", | |
| 225 "srtp/include/ut_sim.h", | |
| 226 "srtp/test/replay_driver.c", | |
| 227 ] | |
| 228 } | |
| 229 | |
| 230 executable("rtpw") { | |
| 231 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 232 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 233 deps = [ | |
| 234 ":libsrtp", | |
| 235 ] | |
| 236 sources = [ | |
| 237 "srtp/crypto/include/datatypes.h", | |
| 238 "srtp/include/getopt_s.h", | |
| 239 "srtp/include/rtp.h", | |
| 240 "srtp/include/srtp.h", | |
| 241 "srtp/test/getopt_s.c", | |
| 242 "srtp/test/rtp.c", | |
| 243 "srtp/test/rtpw.c", | |
| 244 ] | |
| 245 if (is_android) { | |
| 246 defines = [ "HAVE_SYS_SOCKET_H" ] | |
| 247 } | |
| 158 if (is_clang) { | 248 if (is_clang) { |
| 159 cflags = [ "-Wno-implicit-function-declaration" ] | 249 cflags = [ "-Wno-implicit-function-declaration" ] |
| 160 } | 250 } |
| 161 | 251 } |
| 162 if (use_srtp_boringssl) { | 252 |
| 163 deps = [ | 253 executable("srtp_test_cipher_driver") { |
| 164 "//third_party/boringssl:boringssl", | 254 configs -= [ "//build/config/compiler:chromium_code" ] |
| 165 ] | 255 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 166 public_deps = [ | 256 deps = [ |
| 167 "//third_party/boringssl:boringssl", | 257 ":libsrtp", |
| 168 ] | 258 ] |
| 169 sources -= [ | 259 sources = [ |
| 170 "srtp/crypto/cipher/aes_cbc.c", | 260 "srtp/crypto/test/cipher_driver.c", |
| 171 "srtp/crypto/cipher/aes_icm.c", | 261 "srtp/include/getopt_s.h", |
| 172 "srtp/crypto/hash/hmac.c", | 262 "srtp/test/getopt_s.c", |
| 173 "srtp/crypto/hash/sha1.c", | 263 ] |
| 174 "srtp/crypto/rng/ctr_prng.c", | 264 } |
| 175 "srtp/crypto/rng/prng.c", | 265 |
| 176 "srtp/crypto/rng/rand_source.c", | 266 executable("srtp_test_datatypes_driver") { |
| 177 ] | 267 configs -= [ "//build/config/compiler:chromium_code" ] |
| 178 sources += [ | 268 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 179 "srtp/crypto/cipher/aes_gcm_ossl.c", | 269 deps = [ |
| 180 "srtp/crypto/cipher/aes_icm_ossl.c", | 270 ":libsrtp", |
| 181 "srtp/crypto/hash/hmac_ossl.c", | 271 ] |
| 182 "srtp/crypto/include/aes_gcm_ossl.h", | 272 sources = [ |
| 183 "srtp/crypto/include/aes_icm_ossl.h", | 273 "srtp/crypto/test/datatypes_driver.c", |
| 184 "srtp/crypto/rng/rand_source_ossl.c", | 274 ] |
| 185 ] | 275 } |
| 186 } | 276 |
| 187 } | 277 executable("srtp_test_stat_driver") { |
| 188 | 278 configs -= [ "//build/config/compiler:chromium_code" ] |
| 189 # TODO(GYP): A bunch of these tests don't compile (in gyp either). They're | 279 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 190 # not very broken, so could probably be made to work if it's useful. | 280 deps = [ |
| 191 if (!is_win) { | 281 ":libsrtp", |
| 192 executable("rdbx_driver") { | 282 ] |
| 193 configs -= [ "//build/config/compiler:chromium_code" ] | 283 sources = [ |
| 194 configs += [ "//build/config/compiler:no_chromium_code" ] | 284 "srtp/crypto/test/stat_driver.c", |
| 195 deps = [ | 285 ] |
| 196 ":libsrtp", | 286 } |
| 197 ] | 287 |
| 198 sources = [ | 288 executable("srtp_test_sha1_driver") { |
| 199 "srtp/include/getopt_s.h", | 289 configs -= [ "//build/config/compiler:chromium_code" ] |
| 200 "srtp/test/getopt_s.c", | 290 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 201 "srtp/test/rdbx_driver.c", | 291 deps = [ |
| 202 ] | 292 ":libsrtp", |
| 203 } | 293 ] |
| 204 | 294 sources = [ |
| 205 executable("srtp_driver") { | 295 "srtp/crypto/test/sha1_driver.c", |
| 206 configs -= [ "//build/config/compiler:chromium_code" ] | 296 ] |
| 207 configs += [ "//build/config/compiler:no_chromium_code" ] | 297 } |
| 208 deps = [ | 298 |
| 209 ":libsrtp", | 299 executable("srtp_test_kernel_driver") { |
| 210 ] | 300 configs -= [ "//build/config/compiler:chromium_code" ] |
| 211 sources = [ | 301 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 212 "srtp/include/getopt_s.h", | 302 deps = [ |
| 213 "srtp/include/srtp_priv.h", | 303 ":libsrtp", |
| 214 "srtp/test/getopt_s.c", | 304 ] |
| 215 "srtp/test/srtp_driver.c", | 305 sources = [ |
| 216 ] | 306 "srtp/crypto/test/kernel_driver.c", |
| 217 } | 307 "srtp/include/getopt_s.h", |
| 218 | 308 "srtp/test/getopt_s.c", |
| 219 executable("roc_driver") { | 309 ] |
| 220 configs -= [ "//build/config/compiler:chromium_code" ] | 310 } |
| 221 configs += [ "//build/config/compiler:no_chromium_code" ] | 311 |
| 222 deps = [ | 312 executable("srtp_test_aes_calc") { |
| 223 ":libsrtp", | 313 configs -= [ "//build/config/compiler:chromium_code" ] |
| 224 ] | 314 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 225 sources = [ | 315 deps = [ |
| 226 "srtp/crypto/include/rdbx.h", | 316 ":libsrtp", |
| 227 "srtp/include/ut_sim.h", | 317 ] |
| 228 "srtp/test/roc_driver.c", | 318 sources = [ |
| 229 ] | 319 "srtp/crypto/test/aes_calc.c", |
| 230 } | 320 ] |
| 231 | 321 } |
| 232 executable("replay_driver") { | 322 |
| 233 configs -= [ "//build/config/compiler:chromium_code" ] | 323 executable("srtp_test_rand_gen") { |
| 234 configs += [ "//build/config/compiler:no_chromium_code" ] | 324 configs -= [ "//build/config/compiler:chromium_code" ] |
| 235 deps = [ | 325 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 236 ":libsrtp", | 326 deps = [ |
| 237 ] | 327 ":libsrtp", |
| 238 sources = [ | 328 ] |
| 239 "srtp/crypto/include/rdbx.h", | 329 sources = [ |
| 240 "srtp/include/ut_sim.h", | 330 "srtp/crypto/test/rand_gen.c", |
| 241 "srtp/test/replay_driver.c", | 331 "srtp/include/getopt_s.h", |
| 242 ] | 332 "srtp/test/getopt_s.c", |
| 243 } | 333 ] |
| 244 | 334 } |
| 245 executable("rtpw") { | 335 |
| 246 configs -= [ "//build/config/compiler:chromium_code" ] | 336 executable("srtp_test_rand_gen_soak") { |
| 247 configs += [ "//build/config/compiler:no_chromium_code" ] | 337 configs -= [ "//build/config/compiler:chromium_code" ] |
| 248 deps = [ | 338 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 249 ":libsrtp", | 339 deps = [ |
| 250 ] | 340 ":libsrtp", |
| 251 sources = [ | 341 ] |
| 252 "srtp/crypto/include/datatypes.h", | 342 sources = [ |
| 253 "srtp/include/getopt_s.h", | 343 "srtp/crypto/test/rand_gen_soak.c", |
| 254 "srtp/include/rtp.h", | 344 "srtp/include/getopt_s.h", |
| 255 "srtp/include/srtp.h", | 345 "srtp/test/getopt_s.c", |
| 256 "srtp/test/getopt_s.c", | 346 ] |
| 257 "srtp/test/rtp.c", | 347 } |
| 258 "srtp/test/rtpw.c", | 348 |
| 259 ] | 349 executable("srtp_test_env") { |
| 260 if (is_android) { | 350 configs -= [ "//build/config/compiler:chromium_code" ] |
| 261 defines = [ "HAVE_SYS_SOCKET_H" ] | 351 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 262 } | 352 deps = [ |
| 263 if (is_clang) { | 353 ":libsrtp", |
| 264 cflags = [ "-Wno-implicit-function-declaration" ] | 354 ] |
| 265 } | 355 sources = [ |
| 266 } | 356 "srtp/crypto/test/env.c", |
| 267 | 357 ] |
| 268 executable("srtp_test_cipher_driver") { | 358 } |
| 269 configs -= [ "//build/config/compiler:chromium_code" ] | 359 |
| 270 configs += [ "//build/config/compiler:no_chromium_code" ] | 360 group("srtp_runtest") { |
| 271 deps = [ | 361 deps = [ |
| 272 ":libsrtp", | 362 ":rdbx_driver", |
| 273 ] | 363 ":srtp_driver", |
| 274 sources = [ | 364 ":roc_driver", |
| 275 "srtp/crypto/test/cipher_driver.c", | 365 ":replay_driver", |
| 276 "srtp/include/getopt_s.h", | 366 ":rtpw", |
| 277 "srtp/test/getopt_s.c", | 367 ":srtp_test_cipher_driver", |
| 278 ] | 368 ":srtp_test_datatypes_driver", |
| 279 } | 369 ":srtp_test_stat_driver", |
| 280 | 370 ":srtp_test_sha1_driver", |
| 281 executable("srtp_test_datatypes_driver") { | 371 ":srtp_test_kernel_driver", |
| 282 configs -= [ "//build/config/compiler:chromium_code" ] | 372 ":srtp_test_aes_calc", |
| 283 configs += [ "//build/config/compiler:no_chromium_code" ] | 373 ":srtp_test_rand_gen", |
| 284 deps = [ | 374 ":srtp_test_rand_gen_soak", |
| 285 ":libsrtp", | 375 ":srtp_test_env", |
| 286 ] | 376 ] |
| 287 sources = [ | |
| 288 "srtp/crypto/test/datatypes_driver.c", | |
| 289 ] | |
| 290 } | |
| 291 | |
| 292 executable("srtp_test_stat_driver") { | |
| 293 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 294 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 295 deps = [ | |
| 296 ":libsrtp", | |
| 297 ] | |
| 298 sources = [ | |
| 299 "srtp/crypto/test/stat_driver.c", | |
| 300 ] | |
| 301 } | |
| 302 | |
| 303 executable("srtp_test_sha1_driver") { | |
| 304 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 305 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 306 deps = [ | |
| 307 ":libsrtp", | |
| 308 ] | |
| 309 sources = [ | |
| 310 "srtp/crypto/test/sha1_driver.c", | |
| 311 ] | |
| 312 } | |
| 313 | |
| 314 executable("srtp_test_kernel_driver") { | |
| 315 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 316 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 317 deps = [ | |
| 318 ":libsrtp", | |
| 319 ] | |
| 320 sources = [ | |
| 321 "srtp/crypto/test/kernel_driver.c", | |
| 322 "srtp/include/getopt_s.h", | |
| 323 "srtp/test/getopt_s.c", | |
| 324 ] | |
| 325 } | |
| 326 | |
| 327 executable("srtp_test_aes_calc") { | |
| 328 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 329 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 330 deps = [ | |
| 331 ":libsrtp", | |
| 332 ] | |
| 333 sources = [ | |
| 334 "srtp/crypto/test/aes_calc.c", | |
| 335 ] | |
| 336 } | |
| 337 | |
| 338 executable("srtp_test_rand_gen") { | |
| 339 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 340 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 341 deps = [ | |
| 342 ":libsrtp", | |
| 343 ] | |
| 344 sources = [ | |
| 345 "srtp/crypto/test/rand_gen.c", | |
| 346 "srtp/include/getopt_s.h", | |
| 347 "srtp/test/getopt_s.c", | |
| 348 ] | |
| 349 } | |
| 350 | |
| 351 executable("srtp_test_rand_gen_soak") { | |
| 352 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 353 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 354 deps = [ | |
| 355 ":libsrtp", | |
| 356 ] | |
| 357 sources = [ | |
| 358 "srtp/crypto/test/rand_gen_soak.c", | |
| 359 "srtp/include/getopt_s.h", | |
| 360 "srtp/test/getopt_s.c", | |
| 361 ] | |
| 362 } | |
| 363 | |
| 364 executable("srtp_test_env") { | |
| 365 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 366 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 367 deps = [ | |
| 368 ":libsrtp", | |
| 369 ] | |
| 370 sources = [ | |
| 371 "srtp/crypto/test/env.c", | |
| 372 ] | |
| 373 } | |
| 374 | |
| 375 group("srtp_runtest") { | |
| 376 deps = [ | |
| 377 ":rdbx_driver", | |
| 378 ":srtp_driver", | |
| 379 ":roc_driver", | |
| 380 ":replay_driver", | |
| 381 ":rtpw", | |
| 382 ":srtp_test_cipher_driver", | |
| 383 ":srtp_test_datatypes_driver", | |
| 384 ":srtp_test_stat_driver", | |
| 385 ":srtp_test_sha1_driver", | |
| 386 ":srtp_test_kernel_driver", | |
| 387 ":srtp_test_aes_calc", | |
| 388 ":srtp_test_rand_gen", | |
| 389 ":srtp_test_rand_gen_soak", | |
| 390 ":srtp_test_env", | |
| 391 ] | |
| 392 } | |
| 393 } | 377 } |
| 394 } | 378 } |
| OLD | NEW |