open-obfuscator / o-mvll

:electron: O-MVLL is a LLVM-based obfuscator for native code (Android & iOS)
https://obfuscator.re/omvll
Apache License 2.0
574 stars 62 forks source link

Fix scripts building dependencies to o-mvll #4

Closed stelian42 closed 1 year ago

stelian42 commented 1 year ago

These small changes are required in order to be able to rebuild all of the o-mvll dependencies using the openobfuscator/omvll-ndk docker image:

docker run --rm -v $(pwd)/o-mvll:/o-mvll -v $(pwd)/deps/cpython:/cpython openobfuscator/omvll-ndk sh /o-mvll/scripts/docker/deps/compile_cpython310.sh
docker run --rm -v $(pwd)/o-mvll:/o-mvll -v $(pwd)/deps/pybind11:/pybind11 openobfuscator/omvll-ndk sh /o-mvll/scripts/docker/deps/compile_pybind11.sh
docker run --rm -v $(pwd)/o-mvll:/o-mvll -v $(pwd)/deps/spdlog:/spdlog openobfuscator/omvll-ndk sh /o-mvll/scripts/docker/deps/compile_spdlog.sh

cd deps/
git clone -j8 https://android.googlesource.com/toolchain/llvm-project LLVM
cd LLVM
git checkout $REVISION
cd ../..
docker run --rm -v $(pwd)/o-mvll:/o-mvll -v $(pwd)/deps/LLVM:/LLVM openobfuscator/omvll-ndk sh /o-mvll/scripts/docker/deps/compile_llvm_r25.sh

mkdir third-party
cp deps/cpython/Python-slim.tar.gz deps/pybind11/pybind11.tar.gz deps/spdlog/spdlog-1.10.0-Linux.tar.gz third-party/
cp deps/LLVM/LLVM-14.0.6git-Linux.tar.gz third-party/LLVM-14.0.6git-Linux-slim.tar.gz 
romainthomas commented 1 year ago

Thank you @stelian42 for these fix/updates!