JNI for test coverage #3965

This commit is contained in:
rusefillc 2022-02-26 16:19:57 -05:00
parent f2e8535189
commit 2955f66f66
2 changed files with 8 additions and 1 deletions

View File

@ -43,6 +43,7 @@ INCDIR += \
$(PROJECT_DIR)/config/boards/hellen \
$(UNIT_TESTS_DIR)/test_data_structures \
$(UNIT_TESTS_DIR)/chibios-mock \
$(UNIT_TESTS_DIR)/native \
$(UNIT_TESTS_DIR)/tests \
$(UNIT_TESTS_DIR)/tests/sensor \
$(UNIT_TESTS_DIR)/test_basic_math

View File

@ -132,7 +132,13 @@ OD = $(TRGT)objdump
HEX = $(CP) -O ihex
BIN = $(CP) -O binary
AOPT = -fPIC
AOPT = -fPIC -I$(JAVA_HOME)/include
ifeq ($(OS),Windows_NT)
AOPT += -I$(JAVA_HOME)/include/win32
else
AOPT += -I$(JAVA_HOME)/include/linux
endif
# Define C warning options here
CWARN = -Wall -Wextra -Wstrict-prototypes -pedantic -Wmissing-prototypes -Wold-style-definition