Commit a1f09b37 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Interface Ada generated code with Python

parent 5d60e6f9
......@@ -8,7 +8,7 @@ GNATLINK=gnatlink
rm -rf *.adb *.ads *.pyc spark.idx *.o *.ali gnat.cfg \
rm -rf *.adb *.ads *.pyc spark.idx *.o *.so *.ali gnat.cfg \
examiner bin *.wrn *.gpr *.ll *.s dataview-uniq.c dataview-uniq.h \
real.c xer.c ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm \
......@@ -15,6 +15,12 @@ test-ada: orchestrator.ali dataview-uniq.o | test_ada.o
test-llvm: orchestrator.o
test-python: orchestrator.ali
$(GNATBIND) -n -Llibrorchestrator orchestrator
$(GNATMAKE) -c b~orchestrator.adb
$(CC) -shared -o b~orchestrator.o orchestrator.o taste_basictypes.o adaasn1rtl.o -lgnat
python -c "from ctypes import *; test=CDLL('./'); test.librorchestratorinit()"
coverage run -p $(OPENGEODE) --toAda
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