Skip to content

Commit

Permalink
[core] unique block capn will update only on demand
Browse files Browse the repository at this point in the history
  • Loading branch information
tangxifan committed Nov 27, 2024
1 parent 0db095f commit f316dea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ option(OPENFPGA_WITH_TEST "Enable testing build for codebase. Once enabled, make
option(OPENFPGA_WITH_VERSION "Enable version always-up-to-date when building codebase. Disable only when you do not care an accurate version number" ON)
option(OPENFPGA_WITH_SWIG "Enable SWIG interface when building codebase. Disable when you do not need high-level interfaces, such as Tcl/Python" ON)
option(OPENFPGA_ENABLE_STRICT_COMPILE "Specifies whether compiler warnings should be treated as errors (e.g. -Werror)" OFF)
option(OPENFPGA_UPDATE_UNIQUE_BLOCK_CAPN "Specifies whether to update capn'proto files required by unique block. Recommend only after any modification on unique block parsers and data structures" OFF)

# Options pass on to VTR
set(WITH_ABC ON CACHE BOOL "Enable building ABC in Verilog-to-Routing")
Expand Down
12 changes: 6 additions & 6 deletions libs/libopenfpgacapnproto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ add_library(libopenfpgacapnproto STATIC
${IC_SRCS}
)


add_dependencies(libopenfpgacapnproto
generate_unique_block_capnp
)

if (OPENFPGA_UPDATE_UNIQUE_BLOCK_CAPN)
add_dependencies(libopenfpgacapnproto
generate_unique_block_capnp
)
endif()

target_include_directories(libopenfpgacapnproto PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
Expand Down Expand Up @@ -64,4 +64,4 @@ add_custom_target(
COMMAND ${CMAKE_COMMAND} -E copy unique_blocks_capnproto_generate/unique_blocks_uxsdcxx.capnp ${CMAKE_CURRENT_SOURCE_DIR}/gen
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gen/unique_blocks.xsd
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
)

0 comments on commit f316dea

Please sign in to comment.