bazelbuild / bazelbuild/rules_apple
`ios_framework` export headers from dependencies
- Dominant language
- Starlark
- Stars
- 593
- Forks
- 334
- Avg merge
- 16h 48m
- Merged PRs (30d)
- 9
Description
Hi
I'm trying to build a `ios_framework`. It use OpencvFramework. But I don't know how to export headers from Opencv to reuse it
My `BUILD` file
```
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_framework")
ios_framework(
name = "IrisTracker",
hdrs = [
"IrisTracker.h",
] + glob([
"OpencvFramework/opencv2.framework/Versions/A/Headers/**/*.h*",
]),
infoplists = ["Info.plist"],
bundle_id = "com.minhdv.IrisTracker",
families = ["iphone", "ipad"],
minimum_os_version = "10.0",
deps = [
":IrisTrackerLibrary",
"@ios_opencv//:OpencvFramework",
],
)
objc_library(
name = "IrisTrackerLibrary",
srcs = [
"IrisTracker.mm",
],
hdrs = [
"IrisTracker.h",
],
copts = ["-std=c++17"],
data = [
"//mediapipe/graphs/iris_tracking:iris_tracking_gpu.binarypb",
"//mediapipe/modules/face_detection:face_detection_short_range.tflite",
"//mediapipe/modules/face_landmark:face_landmark.tflite",
"//mediapipe/modules/iris_landmark:iris_landmark.tflite",
],
visibility = ["//mediapipe:__subpackages__"],
deps = [
"//mediapipe/objc:mediapipe_framework_ios",
] + select({
"//mediapipe:ios_i386": [],
"//mediapipe:ios_x86_64": [],
"//conditions:default": [
"//mediapipe/graphs/iris_tracking:iris_tracking_gpu_deps",
"//mediapipe/framework/formats:landmark_cc_proto",
],
}),
)
```
Contributor guide
Research direction
Start with the posted BUILD file, especially ios_framework's hdrs and deps and the @ios_opencv//:OpencvFramework target. Determine whether dependency headers can be exposed through this rule, and define done as a documented or reproducible supported configuration for reusing those headers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, opencv
- Domain
- build-system, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100