[Lldb-commits] [lldb] [lldb][framework] Glob headers from source for framework (PR #148736)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 17 22:24:29 PDT 2025
================
@@ -323,12 +332,24 @@ foreach(header
COMMENT "LLDB headers: stage LLDB headers in include directory")
list(APPEND lldb_staged_headers ${staged_header})
+
+ if (LLDB_BUILD_FRAMEWORK)
+ set(input_header ${staged_header})
+ set(output_header $<TARGET_FILE_DIR:liblldb>/Headers/${basename})
+
+ add_custom_target(lldb-framework-fixup-header-${basename} DEPENDS ${input_header})
+ add_dependencies(lldb-framework-fixup-all-headers lldb-framework-fixup-header-${basename})
+
+ add_custom_command(TARGET lldb-framework-fixup-header-${basename} POST_BUILD
+ COMMAND "${Python3_EXECUTABLE}" ${LLDB_SOURCE_DIR}/scripts/framework-header-fix.py -f lldb_main -i ${input_header} -o ${output_header} -p ${unifdef_EXECUTABLE} USWIG
----------------
JDevlieghere wrote:
It looks like the staging part already handles the SWIG scenario, so do we still need to pass this here? The script would still need the functionality because of the RPC framework, it just wouldn't be used here for LLDB.framework.
https://github.com/llvm/llvm-project/pull/148736
More information about the lldb-commits
mailing list