BUILD.gn 667 B

1234567891011121314151617181920212223242526
  1. # Copyright 2020 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. config("neon_2_sse_include") {
  5. include_dirs = [ "src" ]
  6. }
  7. # Keep as a public config since TFLite's BUILD references it directly.
  8. config("neon_2_sse_flags") {
  9. if (target_cpu == "x64") {
  10. cflags = [ "-Wno-deprecated-declarations" ]
  11. }
  12. }
  13. source_set("neon_2_sse") {
  14. public = [ "src/NEON_2_SSE.h" ]
  15. configs -= [ "//build/config/compiler:chromium_code" ]
  16. configs += [ "//build/config/compiler:no_chromium_code" ]
  17. public_configs = [
  18. ":neon_2_sse_include",
  19. ":neon_2_sse_flags",
  20. ]
  21. }