multiple targets can have same kernel config which can break existing audio bazel compilation. Added support for multiple project compilation for audio. Change-Id: I1f357f6b14cd79acf94dbf9be4103c1f6b1cf108 Signed-off-by: Sarath Varma Ganapathiraju <quic_ganavarm@quicinc.com>
51 lines
1023 B
Python
51 lines
1023 B
Python
package(
|
|
default_visibility = [
|
|
"//visibility:public",
|
|
],
|
|
)
|
|
|
|
load("//build/kernel/kleaf:kernel.bzl", "ddk_headers")
|
|
|
|
ddk_headers(
|
|
name = "audio_common_headers",
|
|
hdrs = glob([
|
|
"include/asoc/*.h",
|
|
"include/bindings/*.h",
|
|
"include/dsp/*.h",
|
|
"include/ipc/*.h",
|
|
"include/soc/*.h"
|
|
]),
|
|
includes = ["include"]
|
|
)
|
|
ddk_headers(
|
|
name = "audio_uapi_headers",
|
|
hdrs = glob([
|
|
"include/uapi/audio/**/*.h"
|
|
]),
|
|
includes = ["include/uapi/audio"]
|
|
)
|
|
ddk_headers(
|
|
name = "audio_src_headers",
|
|
hdrs = glob([
|
|
"asoc/**/*.h",
|
|
"dsp/**/*.h",
|
|
"ipc/**/*.h",
|
|
"soc/**/*.h"
|
|
])
|
|
)
|
|
ddk_headers(
|
|
name = "audio_configs",
|
|
hdrs = glob([
|
|
"config/*.h"
|
|
]),
|
|
includes = ["config"]
|
|
)
|
|
ddk_headers(
|
|
name = "audio_headers",
|
|
hdrs = [":audio_common_headers", ":audio_uapi_headers", ":audio_src_headers", ":audio_configs"]
|
|
)
|
|
|
|
load(":build/audio_target.bzl", "define_audio_target")
|
|
|
|
define_audio_target()
|