diff --git a/lldb/bindings/lua/CMakeLists.txt b/lldb/bindings/lua/CMakeLists.txt --- a/lldb/bindings/lua/CMakeLists.txt +++ b/lldb/bindings/lua/CMakeLists.txt @@ -5,6 +5,7 @@ DEPENDS ${SWIG_HEADERS} COMMAND ${SWIG_EXECUTABLE} ${SWIG_COMMON_FLAGS} + -I${CMAKE_CURRENT_SOURCE_DIR} -lua -w503 -outdir ${CMAKE_CURRENT_BINARY_DIR} diff --git a/lldb/bindings/lua/lua.swig b/lldb/bindings/lua/lua.swig --- a/lldb/bindings/lua/lua.swig +++ b/lldb/bindings/lua/lua.swig @@ -9,13 +9,13 @@ %module lldb %include -%include "./lua/lua-typemaps.swig" -%include "./macros.swig" -%include "./headers.swig" +%include "lua-typemaps.swig" +%include "macros.swig" +%include "headers.swig" %{ using namespace lldb_private; using namespace lldb; %} -%include "./interfaces.swig" +%include "interfaces.swig" diff --git a/lldb/bindings/python/CMakeLists.txt b/lldb/bindings/python/CMakeLists.txt --- a/lldb/bindings/python/CMakeLists.txt +++ b/lldb/bindings/python/CMakeLists.txt @@ -6,6 +6,7 @@ DEPENDS ${SWIG_HEADERS} COMMAND ${SWIG_EXECUTABLE} ${SWIG_COMMON_FLAGS} + -I${CMAKE_CURRENT_SOURCE_DIR} -c++ -shadow -python diff --git a/lldb/bindings/python/python.swig b/lldb/bindings/python/python.swig --- a/lldb/bindings/python/python.swig +++ b/lldb/bindings/python/python.swig @@ -111,9 +111,9 @@ %} %include -%include "./python/python-typemaps.swig" -%include "./macros.swig" -%include "./headers.swig" +%include "python-typemaps.swig" +%include "macros.swig" +%include "headers.swig" %{ #include "../source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h" @@ -123,9 +123,9 @@ using namespace lldb; %} -%include "./interfaces.swig" -%include "./python/python-extensions.swig" -%include "./python/python-wrapper.swig" +%include "interfaces.swig" +%include "python-extensions.swig" +%include "python-wrapper.swig" %pythoncode%{ _initialize = True