Mercurial > code > home > repos > homeauto
diff service/rfid_pn532_py/makefile @ 1204:c4aed42cfaa3
tags module and pynfc build steps
Ignore-this: 11baf8329ae6e942eba2330a15abe675
darcs-hash:0392196601b5ac92849d205e2cd1d36a1db4b9eb
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 27 Feb 2019 10:28:44 -0800 |
parents | |
children | b4404948d1e8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/rfid_pn532_py/makefile Wed Feb 27 10:28:44 2019 -0800 @@ -0,0 +1,21 @@ + +pyfreefare_build_image: Dockerfile.pyfreefare + docker build --file Dockerfile.pyfreefare -t pyfreefare_build:latest . + +pyfreefare/nfc.py: pyfreefare_build_image pyfreefare/nfc.h + docker run --rm --net=host -v /my/proj/homeauto/service/rfid_pn532_py/pyfreefare:/opt/pyfreefare --name pyfreefare_build pyfreefare_build:latest \ + clang2py -o /opt/pyfreefare/nfc.py \ + --target x86_64-Linux \ + --clang-args="-I=/usr/include/x86_64-linux-gnu -I/usr/lib/llvm-6.0/lib/clang/6.0.0/include -I/usr/lib/llvm-6.0/lib/ -v -xc" \ + /opt/pyfreefare/nfc.h + +pyfreefare/freefare.py: pyfreefare_build_image pyfreefare/freefare.py + docker run --rm --net=host -v /my/proj/homeauto/service/rfid_pn532_py/pyfreefare:/opt/pyfreefare --name pyfreefare_build pyfreefare_build:latest \ + clang2py -o /opt/pyfreefare/freefare.py \ + --target x86_64-Linux \ + --clang-args="-I=/usr/include/x86_64-linux-gnu -I/usr/lib/llvm-6.0/lib/clang/6.0.0/include -I/usr/lib/llvm-6.0/lib/ -v -xc" \ + /opt/pyfreefare/freefare.h + +#pyfreefare/nfc.py pyfreefare/freefare.py +test_tags: tags.py tags_test.py + PYTHONPATH=pyfreefare nose2-3 tags_test