Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 31 additions & 4 deletions addon_config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ common:
# include search paths, this will be usually parsed from the file system
# but if the addon or addon libraries need special search paths they can be
# specified here separated by spaces or one per line using +=
# ADDON_INCLUDES =
ADDON_INCLUDES = src/ libs/OpenVR/headers libs/OpenVR/src/ libs/OpenVR/src/vrcommon/


# any special flag that should be passed to the compiler when using this
# addon
# ADDON_CFLAGS =
#ADDON_CFLAGS = -DPOSIX -DOSX

# any special flag that should be passed to the linker when using this
# addon, also used for system libraries with -lname
# ADDON_LDFLAGS =
#ADDON_LDFLAGS = -lopenvr_api

# linux only, any library that should be included in the project using
# pkg-config
Expand All @@ -60,6 +61,19 @@ common:
# a specific platform
# ADDON_LIBS_EXCLUDE =

ADDON_INCLUDES_EXCLUDE = libs/OpenVR/bin/
ADDON_INCLUDES_EXCLUDE += libs/OpenVR/bin/%
ADDON_INCLUDES_EXCLUDE += libs/OpenVR/lib/%
ADDON_INCLUDES_EXCLUDE += libs/OpenVR/samples/%
ADDON_INCLUDES_EXCLUDE += libs/OpenVR/unity_package/%

ADDON_LIBS_EXCLUDE = libs/OpenVR/samples/%
ADDON_LIBS_EXCLUDE += libs/OpenVR/unity_package/%
#ADDON_LIBS_EXCLUDE += libs/OpenVR/bin/%

ADDON_SOURCES_EXCLUDE = libs/OpenVR/samples/%
ADDON_SOURCES_EXCLUDE += MX/%

vs:
ADDON_INCLUDES_EXCLUDE = ..\..\..\addons\ofxOpenVR\libs
ADDON_INCLUDES_EXCLUDE += ..\..\..\addons\ofxOpenVR\libs\OpenVR
Expand All @@ -76,4 +90,17 @@ vs:

ADDON_SOURCES_EXCLUDE = ..\..\..\addons\ofxOpenVR\libs\OpenVR\samples
ADDON_SOURCES_EXCLUDE += ..\..\..\addons\ofxOpenVR\libs\OpenVR\samples\%


linux64:
# ADDON_SOURCES_EXCLUDE = libs/OpenVR/samples/%
# ADDON_SOURCES_EXCLUDE += libs/OpenVR/unity_package/%
ADDON_CFLAGS = -DPOSIX -DLINUX -DLINUX64
linux:
ADDON_CFLAGS = -DPOSIX -DLINUX

msys2:
#ADDON_CFLAGS =
ADDON_LDFLAGS = -L${OF_ROOT}/addons/ofxOpenVRTracker/libs/OpenVR/bin/win32/ -lopenvr_api

osx:
ADDON_CFLAGS = -DPOSIX -DOSX