Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 970dc490 authored by VIEVILLE Thierry's avatar VIEVILLE Thierry
Browse files

sync from makefile

parent 4367f2ef
No related branches found
No related tags found
No related merge requests found
Pipeline #973791 passed
......@@ -109,21 +109,22 @@ AIDE_LIBS = $(AIDE_LIB) $(patsubst %,-l%,$(AIDEDEPS)) -lstdc++ -lm
ifndef ON_WIN
AIDE_LIBS += -lcurl
ifneq (,$(wildcard /usr/lib*/libpython3.12.so /usr/lib/*/libpython3.12.so))
AIDE_LIBS += -lpython3.12
PYTHON_LIB = -lpython3.12
else
ifneq (,$(wildcard /usr/lib*/libpython3.11.so /usr/lib/*/libpython3.11.so))
AIDE_LIBS += -lpython3.11
PYTHON_LIB = -lpython3.11
else
ifneq (,$(wildcard /usr/lib*/libpython3.10.so /usr/lib/*/libpython3.10.so))
AIDE_LIBS += -lpython3.10
PYTHON_LIB = -lpython3.10
else
ifdef ON_RASPPI
AIDE_LIBS += -lpython3.7m
PYTHON_LIB = -lpython3.7m
endif
endif
endif
endif
endif
AIDE_LIBS += $(PYTHON_LIB)
$(DESTDIR)/.bin/%: %.C $(DESTLIB)
@mkdir -p $(@D)
......@@ -150,6 +151,9 @@ ifneq (,$(shell grep '"gypfile" *: *true' ../package.json))
build_gyp: ../node_modules/.build_gyp_done
../node_modules/.build_gyp_done: $(wildcard ../node_modules/.lib/*.a)
ifneq (,$(PYTHON_LIB))
@cd .. ; cp binding.gyp binding.gyp~ ; sed 's/"-lpython[0-9.]*"/"$(PYTHON_LIB)"/' < binding.gyp~ > binding.gyp
endif
@cd .. ; node-gyp rebuild --silent
@mkdir -p $(@D) ; touch $@
......@@ -158,7 +162,7 @@ build_gyp:
endif
######################################################################################################
### This section implements the python binding compilation
## This section implements the python binding compilation
######################################################################################################
ifneq (,$(shell grep '"swig" *: *true' ../package.json))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment