Makefile: windows build. drone.yml: attempt windows build
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
da82e25575
commit
36e344053a
12
.drone.yml
12
.drone.yml
|
@ -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
|
||||
|
|
|
@ -3,3 +3,4 @@ cwtch-sources.jar
|
|||
cwtch.aar
|
||||
libCwtch.h
|
||||
libCwtch.so
|
||||
libCwtch.dll
|
||||
|
|
8
Makefile
8
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue