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 ...@@ -8,7 +8,7 @@ GNATLINK=gnatlink
O=0 O=0
clean: clean:
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 \ 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 \ real.c xer.c ber.c acn.c asn1crt.c asn1crt.h test_ada test_llvm \
*.autosave *.autosave
...@@ -32,4 +32,4 @@ clean: ...@@ -32,4 +32,4 @@ clean:
.PHONY: clean .PHONY: clean
\ No newline at end of file
...@@ -15,6 +15,12 @@ test-ada: orchestrator.ali dataview-uniq.o | test_ada.o ...@@ -15,6 +15,12 @@ test-ada: orchestrator.ali dataview-uniq.o | test_ada.o
test-llvm: orchestrator.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: coverage:
coverage run -p $(OPENGEODE) --toAda 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