| # Copyright 2020 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| config("gemmlowp_include") { |
| include_dirs = [ "src" ] |
| if (target_os == "win" && target_cpu == "arm64") { |
| # https://crbug.com/1182242 - Neon extensions are temporarily disabled |
| # for this component on Windows on Arm due to compilation errors. |
| defines = [ "GEMMLOWP_ALLOW_INLINE_ASM" ] |
| } |
| |
| if (is_clang) { |
| # Gemmlowp doesn't have the annotations to support this analysis, so |
| # building with this flag enabled results in spurious warnings. |
| cflags_cc = [ "-Wno-thread-safety" ] |
| } |
| } |
| source_set("gemmlowp") { |
| public = [ |
| "src/fixedpoint/fixedpoint.h", |
| "src/public/bit_depth.h", |
| "src/public/gemmlowp.h", |
| "src/public/map.h", |
| "src/public/output_stages.h", |
| ] |
| public_configs = [ ":gemmlowp_include" ] |
| } |