From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Roland Hieber Date: Wed, 28 Aug 2019 15:58:09 +0200 Message-Id: <20190828135811.5680-2-rhi@pengutronix.de> In-Reply-To: <20190828135811.5680-1-rhi@pengutronix.de> References: <20190828135811.5680-1-rhi@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 2/4] host-swig: version bump 2.0.9 -> 3.0.8 List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber , Niklas Reisser Update version and make support for Java, Python 2 and Python 3 code generation selectable so that it doesn't pull in too many dependencies, but target packages can still select it if needed. Based on a patch by Niklas Reisser. Cc: Niklas Reisser Signed-off-by: Roland Hieber --- rules/host-swig.in | 15 +++++++++++++++ rules/host-swig.make | 10 +++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/rules/host-swig.in b/rules/host-swig.in index 24075d429e50..d0f1a1457e3a 100644 --- a/rules/host-swig.in +++ b/rules/host-swig.in @@ -6,3 +6,18 @@ config HOST_SWIG select HOST_ZLIB select HOST_LIBPCRE select HOST_PYTHON + select HOST_PYTHON3 if HOST_SWIG_PYTHON3_SUPPORT + select HOST_SYSTEM_JDK if HOST_SWIG_JAVA_SUPPORT + +if HOST_SWIG + +config HOST_SWIG_JAVA_SUPPORT + bool + +config HOST_SWIG_PYTHON_SUPPORT + bool + +config HOST_SWIG_PYTHON3_SUPPORT + bool + +endif diff --git a/rules/host-swig.make b/rules/host-swig.make index d15496999cab..7dc685e9e622 100644 --- a/rules/host-swig.make +++ b/rules/host-swig.make @@ -14,8 +14,8 @@ HOST_PACKAGES-$(PTXCONF_HOST_SWIG) += host-swig # # Paths and names # -HOST_SWIG_VERSION := 2.0.9 -HOST_SWIG_MD5 := 54d534b14a70badc226129159412ea85 +HOST_SWIG_VERSION := 3.0.8 +HOST_SWIG_MD5 := c96a1d5ecb13d38604d7e92148c73c97 HOST_SWIG := swig-$(HOST_SWIG_VERSION) HOST_SWIG_SUFFIX := tar.gz HOST_SWIG_URL := $(call ptx/mirror, SF, swig/$(HOST_SWIG).$(HOST_SWIG_SUFFIX)) @@ -38,11 +38,11 @@ HOST_SWIG_CONF_OPT = \ --without-boost \ --without-x \ --without-tcl \ - --with-python=$(CROSS_PYTHON) \ - --without-python3 \ + $(call ptx/ifdef, PTXCONF_HOST_SWIG_PYTHON_SUPPORT, --with-python=$(CROSS_PYTHON), --without-python) \ + $(call ptx/ifdef, PTXCONF_HOST_SWIG_PYTHON3_SUPPORT, --with-python=$(CROSS_PYTHON3), --without-python3) \ --without-perl5 \ --without-octave \ - --without-java \ + $(call ptx/ifdef, PTXCONF_HOST_SWIG_JAVA_SUPPORT, --with-java=$(PTXCONF_SETUP_JAVA_SDK), --without-java) \ --without-gcj \ --without-android \ --without-guile \ -- 2.23.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de