Added config settings to select building iOS xcframework from source for certain configs
This commit is contained in:
parent
ad4513784c
commit
aafb0162f4
46
third_party/BUILD
vendored
46
third_party/BUILD
vendored
|
@ -61,10 +61,56 @@ config_setting(
|
|||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "opencv_ios_arm64_source_build",
|
||||
values = {
|
||||
"apple_platform_type": "ios",
|
||||
"cpu": "ios_arm64"
|
||||
},
|
||||
define_values = {
|
||||
"OPENCV": "source",
|
||||
},
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "opencv_ios_sim_arm64_source_build",
|
||||
values = {
|
||||
"config": "ios_sim_arm64",
|
||||
},
|
||||
define_values = {
|
||||
"OPENCV": "source",
|
||||
},
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "opencv_ios_x86_64_source_build",
|
||||
values = {
|
||||
"apple_platform_type": "ios",
|
||||
"cpu": "ios_x86_64"
|
||||
},
|
||||
define_values = {
|
||||
"OPENCV": "source",
|
||||
},
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "opencv_ios_sim_fat_source_build",
|
||||
values = {
|
||||
"config": "ios_sim_fat",
|
||||
},
|
||||
define_values = {
|
||||
"OPENCV": "source",
|
||||
},
|
||||
)
|
||||
|
||||
alias(
|
||||
name = "opencv",
|
||||
actual = select({
|
||||
":opencv_source_build": ":opencv_cmake",
|
||||
":opencv_ios_sim_arm64_source_build" : "@ios_opencv_source//:opencv",
|
||||
":opencv_ios_sim_fat_source_build" : "@ios_opencv_source//:opencv",
|
||||
":opencv_ios_sim_arm64_source_build" : "@ios_opencv_source//:opencv",
|
||||
":opencv_ios_arm64_source_build" : "@ios_opencv_source//:opencv",
|
||||
"//conditions:default": ":opencv_binary",
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
|
|
Loading…
Reference in New Issue
Block a user