From 42d5a8fee255c517c5e4d5cb200bff5a18654baf Mon Sep 17 00:00:00 2001 From: horchi Date: Thu, 28 Nov 2019 13:33:41 +0100 Subject: 2019-11-28: version 1.1.102 (horchi)\n - added: Support of python 3.8 (by Alexander Grothe)\n\n --- Make.config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Make.config') diff --git a/Make.config b/Make.config index 85024f4..d1a9c52 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) + CFLAGS += $(shell python-config --includes) +endif + USES = -DVDR_PLUGIN -DUSEUUID -DUSEMD5 -DUSEJSON -DUSEGUNZIP -DPLUGIN_NAME_I18N='"$(PLUGIN)"' ifdef DEBUG -- cgit v1.2.3