fix code gen dependencies
This commit is contained in:
parent
bfc667da63
commit
e8d3e337ec
|
@ -73,18 +73,25 @@ if(ENABLE_CODEGEN AND EXISTS ${GENERATOR_JAR})
|
||||||
list(APPEND ${CORE_NAME}_MAPPING -m "${TMPL_DIR}/CORENAME.cpp.gtl:${DBT_CORE_TGC_DIR}/src/iss/${CORE_NAMEL}.cpp")
|
list(APPEND ${CORE_NAME}_MAPPING -m "${TMPL_DIR}/CORENAME.cpp.gtl:${DBT_CORE_TGC_DIR}/src/iss/${CORE_NAMEL}.cpp")
|
||||||
list(APPEND ${CORE_NAME}_MAPPING -m "${TMPL_DIR}/${BACKEND}/CORENAME.cpp.gtl:${DBT_CORE_TGC_DIR}/src/vm/interp/vm_${CORE_NAMEL}.cpp")
|
list(APPEND ${CORE_NAME}_MAPPING -m "${TMPL_DIR}/${BACKEND}/CORENAME.cpp.gtl:${DBT_CORE_TGC_DIR}/src/vm/interp/vm_${CORE_NAMEL}.cpp")
|
||||||
set(${CORE_NAME}_OUTPUT_FILES ${DBT_CORE_TGC_DIR}/incl/iss/arch/${CORE_NAMEL}.h ${DBT_CORE_TGC_DIR}/src/iss/${CORE_NAMEL}.cpp ${DBT_CORE_TGC_DIR}/src/vm/interp/vm_${CORE_NAMEL}.cpp)
|
set(${CORE_NAME}_OUTPUT_FILES ${DBT_CORE_TGC_DIR}/incl/iss/arch/${CORE_NAMEL}.h ${DBT_CORE_TGC_DIR}/src/iss/${CORE_NAMEL}.cpp ${DBT_CORE_TGC_DIR}/src/vm/interp/vm_${CORE_NAMEL}.cpp)
|
||||||
add_custom_command(
|
#add_custom_command(
|
||||||
|
# COMMAND ${GENERATOR} -b ${BE_UPPER} -c ${CORE_NAME} -r ${REPO_DIR} ${${CORE_NAME}_MAPPING} ${INPUT_FILE}
|
||||||
|
# DEPENDS ${GENERATOR_JAR} ${INPUT_FILE} ${TMPL_DIR}/CORENAME.h.gtl ${TMPL_DIR}/CORENAME.cpp.gtl ${TMPL_DIR}/${BACKEND}/CORENAME.cpp.gtl
|
||||||
|
# OUTPUT ${${CORE_NAME}_OUTPUT_FILES}
|
||||||
|
# COMMENT "Generating code for ${CORE_NAME}."
|
||||||
|
# USES_TERMINAL VERBATIM
|
||||||
|
#)
|
||||||
|
#add_custom_target(${CORE_NAME}_cpp DEPENDS ${${CORE_NAME}_OUTPUT_FILES})
|
||||||
|
add_custom_target(${CORE_NAME}_cpp
|
||||||
COMMAND ${GENERATOR} -b ${BE_UPPER} -c ${CORE_NAME} -r ${REPO_DIR} ${${CORE_NAME}_MAPPING} ${INPUT_FILE}
|
COMMAND ${GENERATOR} -b ${BE_UPPER} -c ${CORE_NAME} -r ${REPO_DIR} ${${CORE_NAME}_MAPPING} ${INPUT_FILE}
|
||||||
DEPENDS ${GENERATOR_JAR} ${INPUT_FILE} ${TMPL_DIR}/CORENAME.h.gtl ${TMPL_DIR}/CORENAME.cpp.gtl ${TMPL_DIR}/${BACKEND}/CORENAME.cpp.gtl
|
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
||||||
OUTPUT ${${CORE_NAME}_OUTPUT_FILES}
|
COMMENT "Generating ISS sources"
|
||||||
COMMENT "Generating code for ${CORE_NAME}."
|
BYPRODUCTS ${${CORE_NAME}_OUTPUT_FILES}
|
||||||
USES_TERMINAL VERBATIM
|
USES_TERMINAL
|
||||||
)
|
)
|
||||||
add_custom_target(${CORE_NAME}_src DEPENDS ${${CORE_NAME}_OUTPUT_FILES})
|
|
||||||
endmacro()
|
endmacro()
|
||||||
else()
|
else()
|
||||||
macro(gen_coredsl CORE_NAME INPUT_FILE BACKEND)
|
macro(gen_coredsl CORE_NAME INPUT_FILE BACKEND)
|
||||||
add_custom_target(${CORE_NAME}_src)
|
add_custom_target(${CORE_NAME}_cpp)
|
||||||
message(STATUS "Not adding generation steps for ${CORE_NAME}(${ENABLE_CODEGEN}, ${GENERATOR_JAR})")
|
message(STATUS "Not adding generation steps for ${CORE_NAME}(${ENABLE_CODEGEN}, ${GENERATOR_JAR})")
|
||||||
endmacro()
|
endmacro()
|
||||||
endif()
|
endif()
|
||||||
|
|
2
dbt-core
2
dbt-core
|
@ -1 +1 @@
|
||||||
Subproject commit 50104a5cc282d66313d19958ca3a76f39082f514
|
Subproject commit 246b92cc5ddd33c98263b3ec0771745912826f6c
|
2
tgfs
2
tgfs
|
@ -1 +1 @@
|
||||||
Subproject commit 8c385647dde5821029f33173f3c8a3aa062d4810
|
Subproject commit e432dd820815fce7215b52665234f127c9351fc9
|
Loading…
Reference in New Issue