diff options
Diffstat (limited to 'source/Interpreter/wrap_python.mk')
-rw-r--r-- | source/Interpreter/wrap_python.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source/Interpreter/wrap_python.mk b/source/Interpreter/wrap_python.mk new file mode 100644 index 000000000..a1b7c85af --- /dev/null +++ b/source/Interpreter/wrap_python.mk @@ -0,0 +1,19 @@ +intermediates := $(call local-intermediates-dir) + +LOCAL_GENERATED_SOURCES += \ + $(intermediates)/LLDBWrapPython.cpp + +LLDB_ROOT_PATH_ABS := $(abspath $(LLDB_ROOT_PATH)) + +# setup target-specific variables; otherwise, this evaluates to a +# device-specific path when we want the host-specific path. +$(intermediates)/LLDBWrapPython.cpp $(intermediates)/lldb.py: \ + intermediates_abs := $(abspath .)/$(intermediates) + +$(intermediates)/LLDBWrapPython.cpp $(intermediates)/lldb.py: $(LLDB_ROOT_PATH)/scripts/Python/modify-python-lldb.py \ + $(LLDB_ROOT_PATH)/scripts/Python/edit-swig-python-wrapper-file.py \ + $(wildcard $(LLDB_ROOT_PATH)/scripts/Python/interface/*.i) + @echo "Generating LLDBWrapPython.cpp" + $(hide) mkdir -p $(intermediates) + $(hide) "$(LLDB_ROOT_PATH_ABS)/scripts/build-swig-wrapper-classes.sh" "$(LLDB_ROOT_PATH_ABS)" "$(intermediates_abs)" "$(intermediates_abs)" "$(intermediates_abs)" -m + $(hide) "$(LLDB_ROOT_PATH_ABS)/scripts/finish-swig-wrapper-classes.sh" "$(LLDB_ROOT_PATH_ABS)" "$(intermediates_abs)" "$(intermediates_abs)" "$(intermediates_abs)" -m |