blob: 35e2b7e61fe5e20341083cb59dcb1d177a876030 [file]
# 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.
source_root = "//third_party/ogg-migrating/src"
config("ogg_include_config") {
include_dirs = [ "$source_root/include" ]
}
source_set("ogg") {
sources = [
"$source_root/include/ogg/ogg.h",
"$source_root/include/ogg/os_types.h",
"$source_root/src/bitwise.c",
"$source_root/src/crctable.h",
"$source_root/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" ]
}