| 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_srtp_boringssl = true | 6 use_srtp_boringssl = true |
| 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 if (current_cpu == "arm" || current_cpu == "arm64" || | 61 if (current_cpu == "arm" || current_cpu == "arm64" || |
| 62 current_cpu == "mipsel" || current_cpu == "mips64el") { | 62 current_cpu == "mipsel" || current_cpu == "mips64el") { |
| 63 # 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 |
| 64 # mips platforms for unknown reasons, need to investigate the root | 64 # mips platforms for unknown reasons, need to investigate the root |
| 65 # 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 |
| 66 # 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 |
| 67 # srtp test applications and libjingle. | 67 # srtp test applications and libjingle. |
| 68 defines += [ "CPU_CISC" ] | 68 defines += [ "CPU_CISC" ] |
| 69 } | 69 } |
| 70 if (current_cpu == "mipsel" || current_cpu == "arm" || current_cpu == "x86") { |
| 71 # Define FORCE_64BIT_ALIGN to avoid alignment-related-crashes like |
| 72 # crbug/414919. Without this, aes_cbc_alloc will allocate an |
| 73 # aes_cbc_ctx_t not 64-bit aligned and the v128_t members of |
| 74 # aes_cbc_ctx_t will not be 64-bit aligned, which breaks the |
| 75 # compiler optimizations that assume 64-bit alignment of v128_t. |
| 76 defines += [ "FORCE_64BIT_ALIGN" ] |
| 77 } |
| 70 } | 78 } |
| 71 | 79 |
| 72 static_library("libsrtp") { | 80 static_library("libsrtp") { |
| 73 configs -= [ "//build/config/compiler:chromium_code" ] | 81 configs -= [ "//build/config/compiler:chromium_code" ] |
| 74 configs += [ "//build/config/compiler:no_chromium_code" ] | 82 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 75 public_configs = [ ":libsrtp_config" ] | 83 public_configs = [ ":libsrtp_config" ] |
| 76 | 84 |
| 77 sources = [ | 85 sources = [ |
| 78 # includes | 86 # includes |
| 79 "srtp/include/ekt.h", | 87 "srtp/include/ekt.h", |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 ":srtp_test_stat_driver", | 377 ":srtp_test_stat_driver", |
| 370 ":srtp_test_sha1_driver", | 378 ":srtp_test_sha1_driver", |
| 371 ":srtp_test_kernel_driver", | 379 ":srtp_test_kernel_driver", |
| 372 ":srtp_test_aes_calc", | 380 ":srtp_test_aes_calc", |
| 373 ":srtp_test_rand_gen", | 381 ":srtp_test_rand_gen", |
| 374 ":srtp_test_rand_gen_soak", | 382 ":srtp_test_rand_gen_soak", |
| 375 ":srtp_test_env", | 383 ":srtp_test_env", |
| 376 ] | 384 ] |
| 377 } | 385 } |
| 378 } | 386 } |
| OLD | NEW |