mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-27 00:05:10 +00:00
* More fixes for the r2-bindings configure
This commit is contained in:
parent
62101a69b7
commit
37a492bdd0
@ -34,7 +34,12 @@ $(foreach p,${ALANGS},$(eval $(call ADD_lang,$(p))))
|
||||
.PHONY: ${INSTALL_TARGETS} ${INSTALL_EXAMPLE_TARGETS} ${LANG}
|
||||
|
||||
ifeq ($(DEVEL_MODE),1)
|
||||
all: supported.langs ruby perl python lua go gear gir
|
||||
LANGS=$(shell cat supported.langs|sort|uniq)
|
||||
all: supported.langs
|
||||
@for a in ${LANGS} ; do \
|
||||
[ $$a = valac ] && continue; \
|
||||
(cd $$a && ${MAKE} ) ; done
|
||||
|
||||
supported.langs:
|
||||
CC=${CC} CXX=${CXX} sh check-langs.sh
|
||||
else
|
||||
|
@ -54,16 +54,23 @@ for a in lua python php5 ; do
|
||||
[ -f $a/r_core_wrap.cxx ] && SUP_LANGS="$a ${SUP_LANGS}"
|
||||
done
|
||||
|
||||
for a in valac g++ ; do
|
||||
$a --help > /dev/null 2>&1
|
||||
# check g++
|
||||
${CXX} --help >/dev/null 2>&1
|
||||
if [ $? = 0 ]; then
|
||||
echo " - $a: yes"
|
||||
SUP_LANGS="$a ${SUP_LANGS}"
|
||||
echo " - cxx: yes ($CXX)"
|
||||
SUP_LANGS="cxx ${SUP_LANGS}"
|
||||
else
|
||||
echo " - $a: no"
|
||||
echo " - cxx: no"
|
||||
fi
|
||||
done
|
||||
|
||||
# check valac
|
||||
valac --help > /dev/null 2>&1
|
||||
if [ $? = 0 ]; then
|
||||
echo " - valac: yes"
|
||||
SUP_LANGS="valac ${SUP_LANGS}"
|
||||
else
|
||||
echo " - valac: no"
|
||||
fi
|
||||
|
||||
:> supported.langs
|
||||
for a in ${SUP_LANGS}; do
|
||||
|
@ -32,7 +32,7 @@ disable() {
|
||||
exit 1
|
||||
fi
|
||||
ENABLE=""
|
||||
DISABLE="echo $1 | sed -e 's/:/ /g'"
|
||||
DISABLE="`echo $1 | sed -e 's/:/ /g'`"
|
||||
}
|
||||
|
||||
MODE=""
|
||||
@ -63,6 +63,10 @@ if [ -n "${DISABLE}" ]; then
|
||||
rm -f .sl
|
||||
fi
|
||||
|
||||
mv supported.langs .sl
|
||||
cat .sl | sort | uniq > supported.langs
|
||||
rm -f .sl
|
||||
|
||||
echo "Supported langs:"
|
||||
cat supported.langs | sed -e 's,^, - ,'
|
||||
|
||||
@ -70,6 +74,4 @@ cat supported.langs | sed -e 's,^, - ,'
|
||||
# check for perl
|
||||
:> langs.cfg
|
||||
|
||||
echo "Supported langs: $(cat supported.langs)"
|
||||
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user