Add check for Libnfc-NCI before enabling pn71xx
If the user specifically requests the driver, throw an error if it cannot find libnfc-nci. Also use the value from pkg-config to determine the library name, instead of hard-coding it.
This commit is contained in:
parent
61e93c1cdf
commit
17e615e8b1
3 changed files with 18 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ libnfcdrivers_la_SOURCES += pn532_i2c.c pn532_i2c.h
|
|||
endif
|
||||
|
||||
if DRIVER_PN71XX_ENABLED
|
||||
libnfcdrivers_la_LIBADD += -lnfc_nci_linux
|
||||
libnfcdrivers_la_LIBADD += @LIBNFC_NCI_LIBS@
|
||||
libnfcdrivers_la_SOURCES += pn71xx.c pn71xx.h
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue