Makefile: windows build. drone.yml: attempt windows build
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Dan Ballard 2021-03-24 16:55:14 -07:00
parent da82e25575
commit 36e344053a
3 changed files with 20 additions and 1 deletions

View File

@ -62,6 +62,18 @@ steps:
- gomobile init
- make android
- name: build-windows
image: openpriv/mingw-go:2021.03
volumes:
- name: deps
path: /go
when:
repo: flutter/libcwtch-go
branch: trunk
event: [ push, pull_request ]
commands:
- make windows
- name: notify-email
image: drillster/drone-email
host: build.openprivacy.ca

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ cwtch-sources.jar
cwtch.aar
libCwtch.h
libCwtch.so
libCwtch.dll

View File

@ -8,6 +8,8 @@ linux: libCwtch.so
android: cwtch.aar
windows: libCwtch.dll
libCwtch.so: lib.go
./switch-ffi.sh
go build -buildmode c-shared -o libCwtch.so
@ -16,5 +18,9 @@ cwtch.aar: lib.go
./switch-gomobile.sh
gomobile bind -target android
libCwtch.dll: lib.go
./switch-ffi.sh
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc-win32 go build -buildmode c-shared -o libCwtch.dll
clean:
rm -f cwtch.aar cwtch_go.apk libCwtch.h libCwtch.so cwtch-sources.jar
rm -f cwtch.aar cwtch_go.apk libCwtch.h libCwtch.so cwtch-sources.jar libCwtch.dll