[Lldb-commits] [PATCH] D55332: [CMake] Python bindings generation polishing

Stefan Gränitz via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 5 09:01:28 PST 2018

sgraenitz created this revision.
sgraenitz added reviewers: JDevlieghere, aprantl, stella.stamenova, beanz, zturner.
Herald added a subscriber: mgorny.

Simplify SWIG invocation and handling of generated files.

The `swig_wrapper` target can generate `LLDBWrapPython.cpp` and `lldb.py` in its own binary directory, so we can get rid of a few global variables and their logic. `$<TARGET_PROPERTY:swig_wrapper,BINARY_DIR>` can be used to refer to it.
For the moment we still need `LLDB_PYTHON_BINARY_DIR` (global property now) as a workaround for `set_source_files_properties(), which apparently doesn't work with generator expressions.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55332.176840.patch
Type: text/x-patch
Size: 6219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20181205/98bffb6a/attachment-0001.bin>

More information about the lldb-commits mailing list