-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
71 lines (50 loc) · 2.16 KB
/
Makefile
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
# Attempt to load a config.make file.
# If none is found, project defaults in config.project.make will be used.
ifneq ($(wildcard config.make),)
include config.make
endif
# make sure the the OF_ROOT location is defined
ifndef OF_ROOT
OF_ROOT=$(realpath ../../of/of_v0.11.2_osx_release/)
endif
# call the project makefile!
include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk
# ofxTensorFlow2
include $(OF_ROOT)/addons/ofxTensorFlow2/addon_targets.mk
################################################################################
##### macos
# ofxSyphon
include syphon_targets.mk
# additional build targets for macOS
ifeq ($(PLATFORM_LIB_SUBPATH),osx)
##### syphon
# build Debug app and install both libtensorflow libs and the Syphon framework
DebugYolo: DebugTF2 DebugSyphon
# build Release app and install both libtensorflow libs and the Syphon framework
ReleaseYolo: ReleaseTF2 ReleaseSyphon
##### Makefile-mac-dist.mk
# mac release app name
mac.app.name = YoloOSC
# openFrameworks uses "APPNAME Debug" and "APPNAME Release" scheme naming
mac.app.project.scheme = YoloOSC Release
# dist version string, ie. APPNAME-VERSION for dist dir naming
mac.dist.version := $(shell /usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" openFrameworks-Info.plist)
# include these in the release dist package (relative to this dir)
mac.dist.include = bin/data doc CHANGES.txt LICENSE.txt README.md
# remove these from the release dist package (relative to the dist dir)
mac.dist.exclude = data/icon.icns data/icon-debug.icns
# add link to /Applications in dmg
mac.dmg.appslink = true
# codesign identity, usually a Developer ID Application string
# REPLACE this with your own or set it via the commandline:
# make app dist-dmg mac.codesign.identity="Foo Bar Baz Developers"
#mac.codesign.identity = Foo
MACDISTHELPER_DIR=.
include $(MACDISTHELPER_DIR)/Makefile-mac-dist.mk
# rename to txt
postdistdir::
cd $(mac.dist.subdir) && mv README.md README.txt
# override zip and dmg naming to include platform and arch
mac.dmg.name = $(mac.dist.name.version)-macos-$(shell uname -m)
mac.zip.name = $(mac.dist.name.version)-macos-$(shell uname -m)
endif # osx