[script] rename shared library name for tcl, so that it is straightforward to load in tcl
This commit is contained in:
parent
338e191f77
commit
90bbb50047
|
@ -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()
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* SWIG interface file for OpenFPGA shell APIs */
|
||||
%module openfpga
|
||||
%module openfpga_shell
|
||||
|
||||
%{
|
||||
#include "openfpga_shell.h"
|
Loading…
Reference in New Issue