This is an automated email from the ASF dual-hosted git repository.
raiden00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 75b4720a6 industry/scpi: fix compilation of SCPI library
75b4720a6 is described below
commit 75b4720a6e57dedebb4ce607035350bfc3190fb3
Author: Petro Karashchenko <[email protected]>
AuthorDate: Sun Mar 26 12:58:33 2023 +0300
industry/scpi: fix compilation of SCPI library
Expose SCPI library API to application
Signed-off-by: Petro Karashchenko <[email protected]>
---
industry/scpi/Make.defs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/industry/scpi/Make.defs b/industry/scpi/Make.defs
index a6b5c6855..6ddfe132f 100644
--- a/industry/scpi/Make.defs
+++ b/industry/scpi/Make.defs
@@ -22,4 +22,9 @@ ifneq ($(CONFIG_SCPI_PARSER),)
CONFIGURED_APPS += $(APPDIR)/industry/scpi
+# Allows `<scpi-parser/<>.h>` import.
+
+CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/industry/scpi/scpi-parser/libscpi/inc
+CXXFLAGS += ${INCDIR_PREFIX}$(APPDIR)/industry/scpi/scpi-parser/libscpi/inc
+
endif