Browse Source

Makefile: windows build. drone.yml: attempt windows build

pull/19/head
Dan Ballard 8 months ago
parent
commit
36e344053a
  1. 12
      .drone.yml
  2. 1
      .gitignore
  3. 8
      Makefile

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

1
.gitignore

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

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…
Cancel
Save