frida-python: build bindings for python3.x only
This commit is contained in:
parent
21de9b260d
commit
707990cdfa
@ -14,6 +14,7 @@ TERMUX_PKG_EXTRA_MAKE_ARGS="
|
|||||||
ANDROID_NDK_ROOT=$HOME/lib/android-ndk
|
ANDROID_NDK_ROOT=$HOME/lib/android-ndk
|
||||||
"
|
"
|
||||||
TERMUX_PKG_HOSTBUILD=true
|
TERMUX_PKG_HOSTBUILD=true
|
||||||
|
_PYTHON_VERSION=3.8
|
||||||
|
|
||||||
termux_step_extract_package() {
|
termux_step_extract_package() {
|
||||||
local CHECKED_OUT_FOLDER=$TERMUX_PKG_CACHEDIR/checkout-$TERMUX_PKG_VERSION
|
local CHECKED_OUT_FOLDER=$TERMUX_PKG_CACHEDIR/checkout-$TERMUX_PKG_VERSION
|
||||||
@ -60,9 +61,9 @@ termux_step_make () {
|
|||||||
arch=${TERMUX_ARCH}
|
arch=${TERMUX_ARCH}
|
||||||
fi
|
fi
|
||||||
PATH=${TERMUX_PKG_HOSTBUILD_DIR}/bin:$PATH make python-android-${arch} \
|
PATH=${TERMUX_PKG_HOSTBUILD_DIR}/bin:$PATH make python-android-${arch} \
|
||||||
${TERMUX_PKG_EXTRA_MAKE_ARGS}
|
${TERMUX_PKG_EXTRA_MAKE_ARGS} PYTHON=/usr/bin/python${_PYTHON_VERSION}
|
||||||
PATH=${TERMUX_PKG_HOSTBUILD_DIR}/bin:$PATH make tools-android-${arch} \
|
PATH=${TERMUX_PKG_HOSTBUILD_DIR}/bin:$PATH make tools-android-${arch} \
|
||||||
${TERMUX_PKG_EXTRA_MAKE_ARGS}
|
${TERMUX_PKG_EXTRA_MAKE_ARGS} PYTHON=/usr/bin/python${_PYTHON_VERSION}
|
||||||
}
|
}
|
||||||
|
|
||||||
termux_step_make_install () {
|
termux_step_make_install () {
|
||||||
@ -76,7 +77,7 @@ termux_step_make_install () {
|
|||||||
build/frida-android-${arch}/bin/frida-trace \
|
build/frida-android-${arch}/bin/frida-trace \
|
||||||
${TERMUX_PREFIX}/bin/
|
${TERMUX_PREFIX}/bin/
|
||||||
install build/frida-android-${arch}/lib/{frida-gadget.so,libfrida-gumpp-*.so} ${TERMUX_PREFIX}/lib/
|
install build/frida-android-${arch}/lib/{frida-gadget.so,libfrida-gumpp-*.so} ${TERMUX_PREFIX}/lib/
|
||||||
cp -r build/frida-android-${arch}/lib/{pkgconfig,python2.7,python3.8} ${TERMUX_PREFIX}/lib/
|
cp -r build/frida-android-${arch}/lib/{pkgconfig,python*} ${TERMUX_PREFIX}/lib/
|
||||||
cp -r build/frida-android-${arch}/include/{capstone,frida-*} ${TERMUX_PREFIX}/include/
|
cp -r build/frida-android-${arch}/include/{capstone,frida-*} ${TERMUX_PREFIX}/include/
|
||||||
cp -r build/frida-android-${arch}/share/vala ${TERMUX_PREFIX}/share/
|
cp -r build/frida-android-${arch}/share/vala ${TERMUX_PREFIX}/share/
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
TERMUX_SUBPKG_DESCRIPTION="Python bindings for Frida"
|
TERMUX_SUBPKG_DESCRIPTION="Python bindings for Frida"
|
||||||
TERMUX_SUBPKG_INCLUDE="lib/python3.8 lib/python2.7"
|
TERMUX_SUBPKG_INCLUDE="lib/python*"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
TERMUX_SUBPKG_DESCRIPTION="CLI tools for Frida"
|
TERMUX_SUBPKG_DESCRIPTION="CLI tools for Frida"
|
||||||
|
TERMUX_SUBPKG_DEPENDS="frida-python"
|
||||||
TERMUX_SUBPKG_INCLUDE="
|
TERMUX_SUBPKG_INCLUDE="
|
||||||
bin/frida-discover
|
bin/frida-discover
|
||||||
bin/frida
|
bin/frida
|
||||||
|
Loading…
Reference in New Issue
Block a user