| 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 import("//build/config/arm.gni") | 5 import("//build/config/arm.gni") |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//third_party/libvpx/libvpx_srcs.gni") | 7 import("//third_party/libvpx/libvpx_srcs.gni") |
| 8 import("//third_party/yasm/yasm_assemble.gni") | 8 import("//third_party/yasm/yasm_assemble.gni") |
| 9 | 9 |
| 10 if (is_posix && !is_mac) { | 10 if (is_posix && !is_mac) { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 sources = libvpx_srcs_x86_mmx | 82 sources = libvpx_srcs_x86_mmx |
| 83 } else if (current_cpu == "x64") { | 83 } else if (current_cpu == "x64") { |
| 84 sources = libvpx_srcs_x86_64_mmx | 84 sources = libvpx_srcs_x86_64_mmx |
| 85 } | 85 } |
| 86 } | 86 } |
| 87 | 87 |
| 88 static_library("libvpx_intrinsics_sse2") { | 88 static_library("libvpx_intrinsics_sse2") { |
| 89 configs += [ ":libvpx_config" ] | 89 configs += [ ":libvpx_config" ] |
| 90 configs -= [ "//build/config/compiler:chromium_code" ] | 90 configs -= [ "//build/config/compiler:chromium_code" ] |
| 91 configs += [ "//build/config/compiler:no_chromium_code" ] | 91 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 92 if (!is_win) { | 92 if (!is_win || is_clang) { |
| 93 cflags = [ "-msse2" ] | 93 cflags = [ "-msse2" ] |
| 94 } | 94 } |
| 95 if (current_cpu == "x86") { | 95 if (current_cpu == "x86") { |
| 96 sources = libvpx_srcs_x86_sse2 | 96 sources = libvpx_srcs_x86_sse2 |
| 97 } else if (current_cpu == "x64") { | 97 } else if (current_cpu == "x64") { |
| 98 sources = libvpx_srcs_x86_64_sse2 | 98 sources = libvpx_srcs_x86_64_sse2 |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 | 101 |
| 102 static_library("libvpx_intrinsics_ssse3") { | 102 static_library("libvpx_intrinsics_ssse3") { |
| 103 configs += [ ":libvpx_config" ] | 103 configs += [ ":libvpx_config" ] |
| 104 configs -= [ "//build/config/compiler:chromium_code" ] | 104 configs -= [ "//build/config/compiler:chromium_code" ] |
| 105 configs += [ "//build/config/compiler:no_chromium_code" ] | 105 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 106 if (!is_win) { | 106 if (!is_win || is_clang) { |
| 107 cflags = [ "-mssse3" ] | 107 cflags = [ "-mssse3" ] |
| 108 } | 108 } |
| 109 if (current_cpu == "x86") { | 109 if (current_cpu == "x86") { |
| 110 sources = libvpx_srcs_x86_ssse3 | 110 sources = libvpx_srcs_x86_ssse3 |
| 111 } else if (current_cpu == "x64") { | 111 } else if (current_cpu == "x64") { |
| 112 sources = libvpx_srcs_x86_64_ssse3 | 112 sources = libvpx_srcs_x86_64_ssse3 |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 | 115 |
| 116 static_library("libvpx_intrinsics_sse4_1") { | 116 static_library("libvpx_intrinsics_sse4_1") { |
| 117 configs += [ ":libvpx_config" ] | 117 configs += [ ":libvpx_config" ] |
| 118 configs -= [ "//build/config/compiler:chromium_code" ] | 118 configs -= [ "//build/config/compiler:chromium_code" ] |
| 119 configs += [ "//build/config/compiler:no_chromium_code" ] | 119 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 120 if (!is_win) { | 120 if (!is_win || is_clang) { |
| 121 cflags = [ "-msse4.1" ] | 121 cflags = [ "-msse4.1" ] |
| 122 } | 122 } |
| 123 if (current_cpu == "x86") { | 123 if (current_cpu == "x86") { |
| 124 sources = libvpx_srcs_x86_sse4_1 | 124 sources = libvpx_srcs_x86_sse4_1 |
| 125 } else if (current_cpu == "x64") { | 125 } else if (current_cpu == "x64") { |
| 126 sources = libvpx_srcs_x86_64_sse4_1 | 126 sources = libvpx_srcs_x86_64_sse4_1 |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 | 129 |
| 130 static_library("libvpx_intrinsics_avx2") { | 130 static_library("libvpx_intrinsics_avx2") { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 } | 244 } |
| 245 if (is_android) { | 245 if (is_android) { |
| 246 deps += [ "//third_party/android_tools:cpu_features" ] | 246 deps += [ "//third_party/android_tools:cpu_features" ] |
| 247 } | 247 } |
| 248 if (current_cpu == "arm") { | 248 if (current_cpu == "arm") { |
| 249 deps += [ ":libvpx_assembly_arm" ] | 249 deps += [ ":libvpx_assembly_arm" ] |
| 250 } | 250 } |
| 251 | 251 |
| 252 public_configs = [ ":libvpx_external_config" ] | 252 public_configs = [ ":libvpx_external_config" ] |
| 253 } | 253 } |
| OLD | NEW |