| # Copyright 2020 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| config("ogg_include_config") { |
| include_dirs = [ "include" ] |
| } |
| |
| source_set("ogg") { |
| sources = [ |
| "include/ogg/ogg.h", |
| "include/ogg/os_types.h", |
| "src/bitwise.c", |
| "src/crctable.h", |
| "src/framing.c", |
| ] |
| |
| public_configs = [ ":ogg_include_config" ] |
| |
| configs += [ "//build/config:Wno-conversion" ] |
| configs += [ ":undefined_behavior_pointer_overflow" ] |
| } |
| |
| config("undefined_behavior_pointer_overflow") { |
| cflags = [ "-fno-sanitize=pointer-overflow" ] |
| } |