forked from redraskal/r6-dissect
-
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.
- Loading branch information
1 parent
5e45ad8
commit 5ed34c8
Showing
5 changed files
with
27 additions
and
5 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
examples |
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,7 @@ | ||
FROM golang:1.20-bullseye as builder | ||
|
||
RUN apt-get update && apt-get install -y build-essential gcc-aarch64-linux-gnu mingw-w64 | ||
ADD . /app | ||
WORKDIR /app | ||
|
||
RUN chmod +x build.sh |
Empty file.
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,17 @@ | ||
targets=( | ||
'linux amd64 so' | ||
'windows amd64 dll x86_64-w64-mingw32-gcc' | ||
'linux arm64 so aarch64-linux-gnu-gcc' | ||
) | ||
|
||
for item in "${targets[@]}"; do | ||
set -- $item | ||
export GOOS=$1 GOARCH=$2 \ | ||
SUFFIX=$3 CC=$4 CGO_ENABLED=1 | ||
|
||
echo Building .$SUFFIX OS $GOOS ARCH $GOARCH CGO $CGO_ENABLED | ||
go build \ | ||
-v -buildmode=c-shared \ | ||
-o bin/libr6dissect-$GOOS-$GOARCH.$SUFFIX \ | ||
exports/exports.go | ||
done |