Skip to content

Commit 7d366d1

Browse files
committed
Use tarball for zydis
1 parent 4a3ca4a commit 7d366d1

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

subprojects/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@ else
3838
include capstone-v5.mk
3939
endif
4040
include qjs.mk
41+
4142
include zydis.mk
4243
endif
44+
zydis: ${WRAP_wrap_file_directory}

subprojects/zydis.mk

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
# This file is autogenerated by acr-wrap
22

3-
WRAP_wrap_git_url:=https://github.com/zyantific/zydis.git
4-
WRAP_wrap_git_revision:=v4.1.1
5-
WRAP_wrap_git_directory:=zydis
6-
WRAP_wrap_git_depth:=1
3+
WRAP_wrap_file_directory:=zydis-4.1.1
4+
WRAP_wrap_file_source_url:=https://github.com/zyantific/zydis/archive/refs/tags/v4.1.1.tar.gz
5+
WRAP_wrap_file_source_filename:=zydis-v4.1.1.tar.gz
6+
WRAP_wrap_file_source_hash:=943f91eb9ab2a8cc01ab9f8b785e769a273502071e0ee8011cdfcaad93947cec
77

8-
.PHONY: zydis zydis_clean zydis_all
8+
.PHONY: zydis-4.1.1_clean zydis-4.1.1_all
99

10-
zydis:
11-
if [ ! -d "zydis" -o "v4.1.1" != "$(shell cd zydis 2>/dev/null && git rev-parse HEAD)" ]; then rm -rf "zydis"; ${MAKE} zydis_all; fi
10+
zydis-4.1.1:
11+
${MAKE} ${MAKE_FLAGS} zydis-4.1.1_all
1212

13-
zydis_all:
14-
git clone --no-checkout --depth=1 https://github.com/zyantific/zydis.git zydis
15-
cd zydis && git fetch --depth=1 origin v4.1.1
16-
cd zydis && git checkout FETCH_HEAD
13+
zydis-4.1.1_all:
14+
curl -Lo zydis-v4.1.1.tar.gz https://github.com/zyantific/zydis/archive/refs/tags/v4.1.1.tar.gz
15+
echo Check 943f91eb9ab2a8cc01ab9f8b785e769a273502071e0ee8011cdfcaad93947cec
16+
tar xzf zydis-v4.1.1.tar.gz
17+
cd zydis-4.1.1
1718

18-
zydis_clean:
19-
rm -rf zydis
19+
zydis-4.1.1_clean:
20+
rm -rf zydis-4.1.1

subprojects/zydis.wrap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[wrap-git]
2-
url = https://github.com/zyantific/zydis.git
3-
revision = v4.1.1
4-
directory = zydis
5-
depth = 1
1+
[wrap-file]
2+
directory = zydis-4.1.1
3+
source_url = https://github.com/zyantific/zydis/archive/refs/tags/v4.1.1.tar.gz
4+
source_filename = zydis-v4.1.1.tar.gz
5+
source_hash = 943f91eb9ab2a8cc01ab9f8b785e769a273502071e0ee8011cdfcaad93947cec

0 commit comments

Comments
 (0)