Commit d0eeedec authored by Jaromil's avatar Jaromil
Browse files

build Go shared library module using the swig template

parent 047e7cc7
......@@ -139,6 +139,12 @@ linux-python: apply-patches lua53 milagro lpeglabel
CC=${gcc} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src python
linux-go: apply-patches lua53 milagro lpeglabel
swig -go -cgo -intgosize 32 ${pwd}/build/swig.i
${gcc} ${cflags} -c ${pwd}/build/swig_wrap.c -o src/zen_go.o
CC=${gcc} CFLAGS="${cflags}" LDFLAGS="${ldflags}" LDADD="${ldadd}" \
make -C src go
linux-java: cflags += -I /opt/jdk/include -I /opt/jdk/include/linux
linux-java: apply-patches lua53 milagro lpeglabel
swig -java ${pwd}/build/swig.i
......
......@@ -18,7 +18,7 @@ function checkbin() {
cp ../ChangeLog.md $2
return 0
}
print "file not found: zenroom$1"
print "file not found: $1"
return 1
}
......@@ -54,6 +54,7 @@ for t in $targets; do
checkbin zenroom.armhf $dir
checkbin _zenroom.so $dir
checkbin zenroom-wrapper.py $dir
checkbin ZenroomGo.so $dir
continue ;;
javascript)
checkdir nodejs $dir
......
......@@ -57,6 +57,9 @@ linux-lib: ${SOURCES}
python: ${SOURCES}
${LD} -shared ${SOURCES} zen_python.o -o _zenroom.so ${LDFLAGS} ${LDADD}
go: ${SOURCES}
${LD} -shared ${SOURCES} zen_go.o -o ZenroomGo.so ${LDFLAGS} ${LDADD}
java: ${SOURCES}
${LD} -shared ${SOURCES} zen_java.o -o zenroom-java-linux.so ${LDFLAGS} ${LDADD}
......
Supports Markdown
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