-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(OSX):👋 add prebuilt v0.1.1 lite.ai.toolkit for OSX10.15.x (#211)
- Loading branch information
Showing
4 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ cmake-build-release | |
.idea | ||
build-debug.sh | ||
__pycache__ | ||
scripts | ||
prebuilt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
#!/bin/bash | ||
if [ ! -d ./build ]; then | ||
mkdir build | ||
|
||
BUILD_DIR=build | ||
|
||
if [ ! -d "${BUILD_DIR}" ]; then | ||
mkdir "${BUILD_DIR}" | ||
echo "creating build dir: ${BUILD_DIR} ..." | ||
else | ||
echo "build directory exist! clearing ... " | ||
rm -rf ./build/* && echo "clear built files done ! & rebuilding ... " | ||
echo "build dir: {BUILD_DIR} directory exist! ..." | ||
fi | ||
|
||
cd build && cmake \ | ||
cd "${BUILD_DIR}" && pwd && cmake .. \ | ||
-DCMAKE_BUILD_TYPE=MinSizeRel \ | ||
-DINCLUDE_OPENCV=ON \ | ||
-DENABLE_MNN=OFF \ | ||
-DENABLE_NCNN=OFF \ | ||
-DENABLE_TNN=OFF \ | ||
.. && make -j8 | ||
-DENABLE_TNN=OFF && | ||
make -j8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters