This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
node_modules | ||
artifacts | ||
cache | ||
unicorn | ||
unicorn2 | ||
.*.swp | ||
venv | ||
.idea | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
#!/usr/bin/env bash | ||
if [[ ! -d unicorn2 ]]; then | ||
git clone https://github.com/geohot/unicorn.git -b dev unicorn2 | ||
#git clone https://github.com/unicorn-engine/unicorn.git -b dev unicorn2 | ||
fi | ||
|
||
cd unicorn2 | ||
cmake . -DUNICORN_ARCH=mips -DCMAKE_BUILD_TYPE=Release | ||
#cmake . -DUNICORN_ARCH=mips -DCMAKE_BUILD_TYPE=Debug | ||
cd unicorn | ||
mkdir -p build | ||
cd build | ||
cmake .. -DUNICORN_ARCH=mips -DCMAKE_BUILD_TYPE=Release | ||
make -j8 | ||
|
||
# The Go linker / runtime expects these to be there! | ||
cp libunicorn.so.1 .. | ||
cp libunicorn.so.2 .. | ||
|
||
# export LIBUNICORN_PATH for Github CI | ||
# TODO: is this actually needed? | ||
if [[ ! -z "$GITHUB_ENV" ]]; then | ||
echo "LIBUNICORN_PATH=$(pwd)/unicorn2/" >> $GITHUB_ENV | ||
echo "LIBUNICORN_PATH=$(pwd)/unicorn/" >> $GITHUB_ENV | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters