[script] rename shared library name for tcl, so that it is straightforward to load in tcl

This commit is contained in:
tangxifan 2022-12-01 15:59:52 -08:00
parent 338e191f77
commit 90bbb50047
2 changed files with 5 additions and 5 deletions

View File

@ -12,12 +12,12 @@ list(REMOVE_ITEM LIB_SOURCES ${EXEC_SOURCE})
if (OPENFPGA_WITH_SWIG)
# SWIG library
SwigLib(NAME libopenfpga_swig
SwigLib(NAME openfpga_shell
NAMESPACE std
LANGUAGE tcl
I_FILE src/openfpga.i)
target_include_directories(libopenfpga_swig PUBLIC ${LIB_INCLUDE_DIRS})
target_link_libraries(libopenfpga_swig
I_FILE src/openfpga_shell.i)
target_include_directories(openfpga_shell PUBLIC ${LIB_INCLUDE_DIRS})
target_link_libraries(openfpga_shell
libopenfpga)
endif()

View File

@ -1,5 +1,5 @@
/* SWIG interface file for OpenFPGA shell APIs */
%module openfpga
%module openfpga_shell
%{
#include "openfpga_shell.h"