diff --git a/assembler/CMakeLists.txt b/assembler/CMakeLists.txt index 31a82024e508e9d039efb86132307e16dfdb5192..0474750b2c2c68d0e7d7c66ef83d189bcc3601fb 100644 --- a/assembler/CMakeLists.txt +++ b/assembler/CMakeLists.txt @@ -25,6 +25,7 @@ panda_gen_file( ) add_custom_target(ecmascript_meta_gen_h DEPENDS ${ECMASCRIPT_META_GEN_H}) add_dependencies(arkassembler_obj ecmascript_meta_gen_h) +add_dependencies(panda_gen_files ecmascript_meta_gen_h) if (PANDA_ENABLE_AFL) panda_target_sources(arkassembler_fuzz PRIVATE ${EXTENSION_DIR}/ecmascript_meta.cpp) diff --git a/ecmastdlib/CMakeLists.txt b/ecmastdlib/CMakeLists.txt index a3c9d21d188a8c2b43c4149b9c08efa0e704af01..af0393cae3c5c0313064aef5f6caf3e9517f5bb7 100644 --- a/ecmastdlib/CMakeLists.txt +++ b/ecmastdlib/CMakeLists.txt @@ -44,3 +44,10 @@ add_custom_command(OUTPUT "${ECMASTDLIB_INLINE_GEN}" DEPENDS "${ECMASTDLIB_INLINE_GEN_RB}" "${ECMASTDLIB_INLINE_GEN_ERB}" ecmastdlib) add_custom_target(ecmastdlib_inline_h DEPENDS "${ECMASTDLIB_INLINE_GEN}") + +add_custom_target(ecmastdlib_inline_h_empty + COMMENT "Generate empty inlined header for static analyzer" + COMMAND "${ECMASTDLIB_INLINE_GEN_RB}" -t "${ECMASTDLIB_INLINE_GEN_ERB}" -o "${ECMASTDLIB_INLINE_GEN}" + DEPENDS "${ECMASTDLIB_INLINE_GEN_RB}" "${ECMASTDLIB_INLINE_GEN_ERB}") + +add_dependencies(panda_gen_files ecmastdlib_inline_h_empty)