diff options
Diffstat (limited to 'Make.config')
-rw-r--r-- | Make.config | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Make.config b/Make.config index 85024f4..b60af0f 100644 --- a/Make.config +++ b/Make.config @@ -19,6 +19,9 @@ PREFIX = /usr/local DEBUG = 1 #USE_CLANG = 1 +# set python interpreter +PYTHON ?= python + # ----------------------- # don't touch below ;) @@ -35,6 +38,17 @@ doLib = ar -rs USEPYTHON = 1 USEEPGS = 1 +ifdef USEPYTHON + ifeq ($(shell $(PYTHON) -c 'from __future__ import print_function; import sys; sys.exit(0) if sys.version_info[:2] < (3,8) else print(1)'), 1) + PYTHON_LIBS = $(shell $(PYTHON)-config --libs --embed) + else + PYTHON_LIBS = $(shell $(PYTHON)-config --libs) + endif + LIBS += $(PYTHON_LIBS) + BASELIBS += $(PYTHON_LIBS) + CXXFLAGS += $(shell $(PYTHON)-config --includes) +endif + USES = -DVDR_PLUGIN -DUSEUUID -DUSEMD5 -DUSEJSON -DUSEGUNZIP -DPLUGIN_NAME_I18N='"$(PLUGIN)"' ifdef DEBUG |