Skip to content

Commit

Permalink
Makefile: add support for iOS cross compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Nov 24, 2015
1 parent b0fb48c commit 2c42e54
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Godeps/_workspace/src/github.com/nsf/termbox-go/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 16 additions & 8 deletions Godeps/_workspace/src/github.com/nsf/termbox-go/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions Godeps/_workspace/src/github.com/nsf/termbox-go/termbox.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
.PHONY: geth-darwin geth-darwin-386 geth-darwin-amd64
.PHONY: geth-windows geth-windows-386 geth-windows-amd64
.PHONY: geth-android geth-android-16 geth-android-21
.PHONY: geth-ios geth-ios-5.0 geth-ios-8.1

GOBIN = build/bin

CROSSDEPS = https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2
CROSSDEPS = https://gmplib.org/download/gmp/gmp-6.1.0.tar.bz2
GO ?= latest

geth:
Expand Down Expand Up @@ -83,6 +84,20 @@ geth-android-21: xgo
@echo "Android 21 cross compilation done:"
@ls -l $(GOBIN)/geth-android-21-*

geth-ios: xgo geth-ios-5.0 geth-ios-8.1
@echo "iOS cross compilation done:"
@ls -l $(GOBIN)/geth-ios-*

geth-ios-5.0:
build/env.sh $(GOBIN)/xgo --go=$(GO) --dest=$(GOBIN) --deps=$(CROSSDEPS) --depsargs=--disable-assembly --targets=ios-5.0/* -v $(shell build/flags.sh) ./cmd/geth
@echo "iOS 5.0 cross compilation done:"
@ls -l $(GOBIN)/geth-ios-5.0-*

geth-ios-8.1:
build/env.sh $(GOBIN)/xgo --go=$(GO) --dest=$(GOBIN) --deps=$(CROSSDEPS) --depsargs=--disable-assembly --targets=ios-8.1/* -v $(shell build/flags.sh) ./cmd/geth
@echo "iOS 8.1 cross compilation done:"
@ls -l $(GOBIN)/geth-ios-8.1-*

evm:
build/env.sh $(GOROOT)/bin/go install -v $(shell build/flags.sh) ./cmd/evm
@echo "Done building."
Expand Down

0 comments on commit 2c42e54

Please sign in to comment.