| 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 27 matching lines...) Expand all Loading... |
| 38 defines += [ | 38 defines += [ |
| 39 "INLINE=__inline", | 39 "INLINE=__inline", |
| 40 "HAVE_BYTESWAP_METHODS_H", | 40 "HAVE_BYTESWAP_METHODS_H", |
| 41 | 41 |
| 42 # All Windows architectures are this way. | 42 # All Windows architectures are this way. |
| 43 "SIZEOF_UNSIGNED_LONG=4", | 43 "SIZEOF_UNSIGNED_LONG=4", |
| 44 "SIZEOF_UNSIGNED_LONG_LONG=8", | 44 "SIZEOF_UNSIGNED_LONG_LONG=8", |
| 45 ] | 45 ] |
| 46 } | 46 } |
| 47 | 47 |
| 48 if (current_cpu == "x64" || current_cpu == "x86" || current_cpu == "arm") { | 48 if (cpu_arch == "x64" || cpu_arch == "x86" || cpu_arch == "arm") { |
| 49 defines += [ | 49 defines += [ |
| 50 # TODO(leozwang): CPU_RISC doesn"t work properly on android/arm | 50 # TODO(leozwang): CPU_RISC doesn"t work properly on android/arm |
| 51 # platform for unknown reasons, need to investigate the root cause | 51 # platform for unknown reasons, need to investigate the root cause |
| 52 # of it. CPU_RISC is used for optimization only, and CPU_CISC should | 52 # of it. CPU_RISC is used for optimization only, and CPU_CISC should |
| 53 # just work just fine, it has been tested on android/arm with srtp | 53 # just work just fine, it has been tested on android/arm with srtp |
| 54 # test applications and libjingle. | 54 # test applications and libjingle. |
| 55 "CPU_CISC", | 55 "CPU_CISC", |
| 56 ] | 56 ] |
| 57 } | 57 } |
| 58 | 58 |
| 59 if (current_cpu == "mipsel") { | 59 if (cpu_arch == "mipsel") { |
| 60 defines += [ "CPU_RISC" ] | 60 defines += [ "CPU_RISC" ] |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | 63 |
| 64 config("system_libsrtp_config") { | 64 config("system_libsrtp_config") { |
| 65 defines = [ "USE_SYSTEM_LIBSRTP" ] | 65 defines = [ "USE_SYSTEM_LIBSRTP" ] |
| 66 include_dirs = [ "/usr/include/srtp" ] | 66 include_dirs = [ "/usr/include/srtp" ] |
| 67 } | 67 } |
| 68 | 68 |
| 69 if (use_system_libsrtp) { | 69 if (use_system_libsrtp) { |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 ":srtp_test_stat_driver", | 330 ":srtp_test_stat_driver", |
| 331 ":srtp_test_sha1_driver", | 331 ":srtp_test_sha1_driver", |
| 332 ":srtp_test_kernel_driver", | 332 ":srtp_test_kernel_driver", |
| 333 ":srtp_test_aes_calc", | 333 ":srtp_test_aes_calc", |
| 334 ":srtp_test_rand_gen", | 334 ":srtp_test_rand_gen", |
| 335 ":srtp_test_env", | 335 ":srtp_test_env", |
| 336 ] | 336 ] |
| 337 } | 337 } |
| 338 } | 338 } |
| 339 } | 339 } |
| OLD | NEW |