forked from dreamstalker/rehlds
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
won't work because the steam library for linux is closed source and not built for ARM linux, so linking fails. It was recently compiled for Mac M1 CPUs, but since the format is .dylib it won't work on linux, and there's no way to convert to an .so file. ValveSoftware/steam-for-linux#4061
- Loading branch information
Showing
12 changed files
with
132 additions
and
12 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
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
|
||
main() | ||
{ | ||
CC=arm-linux-gnueabi-gcc | ||
CXX=arm-linux-gnueabi-g++ | ||
|
||
if [[ "$*" =~ "--help" ]]; then | ||
help | ||
exit 0; | ||
fi | ||
|
||
n=0 | ||
args=() | ||
for i in "$@" | ||
do | ||
case $i in | ||
-j=*|--jobs=*) | ||
jobs="-j${i#*=}" | ||
shift | ||
;; | ||
-c=*|--compiler=*) | ||
C="${i#*=}" | ||
shift | ||
;; | ||
*) | ||
args[$n]="$i" | ||
((++n)) | ||
;; | ||
esac | ||
done | ||
|
||
case "$C" in | ||
("intel"|"icc") CC=icc CXX=icpc ;; | ||
("gcc"|"g++") CC=gcc CXX=g++ ;; | ||
("clang|llvm") CC=clang CXX=clang++ ;; | ||
*) | ||
;; | ||
esac | ||
|
||
#rm -rf build | ||
#mkdir build | ||
pushd build &> /dev/null | ||
CC=$CC CXX=$CXX cmake -DARM32=1 ${args[@]} .. | ||
make ${jobs} | ||
popd > /dev/null | ||
} | ||
|
||
help() | ||
{ | ||
printf "Usage: ./build.sh <options>\n\n" | ||
printf " -c= | --compiler=<icc|gcc|clang> - Select preferred C/C++ compiler to build\n" | ||
printf " -j= | --jobs=<N> - Specifies the number of jobs (commands) to run simultaneously (For faster building)\n\n" | ||
} | ||
|
||
# Initialize | ||
main $* | ||
|
||
# Exit normally | ||
exit 0 |
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
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
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
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