mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
The current `rust/` directory is a bit of a wild-west in terms of how the crates are organised. Most of them are simply at the top-level when in reality, they are all `connlib`-related. The Apple and Android FFI crates - which are entrypoints in the Rust code are defined several layers deep. To improve the situation, we move around and rename several crates. The end result is that all top-level crates / directories are: - Either entrypoints into the Rust code, i.e. applications such as Gateway, Relay or a Client - Or crates shared across all those entrypoints, such as `telemetry` or `logging`
18 lines
556 B
Makefile
18 lines
556 B
Makefile
# Creates a macOS debug build
|
|
|
|
PLATFORM=macOS
|
|
ARCH=$(shell uname -m)
|
|
|
|
build-macos:
|
|
echo "Building debug build for ${PLATFORM}, ${ARCH}"
|
|
cd ../../rust/apple-client-ffi && rm -rf ./Connlib.xcframework && ./build-rust.sh && ./build-xcframework-dev.sh
|
|
@xcodebuild build -scheme Firezone -sdk macosx -destination 'platform=${PLATFORM},arch=${ARCH}'
|
|
|
|
clean:
|
|
@xcodebuild clean -scheme Firezone -sdk macosx -destination 'platform=${PLATFORM},arch=${ARCH}'
|
|
cd ../../rust/apple-client-ffi && rm -rf ./Connlib.xcframework
|
|
|
|
.PHONY: format
|
|
format:
|
|
@swiftformat .
|