Skip to content

Commit

Permalink
build!: MediaPipe 0.10.1 (#924)
Browse files Browse the repository at this point in the history
* build: mediapipe v0.10.1

* fix ambiguous conditions

* remove solutions that MediaPipe has stopped support

- remove Box Tracking
- remove Instant Motion Tracking
- remove Objectron

* remove mediapipe_workaround

* chore: remove unnecessary patch files

* fix: flatbuffer version is incompatible

* fix: build universal libs

* build: downgrade rules_foreign_cc

* wip: workaround for iOS build

* fix: libmediapipe_c.bc is already deleted

* ci: clone only the target branch

* chore: remove debug command
  • Loading branch information
homuler committed Jun 24, 2023
1 parent 8f6bfd6 commit 9d5c618
Show file tree
Hide file tree
Showing 142 changed files with 455 additions and 21,925 deletions.
6 changes: 6 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,9 @@ build:wasm --cpu=wasm
build:wasm --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
build:wasm --copt=-emit-llvm
build:wasm --cxxopt=-emit-llvm

# This bazelrc file is meant to be written by a setup script.
try-import %workspace%/.configure.bazelrc

# This bazelrc file can be used for user-specific custom build settings.
try-import %workspace%/.user.bazelrc
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.2.0
6.1.1
12 changes: 11 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,17 @@ jobs:
- name: Install NumPy
run: pip install --no-cache-dir --user numpy

- name: Build bazel to circumvent a compile error
run: |
mkdir bin
git clone https://github.com/bazelbuild/bazel.git --depth 1 --single-branch --branch 6.1.1
cd bazel
git apply ../third_party/bazel_ios_workaround.diff
bazel build --java_runtime_version=remotejdk_11 //src:bazel
cp bazel-bin/src/bazel ../bin
cd ..
echo "bin" >> $GITHUB_PATH
- name: Build MediaPipeUnity.framework
run: |
unset ANDROID_NDK_HOME
Expand Down Expand Up @@ -260,7 +271,6 @@ jobs:
- name: Remove unused meta files
run: |
cd Packages/com.github.homuler.mediapipe/Runtime/Plugins
rm libmediapipe_c.bc.meta
rm libopencv_world.*.meta
rm opencv_world*.dll.meta
Expand Down
8 changes: 0 additions & 8 deletions Assets/MediaPipeUnity/Samples/Scenes/Box Tracking.meta

This file was deleted.

Loading

0 comments on commit 9d5c618

Please sign in to comment.