-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathconfig.macos.default.mk
More file actions
447 lines (376 loc) · 19.9 KB
/
config.macos.default.mk
File metadata and controls
447 lines (376 loc) · 19.9 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
##########################################################################################
# CONFIGURE CORE PLATFORM MAKEFILE
# This file is where we make platform and architecture specific configurations.
# This file can be specified for a generic architecture or can be defined as variants.
# For instance, normally this file will be located in a platform specific subpath such
# as $(OF_ROOT)/libs/openFrameworksComplied/linux64.
#
# This file will then be a generic platform file like:
#
# configure.core.linux64.default.make
#
# Or it can specify a specific platform variant like:
#
# configure.core.armv6l.raspberrypi.make
#
##########################################################################################
##########################################################################################
# PLATFORM SPECIFIC CHECKS
# This is a platform defined section to create internal flags to enable or disable
# the addition of various features within this makefile. For instance, on Linux,
# we check to see if there GTK+-2.0 is defined, allowing us to include that library
# and generate DEFINES that are interpreted as ifdefs within the openFrameworks
# core source code.
##########################################################################################
PLATFORM_PROJECT_DEBUG_BIN_NAME=$(APPNAME)_debug
PLATFORM_PROJECT_RELEASE_BIN_NAME=$(APPNAME)
PLATFORM_RUN_COMMAND = cd bin/$(BIN_NAME).app/Contents/MacOS/;./$(BIN_NAME)
##########################################################################################
# PLATFORM DEFINES
# Create a list of DEFINES for this platform. The list will be converted into
# CFLAGS with the "-D" flag later in the makefile. An example of fully qualified flag
# might look something like this: -DTARGET_OPENGLES2
#
# DEFINES are used throughout the openFrameworks code, especially when making
# #ifdef decisions for cross-platform compatibility. For instance, when chosing a
# video playback framework, the openFrameworks base classes look at the DEFINES
# to determine what source files to include or what default player to use.
#
# Note: Be sure to leave a leading space when using a += operator to add items to the list
##########################################################################################
PLATFORM_DEFINES = __MACOSX_CORE__
##########################################################################################
# PLATFORM REQUIRED ADDON
# This is a list of addons required for this platform. This list is used to EXCLUDE
# addon source files when compiling projects, while INCLUDING their header files.
# During core library compilation, this is used to include required addon header files
# as needed within the core.
#
# For instance, if you are compiling for Android, you would add ofxAndroid here.
# If you are compiling for Raspberry Pi, you would add ofxRaspberryPi here.
#
# Note: Be sure to leave a leading space when using a += operator to add items to the list
##########################################################################################
PLATFORM_REQUIRED_ADDONS =
##########################################################################################
# PLATFORM CFLAGS
# This is a list of fully qualified CFLAGS required when compiling for this platform.
# These flags will always be added when compiling a project or the core library. These
# Flags are presented to the compiler AFTER the PLATFORM_OPTIMIZATION_CFLAGS below.
#
# Note: Be sure to leave a leading space when using a += operator to add items to the list
##########################################################################################
ifndef MAC_OS_MIN_VERSION
MAC_OS_MIN_VERSION = 10.15
endif
ifndef MAC_OS_STD_LIB
MAC_OS_STD_LIB = libc++
endif
ifndef MAC_OS_C_VER
MAC_OS_C_VER = -std=c17
endif
ifndef MAC_OS_CPP_VER
MAC_OS_CPP_VER = -std=c++2b
endif
# Link against libstdc++ to silence tr1/memory errors on latest versions of osx
PLATFORM_CFLAGS = "" #-stdlib=$(MAC_OS_STD_LIB)
# Warning Flags (http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html)
PLATFORM_CFLAGS += -Wall -Werror=return-type
# Code Generation Option Flags (http://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html)
PLATFORM_CFLAGS += -fexceptions
ifeq ($(shell xcode-select -print-path 2> /dev/null; echo $$?),0)
MAC_OS_XCODE_ROOT=$(shell xcode-select -print-path)
MAC_OS_SDK_PATH=$(MAC_OS_XCODE_ROOT)/Platforms/MacOSX.platform/Developer/SDKs
ifndef MAC_OS_SDK
ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX14.5.sdk),$(MAC_OS_SDK_PATH)/MacOSX14.5.sdk)
MAC_OS_SDK=14.5
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX14.4.sdk),$(MAC_OS_SDK_PATH)/MacOSX14.4.sdk)
MAC_OS_SDK=14.4
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX14.3.sdk),$(MAC_OS_SDK_PATH)/MacOSX14.3.sdk)
MAC_OS_SDK=14.3
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX14.2.sdk),$(MAC_OS_SDK_PATH)/MacOSX14.2.sdk)
MAC_OS_SDK=14.2
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX14.1.sdk),$(MAC_OS_SDK_PATH)/MacOSX14.1.sdk)
MAC_OS_SDK=14.1
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX14.0.sdk),$(MAC_OS_SDK_PATH)/MacOSX14.0.sdk)
MAC_OS_SDK=14.0
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX13.2.sdk),$(MAC_OS_SDK_PATH)/MacOSX13.2.sdk)
MAC_OS_SDK=13.2
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX13.1.sdk),$(MAC_OS_SDK_PATH)/MacOSX13.1.sdk)
MAC_OS_SDK=13.1
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX13.0.sdk),$(MAC_OS_SDK_PATH)/MacOSX13.0.sdk)
MAC_OS_SDK=13.0
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX12.4.sdk),$(MAC_OS_SDK_PATH)/MacOSX12.4.sdk)
MAC_OS_SDK=12.4
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX12.3.sdk),$(MAC_OS_SDK_PATH)/MacOSX12.3.sdk)
MAC_OS_SDK=12.3
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX12.2.sdk),$(MAC_OS_SDK_PATH)/MacOSX12.2.sdk)
MAC_OS_SDK=12.2
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX12.1.sdk),$(MAC_OS_SDK_PATH)/MacOSX12.1.sdk)
MAC_OS_SDK=12.1
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX12.0.sdk),$(MAC_OS_SDK_PATH)/MacOSX12.0.sdk)
MAC_OS_SDK=12.0
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX11.4.sdk),$(MAC_OS_SDK_PATH)/MacOSX11.4.sdk)
MAC_OS_SDK=11.4
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX11.3.sdk),$(MAC_OS_SDK_PATH)/MacOSX11.3.sdk)
MAC_OS_SDK=11.3
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX11.2.sdk),$(MAC_OS_SDK_PATH)/MacOSX11.2.sdk)
MAC_OS_SDK=11.2
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX11.1.sdk),$(MAC_OS_SDK_PATH)/MacOSX11.1.sdk)
MAC_OS_SDK=11.1
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX11.0.sdk),$(MAC_OS_SDK_PATH)/MacOSX11.0.sdk)
MAC_OS_SDK=11.0
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX10.15.sdk),$(MAC_OS_SDK_PATH)/MacOSX10.15.sdk)
MAC_OS_SDK=10.15
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX10.14.sdk),$(MAC_OS_SDK_PATH)/MacOSX10.14.sdk)
MAC_OS_SDK=10.14
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX10.13.sdk),$(MAC_OS_SDK_PATH)/MacOSX10.13.sdk)
MAC_OS_SDK=10.13
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX10.12.sdk),$(MAC_OS_SDK_PATH)/MacOSX10.12.sdk)
MAC_OS_SDK=10.12
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX10.11.sdk),$(MAC_OS_SDK_PATH)/MacOSX10.11.sdk)
MAC_OS_SDK=10.11
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX10.10.sdk),$(MAC_OS_SDK_PATH)/MacOSX10.10.sdk)
MAC_OS_SDK=10.10
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX10.9.sdk),$(MAC_OS_SDK_PATH)/MacOSX10.9.sdk)
MAC_OS_SDK=10.9
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX10.8.sdk),$(MAC_OS_SDK_PATH)/MacOSX10.8.sdk)
MAC_OS_SDK=10.8
else ifeq ($(wildcard $(MAC_OS_SDK_PATH)/MacOSX10.7.sdk),$(MAC_OS_SDK_PATH)/MacOSX10.7.sdk)
MAC_OS_SDK=10.7
endif
endif
ifndef MAC_OS_SDK_ROOT
MAC_OS_SDK_ROOT = $(MAC_OS_SDK_PATH)/MacOSX$(MAC_OS_SDK).sdk
endif
else
# xcode-select was not set, assume command line tools are installed
MAC_OS_SDK_ROOT=
endif
# Optimization options (http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html)
#PLATFORM_CFLAGS += -finline-functions
#PLATFORM_CFLAGS += -funroll-all-loops
#PLATFORM_CFLAGS += -Os
#PLATFORM_CFLAGS += -arch i386
# other osx
PLATFORM_CFLAGS += -fpascal-strings
ifdef MAC_OS_SDK_ROOT
PLATFORM_CFLAGS += -isysroot $(MAC_OS_SDK_ROOT)
PLATFORM_CFLAGS += -F$(MAC_OS_SDK_ROOT)/System/Library/Frameworks
endif
PLATFORM_CFLAGS += -mmacosx-version-min=$(MAC_OS_MIN_VERSION)
PLATFORM_CFLAGS += $(MAC_OS_C_VER)
PLATFORM_CXXFLAGS += -mmacosx-version-min=$(MAC_OS_MIN_VERSION)
PLATFORM_CXXFLAGS += -x objective-c++
PLATFORM_CXXFLAGS += $(MAC_OS_CPP_VER)
# Enable ARC
PLATFORM_CFLAGS += -fobjc-arc
ifeq ($(USE_GST),1)
PLATFORM_CFLAGS += -I/Library/Frameworks/Gstreamer.framework/Headers
endif
################################################################################
# PLATFORM LDFLAGS
# This is a list of fully qualified LDFLAGS required when linking for this
# platform. These flags will always be added when linking a project.
#
# Note: Leave a leading space when adding list items with the += operator
################################################################################
PLATFORM_LDFLAGS = -stdlib=$(MAC_OS_STD_LIB)
#PLATFORM_LDFLAGS += -arch i386
# PLATFORM_LDFLAGS += -lcurl
PLATFORM_LDFLAGS += -mmacosx-version-min=$(MAC_OS_MIN_VERSION) -v
##########################################################################################
# PLATFORM OPTIMIZATION CFLAGS
# These are lists of CFLAGS that are target-specific. While any flags could be
# conditionally added, they are usually limited to optimization flags. These flags are
# added BEFORE the PLATFORM_CFLAGS.
#
# PLATFORM_OPTIMIZATION_CFLAGS_RELEASE flags are only applied to RELEASE targets.
#
# PLATFORM_OPTIMIZATION_CFLAGS_DEBUG flags are only applied to DEBUG targets.
#
# Note: Be sure to leave a leading space when using a += operator to add items to the list
##########################################################################################
# RELEASE Debugging options (http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html)
PLATFORM_OPTIMIZATION_CFLAGS_RELEASE = -O3
# DEBUG Debugging options (http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html)
PLATFORM_OPTIMIZATION_CFLAGS_DEBUG = -g3
# Architecture / Machine Flags (http://gcc.gnu.org/onlinedocs/gcc/Submodel-Options.html)
ifeq ($(shell gcc -march=native -S -o /dev/null -xc /dev/null 2> /dev/null; echo $$?),0)
#PLATFORM_OPTIMIZATION_CFLAGS_RELEASE += -march=native
PLATFORM_OPTIMIZATION_CFLAGS_RELEASE += -mtune=native
endif
##########################################################################################
# PLATFORM CORE EXCLUSIONS
# During compilation, these makefiles will generate lists of sources, headers and
# third party libraries to be compiled and linked into a program or core library.
# The PLATFORM_CORE_EXCLUSIONS is a list of fully qualified file paths that will be used
# to exclude matching paths and files during list generation.
#
# Each item in the PLATFORM_CORE_EXCLUSIONS list will be treated as a complete string
# unless teh user adds a wildcard (%) operator to match subdirectories. GNU make only
# allows one wildcard for matching. The second wildcard (%) is treated literally.
#
# Note: Be sure to leave a leading space when using a += operator to add items to the list
##########################################################################################
# core sources
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/app/ofAppGlutWindow.cpp
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/video/ofDirectShowGrabber.cpp
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/video/ofDirectShowPlayer.cpp
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/video/ofMediaFoundationPlayer.cpp
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/sound/ofMediaFoundationSoundPlayer.cpp
ifneq ($(USE_GST),1)
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/video/ofGstUtils.cpp
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/video/ofGstVideoGrabber.cpp
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/video/ofGstVideoPlayer.cpp
endif
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/app/ofAppEGLWindow.cpp
# third party
ifeq ($(USE_FMOD),0)
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/fmod/%
PLATFORM_CORE_EXCLUSIONS += $(OF_LIBS_PATH)/openFrameworks/sound/ofFmodSoundPlayer.cpp
endif
##########################################################################################
# PLATFORM HEADER SEARCH PATHS
# These are header search paths that are platform specific and are specified
# using fully-qualified paths. The include flag (i.e. -I) is prefixed automatically.
# These are usually not required, but may be required by some experimental platforms
# such as the raspberry pi or other other embedded architectures.
#
# Note: Be sure to leave a leading space when using a += operator to add items to the list
##########################################################################################
PLATFORM_HEADER_SEARCH_PATHS =
##########################################################################################
# PLATFORM LIBRARIES
# These are library names/paths that are platform specific and are specified
# using names or paths. The library flag (i.e. -l) is prefixed automatically.
#
# PLATFORM_LIBRARIES are libraries that can be found in the library search paths.
# PLATFORM_STATIC_LIBRARIES is a list of required static libraries.
# PLATFORM_SHARED_LIBRARIES is a list of required shared libraries.
# PLATFORM_PKG_CONFIG_LIBRARIES is a list of required libraries that are under system
# control and are easily accesible via the package configuration utility
# (i.e. pkg-config)
#
# See the helpfile for the -l flag here for more information:
# http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
#
# Note: Be sure to leave a leading space when using a += operator to add items to the list
##########################################################################################
PLATFORM_LIBRARIES = objc
#static libraries (fully qualified paths)
PLATFORM_STATIC_LIBRARIES =
# shared libraries
PLATFORM_SHARED_LIBRARIES =
##########################################################################################
# PLATFORM LIBRARY SEARCH PATHS
# These are library search paths that are platform specific and are specified
# using fully-qualified paths. The lib search flag (i.e. -L) is prefixed automatically.
# The -L paths are used to find libraries defined above with the -l flag.
#
# See the the following link for more information on the -L flag:
# http://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html
#
# Note: Be sure to leave a leading space when using a += operator to add items to the list
##########################################################################################
PLATFORM_LIBRARY_SEARCH_PATHS =
##########################################################################################
# PLATFORM FRAMEWORKS
# These are a list of platform frameworks.
# These are used exclusively with Darwin/OSX.
#
# Note: Be sure to leave a leading space when using a += operator to add items to the list
##########################################################################################
PLATFORM_FRAMEWORKS =
PLATFORM_FRAMEWORKS += Accelerate
PLATFORM_FRAMEWORKS += AppKit
PLATFORM_FRAMEWORKS += ApplicationServices
PLATFORM_FRAMEWORKS += AVFoundation
PLATFORM_FRAMEWORKS += AudioToolbox
PLATFORM_FRAMEWORKS += Cocoa
PLATFORM_FRAMEWORKS += CoreVideo
PLATFORM_FRAMEWORKS += CoreAudio
PLATFORM_FRAMEWORKS += CoreMedia
PLATFORM_FRAMEWORKS += CoreFoundation
PLATFORM_FRAMEWORKS += CoreServices
PLATFORM_FRAMEWORKS += Metal
PLATFORM_FRAMEWORKS += Foundation
PLATFORM_FRAMEWORKS += IOKit
PLATFORM_FRAMEWORKS += OpenGL
PLATFORM_FRAMEWORKS += QuartzCore
PLATFORM_FRAMEWORKS += Security
PLATFORM_FRAMEWORKS += SystemConfiguration
ifeq ($(USE_GST),1)
PLATFORM_FRAMEWORKS += GStreamer
endif
##########################################################################################
# PLATFORM FRAMEWORK SEARCH PATHS
# These are a list of platform framework search paths.
# These are used exclusively with Darwin/OSX.
#
# Note: Be sure to leave a leading space when using a += operator to add items to the list
##########################################################################################
PLATFORM_FRAMEWORKS_SEARCH_PATHS = /System/Library/Frameworks
##########################################################################################
# LOW LEVEL CONFIGURATION BELOW
# The following sections should only rarely be modified. They are meant for developers
# why need fine control when, for instance, creating a platform specific makefile for
# a new openFrameworks platform, such as raspberry pi.
##########################################################################################
##########################################################################################
# PLATFORM CONFIGURATIONS
# These will override the architecture vars generated by configure.platform.make
##########################################################################################
#PLATFORM_ARCH =
#PLATFORM_OS =
#PLATFORM_LIBS_PATH =
################################################################################
# PLATFORM CXX
# Don't want to use a default compiler?
################################################################################
# PLATFORM_CXX =
################################################################################
# PLATFORM CC
# Don't want to use a default compiler?
################################################################################
#PLATFORM_CC=
afterplatform: $(TARGET_NAME)
@rm -rf bin/$(BIN_NAME).app
@mkdir -p bin/$(BIN_NAME).app
@mkdir -p bin/$(BIN_NAME).app/Contents
@mkdir -p bin/$(BIN_NAME).app/Contents/MacOS
@mkdir -p bin/$(BIN_NAME).app/Contents/Resources
# Use the openFrameworks-Info.plist as the default. Feel free to edit it in your project folder to override and values.
@if [ ! -f openFrameworks-Info.plist ]; then cp $(OF_ROOT)/scripts/templates/osx/openFrameworks-Info.plist openFrameworks-Info.plist; fi
@cp openFrameworks-Info.plist bin/$(BIN_NAME).app/Contents/Info.plist;
# App icons
ifeq ($(RUN_TARGET), RunRelease)
@if [ -f of.icns ]; then cp of.icns bin/$(BIN_NAME).app/Contents/Resources/; else cp $(OF_LIBS_PATH)/openFrameworksCompiled/project/osx/of.icns bin/$(BIN_NAME).app/Contents/Resources/; fi
@sed -i '' 's/\$${ICON_NAME}/of.icns/g' bin/$(BIN_NAME).app/Contents/Info.plist
else
@if [ -f of_debug.icns ]; then cp of_debug.icns bin/$(BIN_NAME).app/Contents/Resources/; else cp $(OF_LIBS_PATH)/openFrameworksCompiled/project/osx/of_debug.icns bin/$(BIN_NAME).app/Contents/Resources/; fi
@sed -i '' 's/\$${ICON_NAME}/of_debug.icns/g' bin/$(BIN_NAME).app/Contents/Info.plist
endif
@sed -i '' 's/\$${DEVELOPMENT_LANGUAGE}/English/g' bin/$(BIN_NAME).app/Contents/Info.plist
@sed -i '' 's/\$${EXECUTABLE_NAME}/$(BIN_NAME)/g' bin/$(BIN_NAME).app/Contents/Info.plist
@sed -i '' 's/\$${TARGET_NAME}/$(BIN_NAME)/g' bin/$(BIN_NAME).app/Contents/Info.plist
@sed -i '' 's/\$${PRODUCT_BUNDLE_IDENTIFIER}/cc.openFrameworks.$(BIN_NAME)/g' bin/$(BIN_NAME).app/Contents/Info.plist
@sed -i '' 's/\$${MARKETING_VERSION}/1.0/g' bin/$(BIN_NAME).app/Contents/Info.plist
@echo TARGET=$(TARGET)
@mv $(TARGET) bin/$(BIN_NAME).app/Contents/MacOS
ifneq ($(USE_FMOD),0)
@mkdir -p bin/$(BIN_NAME).app/Contents/Frameworks
@cp $(OF_LIBS_PATH)/*/lib/$(PLATFORM_LIB_SUBPATH)/*.$(SHARED_LIB_EXTENSION) bin/$(BIN_NAME).app/Contents/Frameworks/;
endif
@echo
@echo " compiling done"
@echo " to launch the application"
@echo
@echo " cd bin/$(BIN_NAME).app/Contents/MacOS/"
@echo " ./$(BIN_NAME)"
@echo " "
@echo " - or -"
@echo " "
@echo " make $(RUN_TARGET)"
@echo
@echo "{ \"build\": \"SUCCESS\", \"app\": \"bin/$(BIN_NAME).app\", \"binary\": \"bin/$(BIN_NAME).app/Contents/MacOS/$(BIN_NAME)\" }"