mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 23:08:35 +00:00
51 lines
1.3 KiB
Python
51 lines
1.3 KiB
Python
# Copyright 2026 The LibYuv Project Authors. All rights reserved.
|
|
#
|
|
# Shared target definitions for Bazel and Blaze builds.
|
|
|
|
def libyuv_srcs(prefix = ""):
|
|
return native.glob(
|
|
[
|
|
prefix + "source/*.cc",
|
|
prefix + "include/libyuv/*.h",
|
|
],
|
|
exclude = [
|
|
prefix + "source/*neon*.cc",
|
|
prefix + "source/*rvv*.cc",
|
|
prefix + "source/*sve*.cc",
|
|
prefix + "source/*sme*.cc",
|
|
],
|
|
)
|
|
|
|
def libyuv_hdrs(prefix = ""):
|
|
return [
|
|
prefix + "include/libyuv/compare.h",
|
|
prefix + "include/libyuv/convert.h",
|
|
prefix + "include/libyuv/convert_from_argb.h",
|
|
prefix + "include/libyuv/cpu_id.h",
|
|
prefix + "include/libyuv/row.h", # Bug 553148013: Should be private.
|
|
]
|
|
|
|
def libyuv_neon_srcs(prefix = ""):
|
|
return native.glob([
|
|
prefix + "source/*neon*.cc",
|
|
prefix + "include/libyuv/*.h",
|
|
])
|
|
|
|
def libyuv_rvv_srcs(prefix = ""):
|
|
return native.glob([
|
|
prefix + "source/*rvv*.cc",
|
|
prefix + "include/libyuv/*.h",
|
|
])
|
|
|
|
def libyuv_sve_srcs(prefix = ""):
|
|
return native.glob([
|
|
prefix + "source/*sve*.cc",
|
|
prefix + "include/libyuv/*.h",
|
|
])
|
|
|
|
def libyuv_test_srcs(prefix = ""):
|
|
return native.glob([
|
|
prefix + "unit_test/*.cc",
|
|
prefix + "unit_test/*.h",
|
|
])
|