modified CMakeLists.txt
This commit is contained in:
parent
f0a9ca8b02
commit
9131e74353
|
@ -19,6 +19,7 @@ endif()
|
||||||
# Create generated headers from capnp schema files
|
# Create generated headers from capnp schema files
|
||||||
#
|
#
|
||||||
# Each schema used should appear here.
|
# Each schema used should appear here.
|
||||||
|
|
||||||
set(CAPNP_DEFS
|
set(CAPNP_DEFS
|
||||||
gen/unique_blocks_uxsdcxx.capnp
|
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_program(WGET wget REQUIRED)
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
|
@ -52,20 +51,6 @@ add_custom_target(
|
||||||
set(CAPNPC_IMPORT_DIRS)
|
set(CAPNPC_IMPORT_DIRS)
|
||||||
list(APPEND CAPNPC_IMPORT_DIRS ${CMAKE_CURRENT_BINARY_DIR}/schema)
|
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)
|
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_capnp.h
|
||||||
unique_blocks_capnproto_generate/unique_blocks_uxsdcxx_interface.h
|
unique_blocks_capnproto_generate/unique_blocks_uxsdcxx_interface.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/gen
|
${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
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gen/unique_blocks.xsd
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
)
|
)
|
|
@ -50,7 +50,7 @@ Capnproto schemas
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
libopenfpgacapnproto should contain all capnproto schema definitions used within
|
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/`
|
1. Add the schema to git in `libs/libopenfpgacapnproto/`
|
||||||
2. Add the schema file name to `capnp_generate_cpp` invocation in
|
2. Add the schema file name to `capnp_generate_cpp` invocation in
|
||||||
`libs/libopenfpgacapnproto/CMakeLists.txt`.
|
`libs/libopenfpgacapnproto/CMakeLists.txt`.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<xs:attribute name="y" type="xs:unsignedInt"/>
|
<xs:attribute name="y" type="xs:unsignedInt"/>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
|
|
||||||
<!-- UniqueBlockPacked Structure (blockInfo as element, instance list as sequence) -->
|
<!-- UniqueBlockPacked Structure (blockInfo, list of instances) -->
|
||||||
<xs:complexType name="UniqueBlockPacked">
|
<xs:complexType name="UniqueBlockPacked">
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element name="blockInfo" type="BlockInfo"/>
|
<xs:element name="blockInfo" type="BlockInfo"/>
|
||||||
|
|
Loading…
Reference in New Issue