diff --git a/libs/libopenfpgacapnproto/CMakeLists.txt b/libs/libopenfpgacapnproto/CMakeLists.txt index 8824d969f9..da04f7ecda 100644 --- a/libs/libopenfpgacapnproto/CMakeLists.txt +++ b/libs/libopenfpgacapnproto/CMakeLists.txt @@ -19,6 +19,7 @@ endif() # Create generated headers from capnp schema files # # Each schema used should appear here. + set(CAPNP_DEFS gen/unique_blocks_uxsdcxx.capnp ) @@ -28,8 +29,6 @@ capnp_generate_cpp(CAPNP_SRCS CAPNP_HDRS ) -set(IC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../vtr-verilog-to-routing/libs/EXTERNAL/libinterchange/interchange) -set(CAPNPC_SRC_PREFIX ${IC_DIR}) find_program(WGET wget REQUIRED) find_package(ZLIB REQUIRED) @@ -52,20 +51,6 @@ add_custom_target( set(CAPNPC_IMPORT_DIRS) list(APPEND CAPNPC_IMPORT_DIRS ${CMAKE_CURRENT_BINARY_DIR}/schema) -set(IC_PROTOS) -set(IC_SRCS) -set(IC_HDRS) -foreach(PROTO ${IC_PROTOS}) - capnp_generate_cpp( - IC_SRC - IC_HDR - ${IC_DIR}/${PROTO} - ) - list(APPEND IC_SRCS ${IC_SRC}) - list(APPEND IC_HDRS ${IC_HDR}) - list(APPEND CAPNP_DEFS ${IC_DIR}/${PROTO}) -endforeach() - install(FILES ${CAPNP_DEFS} DESTINATION ${CMAKE_INSTALL_DATADIR}/openfpga) @@ -108,7 +93,7 @@ add_custom_target( unique_blocks_capnproto_generate/unique_blocks_uxsdcxx_capnp.h unique_blocks_capnproto_generate/unique_blocks_uxsdcxx_interface.h ${CMAKE_CURRENT_SOURCE_DIR}/gen - COMMAND ${CMAKE_COMMAND} -E copy unique_blocks_capnproto_generate/unique_blocks_uxsdcxx.capnp ${CMAKE_CURRENT_SOURCE_DIR}/gen + COMMAND ${CMAKE_COMMAND} -E copy unique_blocks_capnproto_generate/unique_blocks_uxsdcxx.capnp ${CMAKE_CURRENT_SOURCE_DIR}/../libopenfpgacapnproto/gen DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gen/unique_blocks.xsd WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} -) +) \ No newline at end of file diff --git a/libs/libopenfpgacapnproto/README.md b/libs/libopenfpgacapnproto/README.md index f3716fc7bb..cba22314e8 100644 --- a/libs/libopenfpgacapnproto/README.md +++ b/libs/libopenfpgacapnproto/README.md @@ -50,7 +50,7 @@ Capnproto schemas ----------------- libopenfpgacapnproto should contain all capnproto schema definitions used within -VTR. To add a new schema: +Openfpga. To add a new schema: 1. Add the schema to git in `libs/libopenfpgacapnproto/` 2. Add the schema file name to `capnp_generate_cpp` invocation in `libs/libopenfpgacapnproto/CMakeLists.txt`. diff --git a/libs/libopenfpgacapnproto/gen/unique_blocks.xsd b/libs/libopenfpgacapnproto/gen/unique_blocks.xsd index 7d10bcce8a..a84cb8bbbd 100644 --- a/libs/libopenfpgacapnproto/gen/unique_blocks.xsd +++ b/libs/libopenfpgacapnproto/gen/unique_blocks.xsd @@ -23,7 +23,7 @@ - + diff --git a/libs/libopenfpgacapnproto/gen/unique_blocks_uxsdcxx.capnp b/libs/libopenfpgacapnproto/gen/unique_blocks_uxsdcxx.capnp new file mode 100644 index 0000000000..e69de29bb2