-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 1.19 KB
/
Copy pathMakefile
File metadata and controls
35 lines (24 loc) · 1.19 KB
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
.PHONY: build verify clean
.PHONY: xcode-generate xcode-build xcode-sign xcode-run xcode-smoke xcode-lifecycle-smoke
XCODE_DERIVED_DATA ?= build/NativDevelopmentDerivedData
export DEVELOPER_DIR ?= /Applications/Xcode.app/Contents/Developer
build:
python3 PythonDistribution/Scripts/build_mlx_vlm_server.py
verify:
python3 PythonDistribution/Scripts/build_mlx_vlm_server.py --verify-only
verify-python:
python3 PythonDistribution/Scripts/build_mlx_vlm_server.py --skip-install --verify-only
clean:
rm -rf build dist
xcode-generate:
xcodegen generate
xcode-build: xcode-generate
xcodebuild -project Nativ.xcodeproj -scheme Nativ -configuration Debug -derivedDataPath $(XCODE_DERIVED_DATA) CODE_SIGNING_ALLOWED=NO build
xcode-sign: xcode-build
./scripts/sign_macos_debug.sh $(abspath $(XCODE_DERIVED_DATA)/Build/Products/Debug/Nativ.app)
xcode-run: xcode-sign
./scripts/open_macos_debug.sh $(abspath $(XCODE_DERIVED_DATA)/Build/Products/Debug/Nativ.app)
xcode-smoke: xcode-build
$(XCODE_DERIVED_DATA)/Build/Products/Debug/Nativ.app/Contents/MacOS/Nativ --smoke-test
xcode-lifecycle-smoke: xcode-build
$(XCODE_DERIVED_DATA)/Build/Products/Debug/Nativ.app/Contents/MacOS/Nativ --lifecycle-smoke-test