forked from hiroMTB/ofxOrbbecAstra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddon_config.mk
48 lines (39 loc) · 2.13 KB
/
addon_config.mk
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
meta:
ADDON_NAME = ofxOrbbecAstra
ADDON_DESCRIPTION = OF wrapper Orbbec Astra SDK
ADDON_AUTHOR = Matt Felsen
ADDON_TAGS = "orbbec" "astra" "depth camera"
ADDON_URL = https://github.com/mattfelsen/ofxOrbbecAstra
common:
#ADDON_LIBS += libs/astra/lib
linux64:
ADDON_DATA = libs/astra/lib/linux64/*
ADDON_DLLS_TO_COPY = libs/astra/lib/linux64/
osx:
ADDON_LDFLAGS = -rpath ../../../../addons/ofxOrbbecAstra/libs/astra/lib/osx
# ↑↑↑ this enables to excute app from Xcode. But not by double clicking .app from finder
# To make standalone app package, we need additional process (copy and install_name_tool).
# Check Xcode project setting->Build Phase->RunScript section and find how oF manages libfmodex.dylib
# Another nice option is dylibbundler https://github.com/auriamg/macdylibbundler
# You might see warning saying libmodex.dylib is missing but you can simply solve it by passing relative path to directory of libfmodx.dylib (see sample command below)
# Sample useage of dylibbundler (please install first)
# $ cd <your-project-path>/bin
# $ dylibbundler -od -b -x ./example.app/Contents/MacOS/example -d ./example.app/Contents/libs
#
#/!\ WARNING : Cannot resolve path '@executable_path/../Frameworks/libfmodex.dylib'
#/!\ WARNING : Library libfmodex.dylib has an incomplete name (location unknown)
# Please specify now the directory where this library can be found
# $ ./example.app/Contents/Frameworks
# Fixing dependency blur blur blur
# ....
# Now you can double click and launch your app
# more discussion at here https://forum.openframeworks.cc/t/dynamic-libraries-for-osx-addon/19908/11
# Legacy(does not work with ProjectGenerator)
# ADDON_LIBS = libs/astra/lib/osx/libastra_core_api.dylib
# ADDON_LIBS += libs/astra/lib/osx/libastra_core.dylib
# ADDON_LIBS += libs/astra/lib/osx/libastra.dylib
# All of the libs, including those inside the Plugins folder, do need to be
# available for loading at runtime, so copy them into the bin folder,
# maintaining the folder structure
# this does not work on OSX
# ADDON_DLLS_TO_COPY = libs/astra/lib/osx/