Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
d0ba1e08
Commit
d0ba1e08
authored
4 years ago
by
Aline Gondim Santos
Browse files
Options
Downloads
Patches
Plain Diff
contrib: fix onnx fetch
Change-Id: I2b64c929b2973b88d51786a328fcb0249560a687
parent
b2c1ca82
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/src/onnx/rules.mak
+15
-2
15 additions, 2 deletions
contrib/src/onnx/rules.mak
with
15 additions
and
2 deletions
contrib/src/onnx/rules.mak
+
15
−
2
View file @
d0ba1e08
# ONNX
ONNX_VERSION
:=
v1.6.0
ONNX_URL
:=
https://github.com/microsoft/onnxruntime.git
onnx
:
toolchain.cmake
$(TARBALLS)/onnxruntime-$(ONNX_VERSION).tar.xz
:
git clone
$(
ONNX_URL
)
../../contrib/tarballs/onnxruntime-
$(
ONNX_VERSION
)
cd
../../contrib/tarballs/onnxruntime-
$(
ONNX_VERSION
)
&&
git checkout
$(
ONNX_VERSION
)
cd
../../contrib/tarballs/
&&
tar
cJf onnxruntime-
$(
ONNX_VERSION
)
.tar.xz onnxruntime-
$(
ONNX_VERSION
)
rm
-Rf
../../contrib/tarballs/onnxruntime-v1.6.0
.sum-onnx
:
onnxruntime-$(ONNX_VERSION).tar.xz
$(
warning
$@
not implemented
)
touch
$@
onnx
:
onnxruntime-$(ONNX_VERSION).tar.xz .sum-onnx
rm
-Rf
$@
mkdir
-p
$@
(
cd
$@
&&
tar
x
--strip-components
=
1
-f
../
$<
)
.onnx
:
onnx
if
test
-d
"./onnx"
;
then
(
rm
-rf
./onnx
&&
tar
-xf
./../tarballs/onnxruntime-
$(
ONNX_VERSION
)
.tar.gz
)
else
(
git clone https://github.com/microsoft/onnxruntime.git onnx
&&
cd
./onnx
&&
git checkout
$(
ONNX_VERSION
)
&&
cd
./../
&&
tar
cf onnxruntime-
$(
ONNX_VERSION
)
.tar.gz onnx
&&
mv
onnxruntime-
$(
ONNX_VERSION
)
.tar.gz ../tarballs/
)
fi
ifdef
HAVE_ANDROID
cd
$<
&&
sh build.sh
--parallel
--android
--android_sdk_path
$(
ANDROID_SDK
)
--android_ndk_path
$(
ANDROID_NDK
)
--android_abi
$(
ANDROID_ABI
)
--android_api
29
--use_nnapi
--config
Release
--build_shared_lib
--skip_tests
--android_cpp_shared
--minimal_build
extended
cd
$<
&&
cp
./build/Linux/Release/libonnxruntime.so
$(
PREFIX
)
/lib/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment