Skip to content

Commit 1a4abbd

Browse files
committed
[lldb] Create CMake target to automatically copy the static bindings to the source directory
The primary use of this target is for automation. If you need to update the static bindings, run this target directly. This target only copies, it does not create a new commit. This is best left to automation scripts directly. rdar://106648169
1 parent e276a0f commit 1a4abbd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lldb/bindings/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,13 @@ endif()
5757
if (LLDB_ENABLE_LUA)
5858
add_subdirectory(lua)
5959
endif()
60+
61+
if(NOT ${LLDB_USE_STATIC_BINDINGS})
62+
set(copy_static_bindings_script "${LLDB_SOURCE_DIR}/scripts/copy-static-bindings.py")
63+
add_custom_target(update-static-bindings
64+
COMMAND ${copy_static_bindings_script} ${CMAKE_BINARY_DIR}
65+
COMMENT "Copying the generated bindings to the static bindings directory in source."
66+
VERBATIM
67+
)
68+
add_dependencies(update-static-bindings swig_wrapper_python)
69+
endif()

0 commit comments

Comments
 (0)