File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ LIBCORAL_SRC = $(shell pwd)/c_src/libcoral
2020PRECOMPILED_ERL_HELPER = $(shell pwd) /tflite_beam_precompiled.erl
2121UNICODEDATA = $(shell pwd) /unicodedata
2222UNICODE_DATA = $(PRIV_DIR ) /unicode_data.txt
23+ FLATC_PATH ?= $(shell which flatc)
24+ TFLITE_HOST_TOOLS_DIR = $(shell dirname $(FLATC_PATH ) )
2325ifdef CMAKE_TOOLCHAIN_FILE
2426 CMAKE_CONFIGURE_FLAGS=-D CMAKE_TOOLCHAIN_FILE="$(CMAKE_TOOLCHAIN_FILE)"
2527endif
@@ -169,6 +171,7 @@ $(NATIVE_BINDINGS_SO): $(UNICODE_DATA) unarchive_source_code install_libedgetpu_
169171 -D GFLAGS_ROOT_DIR=" $( GFLAGS_ROOT_DIR) " \
170172 -D GLOG_ROOT_DIR=" $( GLOG_ROOT_DIR) " \
171173 -D TFLITE_BEAM_CORAL_SUPPORT=" $( TFLITE_BEAM_CORAL_SUPPORT) " \
174+ -D TFLITE_HOST_TOOLS_DIR=" $( TFLITE_HOST_TOOLS_DIR) " \
172175 -D LIBUSB_INSTALL_DIR=" $( LIBUSB_INSTALL_DIR) " \
173176 -D MIX_APP_PATH=" $( MIX_APP_PATH) " \
174177 $(CMAKE_OPTIONS ) \
You can’t perform that action at this time.
0 commit comments