Commit 0f87aeb1 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Implement the rest of the bindings

parent eaeaa33e
......@@ -59,7 +59,7 @@ AM_YFLAGS = -d
AM_CFLAGS += \
$(NETTLE_CFLAGS) $(XML_CFLAGS)
AM_LDADD += \
$(NETTLE_LIBS) $(XML_LIBS)
$(NETTLE_LIBS) $(XML_LIBS) $(GUILE_LIBS)
if WITH_GOBJECT
AM_CFLAGS += $(GOBJECT_CFLAGS)
......
......@@ -18,6 +18,7 @@ apt-get update
apt-get upgrade -y
apt-get install -y \
build-essential \
guile-2.2-dev \
libglib2.0-dev \
libxml2 \
libxml2-dev \
......
......@@ -18,6 +18,7 @@ apt-get update || exit 1
apt-get install -y \
build-essential \
guile-2.2-dev \
libcairo2-dev \
libglib2.0-dev \
libgtk-3-0 \
......
......@@ -37,7 +37,7 @@ apt-get install -y \
git \
gobject-introspection \
gperf \
guile-2.2 \
guile-2.2-dev \
help2man \
imagemagick \
indent \
......
......@@ -20,6 +20,7 @@ apt-get install -y \
build-essential \
curl \
git \
guile-2.2-dev \
libcairo2-dev \
libgirepository1.0-dev \
libglib2.0-dev \
......
......@@ -23,6 +23,9 @@ EOF
dnf reinstall -y glibc-common || exit 1
dnf install -y \
gcc \
guile \
libtool-ltdl \
\
mingw64-gcc \
mingw64-nettle \
......@@ -31,6 +34,8 @@ dnf install -y \
mingw64-cairo \
mingw64-gtk3 \
mingw64-hicolor-icon-theme \
mingw64-libffi \
mingw64-libltdl \
\
make \
wget \
......@@ -39,8 +44,30 @@ dnf install -y \
mingw32-nsis.x86_64 \
|| exit 1
dnf install -y $(dnf deplist guile | awk '/provider:/ {print $2}' | sort -u | grep -v 'i686') || exit 1
mkdir -p public || exit 1
echo "Build libunistring"
wget https://ftp.gnu.org/gnu/libunistring/libunistring-0.9.10.tar.gz || exit 1
tar xf libunistring-0.9.10.tar.gz || exit 1
(cd libunistring-0.9.10 && ./configure --help && mingw64-configure && make -j && make -j install) || exit 1
wget https://github.com/ivmai/libatomic_ops/releases/download/v7.6.10/libatomic_ops-7.6.10.tar.gz || exit 1
tar xf libatomic_ops-7.6.10.tar.gz || exit 1
(cd libatomic_ops-7.6.10 && mingw64-configure && make -j && make -j install) || exit 1
echo "Building gc"
wget https://www.hboehm.info/gc/gc_source/gc-8.0.4.tar.gz || exit 1
tar xf gc-8.0.4.tar.gz || exit 1
(cd gc-8.0.4 && mingw64-configure && make -j && make -j install) || exit 1
echo "Build guile"
wget https://ftp.gnu.org/gnu/guile/guile-2.2.6.tar.gz || exit 1
tar xf guile-2.2.6.tar.gz || exit 1
(cd guile-2.2.6 && ./configure && make -j && make -j install && make clean) || exit 1
(cd guile-2.2.6 && mingw64-configure && make -j && make -j install) || exit 1
echo "Build tarot"
VERSION=$(cat dist/version)
......
......@@ -137,6 +137,7 @@ AC_ARG_WITH([static_program_name],
AS_IF([test "x$with_static_program_name" != "xno"], [
CPPFLAGS="$CPPFLAGS -Dprogram_name=tarot_libtarot_program_name"
])
PKG_CHECK_MODULES([GUILE], [guile-2.2],, [PKG_CHECK_MODULES([GUILE], [guile-2.0])])
# Checks for header files.
AC_HEADER_STDBOOL
......
......@@ -40,6 +40,17 @@ cat <<EOF
"share/tarot/dataset"
],
"modules": [
{
"name": "guile",
"buildsystem": "autotools",
"sources": [
{
"type": "archive",
"url": "https://ftp.gnu.org/gnu/guile/guile-2.2.6.tar.gz",
"sha256": "08c0e7487777740b61cdd97949b69e8a5e2997d8c2fe6c7e175819eb18444506"
}
]
},
{
"name": "tarot",
"buildsystem": "autotools",
......
......@@ -46,3 +46,4 @@ include %reldir%/xml/Makefile.am
include %reldir%/features/Makefile.am
include %reldir%/cnn/Makefile.am
include %reldir%/solo/Makefile.am
include %reldir%/guile/Makefile.am
# tarot implements the rules of the tarot game
# Copyright (C) 2019 Vivien Kraus
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
AM_CPPFLAGS += -I $(srcdir)/%reldir% -I %reldir%
src_libtarot_libtarot_la_SOURCES += \
src/libtarot/semantic-api/tarot_guile.c
......@@ -24,5 +24,5 @@ lib_LTLIBRARIES += %reldir%/libtarot.la
lib/libgnu.la
INDENTED += $(%canon_reldir%_libtarot_la_SOURCES)
AM_CFLAGS += $(NETTLE_CFLAGS) $(XML_CFLAGS)
AM_LIBS += $(NETTLE_LIBS) $(XML_LIBS)
AM_CFLAGS += $(NETTLE_CFLAGS) $(XML_CFLAGS) $(GUILE_CFLAGS)
AM_LIBS += $(NETTLE_LIBS) $(XML_LIBS) $(GUILE_LIBS)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment