Ahmet Göksu pushed to branch gsoc-2024-ahmet at FreeType / FreeType Demo Programs
Commits:
-
7148ad43
by Ahmet Goksu at 2024-08-20T17:10:27+03:00
1 changed file:
Changes:
... | ... | @@ -12,13 +12,17 @@ SWIFTFLAGS := -import-objc-header $(GRAPH)/cocoa/grcocoa.h |
12 | 12 | |
13 | 13 | # Cocoa specific settings
|
14 | 14 | ifeq ($(shell uname -s), Darwin)
|
15 | - SWIFT_OBJS += $(OBJ_DIR_2)/grcocoa.$(O)
|
|
16 | - FRAMEWORKS = -framework Cocoa
|
|
17 | - LDFLAGS += $(FRAMEWORKS)
|
|
18 | - GRAPH_OBJS += $(SWIFT_OBJS)
|
|
15 | + SWIFT_OBJS += $(OBJ_DIR_2)/grcocoa.$(O)
|
|
16 | + FRAMEWORKS = -framework Cocoa
|
|
17 | + LDFLAGS += $(FRAMEWORKS)
|
|
18 | + GRAPH_OBJS += $(SWIFT_OBJS)
|
|
19 | +else
|
|
20 | + @echo "Cocoa is not supported on this platform."
|
|
21 | + @exit 1
|
|
19 | 22 | endif
|
20 | 23 | |
21 | 24 | |
25 | + |
|
22 | 26 | $(OBJ_DIR_2)/grcocoa.$(O): $(GRAPH)/cocoa/grcocoa.swift
|
23 | 27 | $(LIBTOOL) --mode=compile $(CC) -c $(GRAPH)/cocoa/grcocoa-dummy.c -o $@
|
24 | 28 | rm -f $(OBJ_DIR_2)/.libs/grcocoa.o
|