No public description
PiperOrigin-RevId: 560689326
This commit is contained in:
committed by
Copybara-Service
parent
b22dcf9ce6
commit
1aa5e0d46f
Vendored
+26
-21
@@ -22,24 +22,29 @@ package(
|
||||
|
||||
halide_library_runtimes()
|
||||
|
||||
# Aliases to platform-specific targets.
|
||||
[
|
||||
alias(
|
||||
name = target_name,
|
||||
actual = select(
|
||||
{
|
||||
":halide_config_linux_x86_64": "@linux_halide//:%s" % target_name,
|
||||
":halide_config_macos_x86_64": "@macos_x86_64_halide//:%s" % target_name,
|
||||
":halide_config_macos_arm64": "@macos_arm_64_halide//:%s" % target_name,
|
||||
":halide_config_windows_x86_64": "@windows_halide//:%s" % target_name,
|
||||
# deliberately no //condition:default clause here
|
||||
},
|
||||
no_match_error = "Compiling Halide code requires that the build host is one of Linux x86-64, Windows x86-64, macOS x86-64, or macOS arm64.",
|
||||
),
|
||||
)
|
||||
for target_name in [
|
||||
"language",
|
||||
"runtime",
|
||||
"gengen",
|
||||
]
|
||||
]
|
||||
# Alias the 'gengen' target so that it uses the correct Halide release based on host platform.
|
||||
alias(
|
||||
name = "gengen",
|
||||
actual = select(
|
||||
{
|
||||
"@mediapipe//mediapipe:macos_x86_64": "@macos_x86_64_halide//:gengen",
|
||||
"@mediapipe//mediapipe:macos_arm64": "@macos_arm_64_halide//:gengen",
|
||||
"@mediapipe//mediapipe:windows": "@windows_halide//:gengen",
|
||||
"@mediapipe//mediapipe:linux": "@linux_halide//:gengen",
|
||||
# Deliberately no //condition:default clause here.
|
||||
},
|
||||
no_match_error = "Compiling Halide code requires that the build host is one of Linux x86-64, Windows x86-64, macOS x86-64, or macOS arm64.",
|
||||
),
|
||||
)
|
||||
|
||||
# Arbitrarily alias the 'runtime' and 'language' targets to the Linux Halide release. The underlying
|
||||
# targets are identical for all host platforms.
|
||||
alias(
|
||||
name = "runtime",
|
||||
actual = "@linux_halide//:runtime",
|
||||
)
|
||||
|
||||
alias(
|
||||
name = "language",
|
||||
actual = "@linux_halide//:language",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user