GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cryptobox-ios/Makefile at master · wireapp/cryptobox-ios

This repository was archived by the owner on Oct 21, 2024. It is now read-only.

Expand file tree

/

Makefile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
78 lines (60 loc) · 2.19 KB
/

Makefile

Copy path

File metadata and controls

78 lines (60 loc) · 2.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
SHELL := /usr/bin/env bash
VERSION := 1.2.0
TARGETS := aarch64-apple-ios \
x86_64-apple-ios \
aarch64-apple-ios-sim
# pkg-config is invoked by libsodium-sys
# cf. https://github.com/alexcrichton/pkg-config-rs/blob/master/src/lib.rs#L12
export PKG_CONFIG_ALLOW_CROSS=1
.PHONY: all
all: dist
.PHONY: distclean
distclean:
rm -rf build
rm -rf dist
.PHONY: dist-libs
dist-libs: cryptobox
mkdir -p dist/lib
mkdir -p dist/include
cp build/lib/libsodium.a dist/lib/
cp -r build/include/* dist/include/
lipo -create $(foreach tgt,$(TARGETS),"build/lib/libcryptobox-$(tgt).a") \
-output "dist/lib/libcryptobox.a"
dist/cryptobox-ios-$(VERSION).tar.gz: dist-libs
tar -C dist \
-czf dist/cryptobox-ios-$(VERSION).tar.gz \
lib include
.PHONY: dist-tar
dist-tar: dist/cryptobox-ios-$(VERSION).tar.gz
.PHONY: dist
dist: dist-tar
#############################################################################
# cryptobox
include mk/cryptobox-src.mk
.PHONY: cryptobox
cryptobox: build/lib/libcryptobox.a build/include/cbox.h
build/lib/libcryptobox.a: libsodium | $(CRYPTOBOX_SRC)
cd $(CRYPTOBOX_SRC) && \
sed -i.bak s/crate\-type.*/crate\-type\ =\ \[\"staticlib\"\]/g Cargo.toml && \
$(foreach tgt,$(TARGETS),cargo rustc --lib --release --target=$(tgt);)
mkdir -p build/lib
$(foreach tgt,$(TARGETS),cp $(CRYPTOBOX_SRC)/target/$(tgt)/release/libcryptobox.a build/lib/libcryptobox-$(tgt).a;)
build/include/cbox.h: | $(CRYPTOBOX_SRC)
mkdir -p build/include
cp $(CRYPTOBOX_SRC)/src/cbox.h build/include/
#############################################################################
# libsodium
include mk/libsodium-src.mk
.PHONY: libsodium
libsodium: build/lib/libsodium.a build/include/sodium.h
build/lib/libsodium.a: | $(LIBSODIUM_SRC)
cp mk/ios-full.sh $(LIBSODIUM_SRC)/dist-build && \
chmod +x $(LIBSODIUM_SRC)/dist-build/ios-full.sh && \
cd $(LIBSODIUM_SRC) && \
dist-build/ios-full.sh
mkdir -p build/lib
cp $(LIBSODIUM_SRC)/libsodium-ios/libsodium.a build/lib/libsodium.a
build/include/sodium.h: build/lib/libsodium.a
mkdir -p build/include
cp $(LIBSODIUM_SRC)/libsodium-ios/include/sodium.h build/include/sodium.h
cp -r $(LIBSODIUM_SRC)/libsodium-ios/include/sodium build/include/sodium
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.