Skip to content

Commit

Permalink
Latest QJS newest ##build
Browse files Browse the repository at this point in the history
  • Loading branch information
satk0 authored Feb 7, 2025
1 parent 472ae4a commit 11d181e
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 165 deletions.
51 changes: 4 additions & 47 deletions shlr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ include ../mk/${COMPILER}.mk
include ../mk/darwin.mk


# TODO: Delete this checks:
ifeq ($(shell test -f ../ChangeLog -a -d capstone -a ! -d capstone/.git && echo 1),1)
WITHOUT_PULL=1
CS_RELEASE=0
else
WITHOUT_PULL=0

# Build against last capstone release or next
# TODO: Delete this checks:
ifeq ($(shell test -e ../.git && echo 1),1)
CS_RELEASE=0
else
Expand All @@ -37,40 +39,19 @@ WGET?=curl -o
endif

ifeq ($(CS_RELEASE),1)
CS_VER=5.0.3
CS_TAR=https://codeload.github.com/capstone-engine/capstone/tar.gz/$(CS_VER)
#CS_TAR=http://capstone-engine.org/download/$(CS_VER)/capstone-$(CS_VER).tgz
CS_PATCHES=0
else
CS_TAR=
CS_URL_BASE=github.com/capstone-engine/capstone
CS_URL=$(GIT_PREFIX)$(CS_URL_BASE).git
CS_ARCHIVE=https://$(CS_URL_BASE)/archive
CS_UPD=20201203

ifeq ($(USE_CSNEXT),1)
# CS_TIP=0a29bf80017b8422c79ba51e3ad5c34ba5ee6142
# CS_BRA=next
CS_ROOT=../subprojects/capstone-next
else
ifeq ($(USE_CS4),1)
# CS_TIP=0efa3cc530ea188c0e03c945ab884ee19dd16342
# CS_BRA=v4
CS_ROOT=../subprojects/capstone-v4
else
# CS_TIP=8455b3c5a53b02e524494c7e72a3946a32518170
# CS_BRA=v5
CS_ROOT=../subprojects/capstone-v5
endif
endif

ifeq ($(CS_COMMIT_ARCHIVE),1)
CS_ARCHIVE_URL=$(CS_ARCHIVE)/$(CS_TIP).zip
else
CS_ARCHIVE_URL=
endif
# REVERT THIS COMMIT BECAUSE ITS WRONG
CS_REV=
CS_PATCHES=1
endif

Expand Down Expand Up @@ -210,10 +191,8 @@ install-symlink symstall:
uninstall deinstall:
rm -f ${DESTDIR}${LIBDIR}/libr_shlr.${EXT_AR}

.PHONY: capstone capstone-sync capstone-build capstone-patch # capstone-clean capstone-pull
.PHONY: capstone capstone-sync capstone-build capstone-patch

# capstone-pull:
# $(MAKE) CS_RELEASE=1 WITHOUT_PULL=0 USE_CAPSTONE=0 WANT_CAPSTONE=1 capstone

ifeq ($(WANT_CAPSTONE),0)
capstone:
Expand All @@ -233,16 +212,9 @@ capstone-build:
else

ifeq ($(CS_RELEASE),1)
# capstone-sync: capstone

# capstone-clean:
# -$(MAKE) -C capstone clean

capstone: # capstone-$(CS_VER).tar.gz
capstone:
$(MAKE) patch-capstone
# tar xzvf capstone-$(CS_VER).tar.gz
# rm -rf capstone
# mv capstone-$(CS_VER) capstone

# already implemented in capstone.sh
patch-capstone capstone-patch:
Expand All @@ -258,23 +230,8 @@ endif
mkdir -p $(CS_ROOT)/include/capstone
cp -rf $(CS_ROOT)/include/*.h $(CS_ROOT)/include/capstone

# capstone-$(CS_VER).tar.gz:
# $(WGET) capstone-$(CS_VER).tar.gz $(CS_TAR)
# else

# capstone: capstone-sync

patch-capstone capstone-patch:

# capstone-sync:
# ifeq ($(WITHOUT_PULL),1)
# @echo "Nothing to sync because of --without-pull"
# else
# if [ ! -d capstone ] || [ ! -f capstone/libcapstone.a ] || [ $(shell [ -d capstone/.git ] && git --git-dir capstone/.git rev-parse HEAD) != $(CS_TIP) ]; then \
# "$(SHELL)" capstone.sh "${CS_URL}" "${CS_BRA}" "${CS_TIP}" "${CS_REV}" "${CS_ARCHIVE_URL}" ; \
# fi
# endif

.PHONY: capstone capstone-sync
endif

Expand Down
2 changes: 2 additions & 0 deletions shlr/capstone.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh

# TODO: Delete this file?
CS_URL="$1" # url
CS_BRA="$2" # branch name
CS_TIP="$3" # tip commit
Expand Down
32 changes: 0 additions & 32 deletions shlr/qjs/aix.patch

This file was deleted.

29 changes: 0 additions & 29 deletions shlr/qjs/double.patch

This file was deleted.

26 changes: 0 additions & 26 deletions shlr/qjs/fixes.patch

This file was deleted.

28 changes: 0 additions & 28 deletions shlr/qjs/msvc.patch

This file was deleted.

4 changes: 2 additions & 2 deletions subprojects/qjs.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is autogenerated by acr-wrap

WRAP_wrap_git_url:=https://github.com/quickjs-ng/quickjs
WRAP_wrap_git_revision:=b9dbcf46768b7aed0fc6e208fbab851393f808de
WRAP_wrap_git_revision:=02f06f62484e99db9cfd971afeb9b0cf9bd8c310
WRAP_wrap_git_directory:=qjs
WRAP_wrap_git_patch_directory:=qjs
WRAP_wrap_git_depth:=1
Expand All @@ -11,7 +11,7 @@ qjs_all: qjs

qjs:
git clone --no-checkout --depth=1 https://github.com/quickjs-ng/quickjs qjs
cd qjs && git fetch --depth=1 origin b9dbcf46768b7aed0fc6e208fbab851393f808de
cd qjs && git fetch --depth=1 origin 02f06f62484e99db9cfd971afeb9b0cf9bd8c310
cd qjs && git checkout FETCH_HEAD
cp -f packagefiles/qjs/* qjs

Expand Down
2 changes: 1 addition & 1 deletion subprojects/qjs.wrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[wrap-git]
url = https://github.com/quickjs-ng/quickjs
revision = b9dbcf46768b7aed0fc6e208fbab851393f808de
revision = 02f06f62484e99db9cfd971afeb9b0cf9bd8c310
directory = qjs
patch_directory = qjs
depth = 1

0 comments on commit 11d181e

Please sign in to comment.