-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (59 loc) · 1.95 KB
/
Makefile
File metadata and controls
68 lines (59 loc) · 1.95 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
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
.PHONY: all build clean test demo install help
SCHEME_FRAMEWORK = PlayerControls
SCHEME_DEMO = PlayerControlsDemo
CONFIGURATION = Release
BUILD_DIR = build
DERIVED_DATA = $(BUILD_DIR)/DerivedData
all: build
help:
@echo "PlayerControls Makefile"
@echo ""
@echo "Available targets:"
@echo " build - Build the PlayerControls framework (Release)"
@echo " debug - Build the PlayerControls framework (Debug)"
@echo " test - Run tests"
@echo " demo - Build the demo application"
@echo " clean - Clean build artifacts"
@echo " install - Build and copy framework to /Library/Frameworks (requires sudo)"
@echo " help - Show this help message"
build:
@echo "Building PlayerControls framework ($(CONFIGURATION))..."
xcodebuild -scheme $(SCHEME_FRAMEWORK) \
-configuration $(CONFIGURATION) \
-derivedDataPath $(DERIVED_DATA) \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
clean build
debug:
@echo "Building PlayerControls framework (Debug)..."
xcodebuild -scheme $(SCHEME_FRAMEWORK) \
-configuration Debug \
-derivedDataPath $(DERIVED_DATA) \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
clean build
test:
@echo "Running tests..."
xcodebuild -scheme $(SCHEME_FRAMEWORK) \
-derivedDataPath $(DERIVED_DATA) \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
test
demo:
@echo "Building PlayerControlsDemo..."
xcodebuild -scheme $(SCHEME_DEMO) \
-configuration $(CONFIGURATION) \
-derivedDataPath $(DERIVED_DATA) \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
clean build
clean:
@echo "Cleaning build artifacts..."
rm -rf $(BUILD_DIR)
xcodebuild -scheme $(SCHEME_FRAMEWORK) clean
@echo "Clean complete."
install: build
@echo "Installing PlayerControls.framework to /Library/Frameworks..."
@echo "This requires administrator privileges."
sudo cp -R $(DERIVED_DATA)/Build/Products/$(CONFIGURATION)/PlayerControls.framework /Library/Frameworks/
@echo "Installation complete."