[script] enable shared library for openfpga
This commit is contained in:
parent
9e02a9e3f0
commit
74b32c3a5c
|
@ -149,6 +149,7 @@ jobs:
|
||||||
build/vtr-verilog-to-routing/vpr/libvpr.a
|
build/vtr-verilog-to-routing/vpr/libvpr.a
|
||||||
build/vtr-verilog-to-routing/vpr/vpr
|
build/vtr-verilog-to-routing/vpr/vpr
|
||||||
build/openfpga/libopenfpga.a
|
build/openfpga/libopenfpga.a
|
||||||
|
build/openfpga/libopenfpga_shared.so
|
||||||
build/openfpga/openfpga
|
build/openfpga/openfpga
|
||||||
yosys/install/share
|
yosys/install/share
|
||||||
yosys/install/bin
|
yosys/install/bin
|
||||||
|
|
|
@ -28,6 +28,7 @@ __pycache__/
|
||||||
*.d
|
*.d
|
||||||
*.o
|
*.o
|
||||||
*.a
|
*.a
|
||||||
|
*.so
|
||||||
vpr7_x2p/vpr/vpr
|
vpr7_x2p/vpr/vpr
|
||||||
vpr7_x2p/printhandler/printhandlerdemo
|
vpr7_x2p/printhandler/printhandlerdemo
|
||||||
vpr7_x2p/libarchfpga/read_arch
|
vpr7_x2p/libarchfpga/read_arch
|
||||||
|
|
|
@ -11,6 +11,7 @@ files_to_dirs(LIB_HEADERS LIB_INCLUDE_DIRS)
|
||||||
list(REMOVE_ITEM LIB_SOURCES ${EXEC_SOURCE})
|
list(REMOVE_ITEM LIB_SOURCES ${EXEC_SOURCE})
|
||||||
|
|
||||||
#Create the library
|
#Create the library
|
||||||
|
#Static linked library for other C++ libraries
|
||||||
add_library(libopenfpga STATIC
|
add_library(libopenfpga STATIC
|
||||||
${LIB_HEADERS}
|
${LIB_HEADERS}
|
||||||
${LIB_SOURCES})
|
${LIB_SOURCES})
|
||||||
|
@ -31,6 +32,28 @@ target_link_libraries(libopenfpga
|
||||||
libpugixml
|
libpugixml
|
||||||
libvpr)
|
libvpr)
|
||||||
|
|
||||||
|
#Dynamic linked library for high-level interfaces, e.g., Tcl
|
||||||
|
add_library(libopenfpga_shared SHARED
|
||||||
|
${LIB_HEADERS}
|
||||||
|
${LIB_SOURCES})
|
||||||
|
target_include_directories(libopenfpga_shared PUBLIC ${LIB_INCLUDE_DIRS})
|
||||||
|
set_target_properties(libopenfpga_shared PROPERTIES PREFIX "") #Avoid extra 'lib' prefix
|
||||||
|
|
||||||
|
#Specify link-time dependancies
|
||||||
|
target_link_libraries(libopenfpga_shared
|
||||||
|
libarchopenfpga
|
||||||
|
libopenfpgashell
|
||||||
|
libopenfpgautil
|
||||||
|
libfabrickey
|
||||||
|
libfpgabitstream
|
||||||
|
libini
|
||||||
|
libpcf
|
||||||
|
libvtrutil
|
||||||
|
libbusgroup
|
||||||
|
libpugixml
|
||||||
|
libvpr)
|
||||||
|
|
||||||
|
|
||||||
#Create the test executable
|
#Create the test executable
|
||||||
add_executable(openfpga ${EXEC_SOURCE})
|
add_executable(openfpga ${EXEC_SOURCE})
|
||||||
target_link_libraries(openfpga libopenfpga)
|
target_link_libraries(openfpga libopenfpga)
|
||||||
|
|
Loading…
Reference in New Issue