Start to share SWIG interface files between languages.
authorBruce Mitchener <bruce.mitchener@gmail.com>
Fri, 24 Apr 2015 00:38:53 +0000 (00:38 +0000)
committerBruce Mitchener <bruce.mitchener@gmail.com>
Fri, 24 Apr 2015 00:38:53 +0000 (00:38 +0000)
Summary:
Move scripts/Python/interface to scripts/interface so that we
can start making iterative improvements towards sharing the
interface files between multiple languages (each of which would
have their own directory as now).

Test Plan: Build and see.

Reviewers: zturner, emaste, clayborg

Reviewed By: clayborg

Subscribers: mjsabby, lldb-commits

Differential Revision: http://reviews.llvm.org/D9212

llvm-svn: 235676

67 files changed:
lldb/docs/doxygen.cfg.in
lldb/lldb.xcodeproj/project.pbxproj
lldb/scripts/CMakeLists.txt
lldb/scripts/Python/build-swig-Python.sh
lldb/scripts/Python/buildSwigPython.py
lldb/scripts/buildSwigWrapperClasses.py
lldb/scripts/finishSwigWrapperClasses.py
lldb/scripts/interface/SBAddress.i [moved from lldb/scripts/Python/interface/SBAddress.i with 100% similarity]
lldb/scripts/interface/SBAttachInfo.i [moved from lldb/scripts/Python/interface/SBAttachInfo.i with 100% similarity]
lldb/scripts/interface/SBBlock.i [moved from lldb/scripts/Python/interface/SBBlock.i with 100% similarity]
lldb/scripts/interface/SBBreakpoint.i [moved from lldb/scripts/Python/interface/SBBreakpoint.i with 100% similarity]
lldb/scripts/interface/SBBreakpointLocation.i [moved from lldb/scripts/Python/interface/SBBreakpointLocation.i with 100% similarity]
lldb/scripts/interface/SBBroadcaster.i [moved from lldb/scripts/Python/interface/SBBroadcaster.i with 100% similarity]
lldb/scripts/interface/SBCommandInterpreter.i [moved from lldb/scripts/Python/interface/SBCommandInterpreter.i with 100% similarity]
lldb/scripts/interface/SBCommandReturnObject.i [moved from lldb/scripts/Python/interface/SBCommandReturnObject.i with 100% similarity]
lldb/scripts/interface/SBCommunication.i [moved from lldb/scripts/Python/interface/SBCommunication.i with 100% similarity]
lldb/scripts/interface/SBCompileUnit.i [moved from lldb/scripts/Python/interface/SBCompileUnit.i with 100% similarity]
lldb/scripts/interface/SBData.i [moved from lldb/scripts/Python/interface/SBData.i with 100% similarity]
lldb/scripts/interface/SBDebugger.i [moved from lldb/scripts/Python/interface/SBDebugger.i with 100% similarity]
lldb/scripts/interface/SBDeclaration.i [moved from lldb/scripts/Python/interface/SBDeclaration.i with 100% similarity]
lldb/scripts/interface/SBError.i [moved from lldb/scripts/Python/interface/SBError.i with 100% similarity]
lldb/scripts/interface/SBEvent.i [moved from lldb/scripts/Python/interface/SBEvent.i with 100% similarity]
lldb/scripts/interface/SBExecutionContext.i [moved from lldb/scripts/Python/interface/SBExecutionContext.i with 100% similarity]
lldb/scripts/interface/SBExpressionOptions.i [moved from lldb/scripts/Python/interface/SBExpressionOptions.i with 100% similarity]
lldb/scripts/interface/SBFileSpec.i [moved from lldb/scripts/Python/interface/SBFileSpec.i with 100% similarity]
lldb/scripts/interface/SBFileSpecList.i [moved from lldb/scripts/Python/interface/SBFileSpecList.i with 100% similarity]
lldb/scripts/interface/SBFrame.i [moved from lldb/scripts/Python/interface/SBFrame.i with 100% similarity]
lldb/scripts/interface/SBFunction.i [moved from lldb/scripts/Python/interface/SBFunction.i with 100% similarity]
lldb/scripts/interface/SBHostOS.i [moved from lldb/scripts/Python/interface/SBHostOS.i with 100% similarity]
lldb/scripts/interface/SBInstruction.i [moved from lldb/scripts/Python/interface/SBInstruction.i with 100% similarity]
lldb/scripts/interface/SBInstructionList.i [moved from lldb/scripts/Python/interface/SBInstructionList.i with 100% similarity]
lldb/scripts/interface/SBLaunchInfo.i [moved from lldb/scripts/Python/interface/SBLaunchInfo.i with 100% similarity]
lldb/scripts/interface/SBLineEntry.i [moved from lldb/scripts/Python/interface/SBLineEntry.i with 100% similarity]
lldb/scripts/interface/SBListener.i [moved from lldb/scripts/Python/interface/SBListener.i with 100% similarity]
lldb/scripts/interface/SBModule.i [moved from lldb/scripts/Python/interface/SBModule.i with 100% similarity]
lldb/scripts/interface/SBModuleSpec.i [moved from lldb/scripts/Python/interface/SBModuleSpec.i with 100% similarity]
lldb/scripts/interface/SBPlatform.i [moved from lldb/scripts/Python/interface/SBPlatform.i with 100% similarity]
lldb/scripts/interface/SBProcess.i [moved from lldb/scripts/Python/interface/SBProcess.i with 100% similarity]
lldb/scripts/interface/SBQueue.i [moved from lldb/scripts/Python/interface/SBQueue.i with 100% similarity]
lldb/scripts/interface/SBQueueItem.i [moved from lldb/scripts/Python/interface/SBQueueItem.i with 100% similarity]
lldb/scripts/interface/SBSection.i [moved from lldb/scripts/Python/interface/SBSection.i with 100% similarity]
lldb/scripts/interface/SBSourceManager.i [moved from lldb/scripts/Python/interface/SBSourceManager.i with 100% similarity]
lldb/scripts/interface/SBStream.i [moved from lldb/scripts/Python/interface/SBStream.i with 100% similarity]
lldb/scripts/interface/SBStringList.i [moved from lldb/scripts/Python/interface/SBStringList.i with 100% similarity]
lldb/scripts/interface/SBSymbol.i [moved from lldb/scripts/Python/interface/SBSymbol.i with 100% similarity]
lldb/scripts/interface/SBSymbolContext.i [moved from lldb/scripts/Python/interface/SBSymbolContext.i with 100% similarity]
lldb/scripts/interface/SBSymbolContextList.i [moved from lldb/scripts/Python/interface/SBSymbolContextList.i with 100% similarity]
lldb/scripts/interface/SBTarget.i [moved from lldb/scripts/Python/interface/SBTarget.i with 100% similarity]
lldb/scripts/interface/SBThread.i [moved from lldb/scripts/Python/interface/SBThread.i with 100% similarity]
lldb/scripts/interface/SBThreadCollection.i [moved from lldb/scripts/Python/interface/SBThreadCollection.i with 100% similarity]
lldb/scripts/interface/SBThreadPlan.i [moved from lldb/scripts/Python/interface/SBThreadPlan.i with 100% similarity]
lldb/scripts/interface/SBType.i [moved from lldb/scripts/Python/interface/SBType.i with 100% similarity]
lldb/scripts/interface/SBTypeCategory.i [moved from lldb/scripts/Python/interface/SBTypeCategory.i with 100% similarity]
lldb/scripts/interface/SBTypeEnumMember.i [moved from lldb/scripts/Python/interface/SBTypeEnumMember.i with 100% similarity]
lldb/scripts/interface/SBTypeFilter.i [moved from lldb/scripts/Python/interface/SBTypeFilter.i with 100% similarity]
lldb/scripts/interface/SBTypeFormat.i [moved from lldb/scripts/Python/interface/SBTypeFormat.i with 100% similarity]
lldb/scripts/interface/SBTypeNameSpecifier.i [moved from lldb/scripts/Python/interface/SBTypeNameSpecifier.i with 100% similarity]
lldb/scripts/interface/SBTypeSummary.i [moved from lldb/scripts/Python/interface/SBTypeSummary.i with 100% similarity]
lldb/scripts/interface/SBTypeSynthetic.i [moved from lldb/scripts/Python/interface/SBTypeSynthetic.i with 100% similarity]
lldb/scripts/interface/SBUnixSignals.i [moved from lldb/scripts/Python/interface/SBUnixSignals.i with 100% similarity]
lldb/scripts/interface/SBValue.i [moved from lldb/scripts/Python/interface/SBValue.i with 100% similarity]
lldb/scripts/interface/SBValueList.i [moved from lldb/scripts/Python/interface/SBValueList.i with 100% similarity]
lldb/scripts/interface/SBVariablesOptions.i [moved from lldb/scripts/Python/interface/SBVariablesOptions.i with 100% similarity]
lldb/scripts/interface/SBWatchpoint.i [moved from lldb/scripts/Python/interface/SBWatchpoint.i with 100% similarity]
lldb/scripts/lldb.swig
lldb/source/Interpreter/Makefile
lldb/www/SB-api-coding-rules.html

index 72eedca..725a26f 100644 (file)
@@ -1349,7 +1349,7 @@ SEARCH_INCLUDES        = YES
 # contain include files that are not input files but should be processed by
 # the preprocessor.
 
-INCLUDE_PATH           = ../scripts/Python/interface
+INCLUDE_PATH           = ../scripts/interface
 
 # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
 # patterns (like *.h and *.hpp) to filter out the header-files in the
index 04de6fa..7c1deb0 100644 (file)
                                B2A5872514313B480092BFBA /* SBWatchpoint.i */,
                        );
                        name = interface;
-                       path = scripts/Python/interface;
+                       path = scripts/interface;
                        sourceTree = SOURCE_ROOT;
                };
                26274FA414030F79006BA130 /* Darwin-Kernel */ = {
index 98a61f8..9cfe6b9 100644 (file)
@@ -1,6 +1,6 @@
 set(LLVM_NO_RTTI 1)
 
-file(GLOB SWIG_INTERFACES Python/interface/*.i)
+file(GLOB SWIG_INTERFACES interface/*.i)
 file(GLOB_RECURSE SWIG_SOURCES *.swig)
 
 if ( LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION )
index 833845e..bedd4de 100755 (executable)
@@ -131,59 +131,59 @@ HEADER_FILES="${SRC_ROOT}/include/lldb/lldb.h"\
 " ${SRC_ROOT}/include/lldb/API/SBWatchpoint.h"\
 " ${SRC_ROOT}/include/lldb/API/SBUnixSignals.h"
 
-INTERFACE_FILES="${SRC_ROOT}/scripts/Python/interface/SBAddress.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBAttachInfo.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBBlock.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBBreakpoint.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBBreakpointLocation.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBBroadcaster.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBCommandInterpreter.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBCommandReturnObject.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBCommunication.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBCompileUnit.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBData.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBDebugger.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBDeclaration.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBError.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBEvent.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBExecutionContext.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBExpressionOptions.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBFileSpec.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBFrame.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBFunction.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBHostOS.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBInstruction.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBInstructionList.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBLaunchInfo.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBLineEntry.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBListener.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBModule.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBModuleSpec.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBPlatform.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBProcess.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBQueue.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBQueueItem.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBSourceManager.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBStream.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBStringList.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBSymbol.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBSymbolContext.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBTarget.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBThread.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBThreadCollection.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBThreadPlan.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBType.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBTypeCategory.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBTypeFilter.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBTypeFormat.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBTypeNameSpecifier.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBTypeSummary.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBTypeSynthetic.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBValue.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBValueList.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBVariablesOptions.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBWatchpoint.i"\
-" ${SRC_ROOT}/scripts/Python/interface/SBUnixSignals.i"
+INTERFACE_FILES="${SRC_ROOT}/scripts/interface/SBAddress.i"\
+" ${SRC_ROOT}/scripts/interface/SBAttachInfo.i"\
+" ${SRC_ROOT}/scripts/interface/SBBlock.i"\
+" ${SRC_ROOT}/scripts/interface/SBBreakpoint.i"\
+" ${SRC_ROOT}/scripts/interface/SBBreakpointLocation.i"\
+" ${SRC_ROOT}/scripts/interface/SBBroadcaster.i"\
+" ${SRC_ROOT}/scripts/interface/SBCommandInterpreter.i"\
+" ${SRC_ROOT}/scripts/interface/SBCommandReturnObject.i"\
+" ${SRC_ROOT}/scripts/interface/SBCommunication.i"\
+" ${SRC_ROOT}/scripts/interface/SBCompileUnit.i"\
+" ${SRC_ROOT}/scripts/interface/SBData.i"\
+" ${SRC_ROOT}/scripts/interface/SBDebugger.i"\
+" ${SRC_ROOT}/scripts/interface/SBDeclaration.i"\
+" ${SRC_ROOT}/scripts/interface/SBError.i"\
+" ${SRC_ROOT}/scripts/interface/SBEvent.i"\
+" ${SRC_ROOT}/scripts/interface/SBExecutionContext.i"\
+" ${SRC_ROOT}/scripts/interface/SBExpressionOptions.i"\
+" ${SRC_ROOT}/scripts/interface/SBFileSpec.i"\
+" ${SRC_ROOT}/scripts/interface/SBFrame.i"\
+" ${SRC_ROOT}/scripts/interface/SBFunction.i"\
+" ${SRC_ROOT}/scripts/interface/SBHostOS.i"\
+" ${SRC_ROOT}/scripts/interface/SBInstruction.i"\
+" ${SRC_ROOT}/scripts/interface/SBInstructionList.i"\
+" ${SRC_ROOT}/scripts/interface/SBLaunchInfo.i"\
+" ${SRC_ROOT}/scripts/interface/SBLineEntry.i"\
+" ${SRC_ROOT}/scripts/interface/SBListener.i"\
+" ${SRC_ROOT}/scripts/interface/SBModule.i"\
+" ${SRC_ROOT}/scripts/interface/SBModuleSpec.i"\
+" ${SRC_ROOT}/scripts/interface/SBPlatform.i"\
+" ${SRC_ROOT}/scripts/interface/SBProcess.i"\
+" ${SRC_ROOT}/scripts/interface/SBQueue.i"\
+" ${SRC_ROOT}/scripts/interface/SBQueueItem.i"\
+" ${SRC_ROOT}/scripts/interface/SBSourceManager.i"\
+" ${SRC_ROOT}/scripts/interface/SBStream.i"\
+" ${SRC_ROOT}/scripts/interface/SBStringList.i"\
+" ${SRC_ROOT}/scripts/interface/SBSymbol.i"\
+" ${SRC_ROOT}/scripts/interface/SBSymbolContext.i"\
+" ${SRC_ROOT}/scripts/interface/SBTarget.i"\
+" ${SRC_ROOT}/scripts/interface/SBThread.i"\
+" ${SRC_ROOT}/scripts/interface/SBThreadCollection.i"\
+" ${SRC_ROOT}/scripts/interface/SBThreadPlan.i"\
+" ${SRC_ROOT}/scripts/interface/SBType.i"\
+" ${SRC_ROOT}/scripts/interface/SBTypeCategory.i"\
+" ${SRC_ROOT}/scripts/interface/SBTypeFilter.i"\
+" ${SRC_ROOT}/scripts/interface/SBTypeFormat.i"\
+" ${SRC_ROOT}/scripts/interface/SBTypeNameSpecifier.i"\
+" ${SRC_ROOT}/scripts/interface/SBTypeSummary.i"\
+" ${SRC_ROOT}/scripts/interface/SBTypeSynthetic.i"\
+" ${SRC_ROOT}/scripts/interface/SBValue.i"\
+" ${SRC_ROOT}/scripts/interface/SBValueList.i"\
+" ${SRC_ROOT}/scripts/interface/SBVariablesOptions.i"\
+" ${SRC_ROOT}/scripts/interface/SBWatchpoint.i"\
+" ${SRC_ROOT}/scripts/interface/SBUnixSignals.i"
 
 if [ $Debug -eq 1 ]
 then
index c69b24f..0ba22e7 100644 (file)
@@ -152,53 +152,53 @@ def get_header_files( vDictArgs ):
 #--
 def get_interface_files( vDictArgs ):
        dbg = utilsDebug.CDebugFnVerbose( "Python script get_interface_files()" );
-       listIFaceFiles = [      "/scripts/Python/interface/SBAddress.i",
-            "/scripts/Python/interface/SBAttachInfo.i",
-                                               "/scripts/Python/interface/SBBlock.i",
-                                               "/scripts/Python/interface/SBBreakpoint.i",
-                                               "/scripts/Python/interface/SBBreakpointLocation.i",
-                                               "/scripts/Python/interface/SBBroadcaster.i",
-                                               "/scripts/Python/interface/SBCommandInterpreter.i",
-                                               "/scripts/Python/interface/SBCommandReturnObject.i",
-                                               "/scripts/Python/interface/SBCommunication.i",
-                                               "/scripts/Python/interface/SBCompileUnit.i",
-                                               "/scripts/Python/interface/SBData.i",
-                                               "/scripts/Python/interface/SBDebugger.i",
-                                               "/scripts/Python/interface/SBDeclaration.i",
-                                               "/scripts/Python/interface/SBError.i",
-                                               "/scripts/Python/interface/SBEvent.i",
-                                               "/scripts/Python/interface/SBExpressionOptions.i",
-                                               "/scripts/Python/interface/SBFileSpec.i",
-                                               "/scripts/Python/interface/SBFrame.i",
-                                               "/scripts/Python/interface/SBFunction.i",
-                                               "/scripts/Python/interface/SBHostOS.i",
-                                               "/scripts/Python/interface/SBInputReader.i",
-                                               "/scripts/Python/interface/SBInstruction.i",
-                                               "/scripts/Python/interface/SBInstructionList.i",
-            "/scripts/Python/interface/SBLaunchInfo.i",
-                                               "/scripts/Python/interface/SBLineEntry.i",
-                                               "/scripts/Python/interface/SBListener.i",
-                                               "/scripts/Python/interface/SBModule.i",
-                                               "/scripts/Python/interface/SBModuleSpec.i",
-                                               "/scripts/Python/interface/SBProcess.i",
-                                               "/scripts/Python/interface/SBSourceManager.i",
-                                               "/scripts/Python/interface/SBStream.i",
-                                               "/scripts/Python/interface/SBStringList.i",
-                                               "/scripts/Python/interface/SBSymbol.i",
-                                               "/scripts/Python/interface/SBSymbolContext.i",
-                                               "/scripts/Python/interface/SBTarget.i",
-                                               "/scripts/Python/interface/SBThread.i",
-                                               "/scripts/Python/interface/SBThreadCollection.i",
-                                               "/scripts/Python/interface/SBType.i",
-                                               "/scripts/Python/interface/SBTypeCategory.i",
-                                               "/scripts/Python/interface/SBTypeFilter.i",
-                                               "/scripts/Python/interface/SBTypeFormat.i",
-                                               "/scripts/Python/interface/SBTypeNameSpecifier.i",
-                                               "/scripts/Python/interface/SBTypeSummary.i",
-                                               "/scripts/Python/interface/SBTypeSynthetic.i",
-                                               "/scripts/Python/interface/SBValue.i",
-                                               "/scripts/Python/interface/SBValueList.i",
-                                               "/scripts/Python/interface/SBWatchpoint.i" ];   
+       listIFaceFiles = [      "/scripts/interface/SBAddress.i",
+            "/scripts/interface/SBAttachInfo.i",
+                                               "/scripts/interface/SBBlock.i",
+                                               "/scripts/interface/SBBreakpoint.i",
+                                               "/scripts/interface/SBBreakpointLocation.i",
+                                               "/scripts/interface/SBBroadcaster.i",
+                                               "/scripts/interface/SBCommandInterpreter.i",
+                                               "/scripts/interface/SBCommandReturnObject.i",
+                                               "/scripts/interface/SBCommunication.i",
+                                               "/scripts/interface/SBCompileUnit.i",
+                                               "/scripts/interface/SBData.i",
+                                               "/scripts/interface/SBDebugger.i",
+                                               "/scripts/interface/SBDeclaration.i",
+                                               "/scripts/interface/SBError.i",
+                                               "/scripts/interface/SBEvent.i",
+                                               "/scripts/interface/SBExpressionOptions.i",
+                                               "/scripts/interface/SBFileSpec.i",
+                                               "/scripts/interface/SBFrame.i",
+                                               "/scripts/interface/SBFunction.i",
+                                               "/scripts/interface/SBHostOS.i",
+                                               "/scripts/interface/SBInputReader.i",
+                                               "/scripts/interface/SBInstruction.i",
+                                               "/scripts/interface/SBInstructionList.i",
+            "/scripts/interface/SBLaunchInfo.i",
+                                               "/scripts/interface/SBLineEntry.i",
+                                               "/scripts/interface/SBListener.i",
+                                               "/scripts/interface/SBModule.i",
+                                               "/scripts/interface/SBModuleSpec.i",
+                                               "/scripts/interface/SBProcess.i",
+                                               "/scripts/interface/SBSourceManager.i",
+                                               "/scripts/interface/SBStream.i",
+                                               "/scripts/interface/SBStringList.i",
+                                               "/scripts/interface/SBSymbol.i",
+                                               "/scripts/interface/SBSymbolContext.i",
+                                               "/scripts/interface/SBTarget.i",
+                                               "/scripts/interface/SBThread.i",
+                                               "/scripts/interface/SBThreadCollection.i",
+                                               "/scripts/interface/SBType.i",
+                                               "/scripts/interface/SBTypeCategory.i",
+                                               "/scripts/interface/SBTypeFilter.i",
+                                               "/scripts/interface/SBTypeFormat.i",
+                                               "/scripts/interface/SBTypeNameSpecifier.i",
+                                               "/scripts/interface/SBTypeSummary.i",
+                                               "/scripts/interface/SBTypeSynthetic.i",
+                                               "/scripts/interface/SBValue.i",
+                                               "/scripts/interface/SBValueList.i",
+                                               "/scripts/interface/SBWatchpoint.i" ];  
        bDebug = vDictArgs.has_key( "-d" );
        strRt = vDictArgs[ "--srcRoot" ];
        strRt = os.path.normcase( strRt );
index ad3ef4e..153df58 100644 (file)
@@ -280,6 +280,9 @@ def run_swig_for_each_script_supported( vDictArgs ):
         if nDepth == 0:
             break;
 
+    # Skip the directory that contains the interface files.
+    listDirs.remove('interface')
+
     if gbDbgFlag:
         print strSwigScriptLangsFound,
         for dir in listDirs:
index 6cfc255..f11d53d 100644 (file)
@@ -260,6 +260,9 @@ def run_post_process_for_each_script_supported( vDictArgs ):
         if nDepth == 0:
             break;
 
+    # Skip the directory that contains the interface files.
+    listDirs.remove('interface')
+
     if gbDbgFlag:
         print strScriptLangsFound,
         for dir in listDirs:
index 69a262b..265e547 100644 (file)
@@ -129,63 +129,63 @@ import os
 %include "lldb/API/SBDefines.h"
 
 /* Python interface files with docstrings. */
-%include "./Python/interface/SBAddress.i"
-%include "./Python/interface/SBAttachInfo.i"
-%include "./Python/interface/SBBlock.i"
-%include "./Python/interface/SBBreakpoint.i"
-%include "./Python/interface/SBBreakpointLocation.i"
-%include "./Python/interface/SBBroadcaster.i"
-%include "./Python/interface/SBCommandInterpreter.i"
-%include "./Python/interface/SBCommandReturnObject.i"
-%include "./Python/interface/SBCommunication.i"
-%include "./Python/interface/SBCompileUnit.i"
-%include "./Python/interface/SBData.i"
-%include "./Python/interface/SBDebugger.i"
-%include "./Python/interface/SBDeclaration.i"
-%include "./Python/interface/SBError.i"
-%include "./Python/interface/SBEvent.i"
-%include "./Python/interface/SBExecutionContext.i"
-%include "./Python/interface/SBExpressionOptions.i"
-%include "./Python/interface/SBFileSpec.i"
-%include "./Python/interface/SBFileSpecList.i"
-%include "./Python/interface/SBFrame.i"
-%include "./Python/interface/SBFunction.i"
-%include "./Python/interface/SBHostOS.i"
-%include "./Python/interface/SBInstruction.i"
-%include "./Python/interface/SBInstructionList.i"
-%include "./Python/interface/SBLaunchInfo.i"
-%include "./Python/interface/SBLineEntry.i"
-%include "./Python/interface/SBListener.i"
-%include "./Python/interface/SBModule.i"
-%include "./Python/interface/SBModuleSpec.i"
-%include "./Python/interface/SBPlatform.i"
-%include "./Python/interface/SBProcess.i"
-%include "./Python/interface/SBQueue.i"
-%include "./Python/interface/SBQueueItem.i"
-%include "./Python/interface/SBSection.i"
-%include "./Python/interface/SBSourceManager.i"
-%include "./Python/interface/SBStream.i"
-%include "./Python/interface/SBStringList.i"
-%include "./Python/interface/SBSymbol.i"
-%include "./Python/interface/SBSymbolContext.i"
-%include "./Python/interface/SBSymbolContextList.i"
-%include "./Python/interface/SBTarget.i"
-%include "./Python/interface/SBThread.i"
-%include "./Python/interface/SBThreadCollection.i"
-%include "./Python/interface/SBThreadPlan.i"
-%include "./Python/interface/SBType.i"
-%include "./Python/interface/SBTypeCategory.i"
-%include "./Python/interface/SBTypeEnumMember.i"
-%include "./Python/interface/SBTypeFilter.i"
-%include "./Python/interface/SBTypeFormat.i"
-%include "./Python/interface/SBTypeNameSpecifier.i"
-%include "./Python/interface/SBTypeSummary.i"
-%include "./Python/interface/SBTypeSynthetic.i"
-%include "./Python/interface/SBValue.i"
-%include "./Python/interface/SBValueList.i"
-%include "./Python/interface/SBVariablesOptions.i"
-%include "./Python/interface/SBWatchpoint.i"
-%include "./Python/interface/SBUnixSignals.i"
+%include "./interface/SBAddress.i"
+%include "./interface/SBAttachInfo.i"
+%include "./interface/SBBlock.i"
+%include "./interface/SBBreakpoint.i"
+%include "./interface/SBBreakpointLocation.i"
+%include "./interface/SBBroadcaster.i"
+%include "./interface/SBCommandInterpreter.i"
+%include "./interface/SBCommandReturnObject.i"
+%include "./interface/SBCommunication.i"
+%include "./interface/SBCompileUnit.i"
+%include "./interface/SBData.i"
+%include "./interface/SBDebugger.i"
+%include "./interface/SBDeclaration.i"
+%include "./interface/SBError.i"
+%include "./interface/SBEvent.i"
+%include "./interface/SBExecutionContext.i"
+%include "./interface/SBExpressionOptions.i"
+%include "./interface/SBFileSpec.i"
+%include "./interface/SBFileSpecList.i"
+%include "./interface/SBFrame.i"
+%include "./interface/SBFunction.i"
+%include "./interface/SBHostOS.i"
+%include "./interface/SBInstruction.i"
+%include "./interface/SBInstructionList.i"
+%include "./interface/SBLaunchInfo.i"
+%include "./interface/SBLineEntry.i"
+%include "./interface/SBListener.i"
+%include "./interface/SBModule.i"
+%include "./interface/SBModuleSpec.i"
+%include "./interface/SBPlatform.i"
+%include "./interface/SBProcess.i"
+%include "./interface/SBQueue.i"
+%include "./interface/SBQueueItem.i"
+%include "./interface/SBSection.i"
+%include "./interface/SBSourceManager.i"
+%include "./interface/SBStream.i"
+%include "./interface/SBStringList.i"
+%include "./interface/SBSymbol.i"
+%include "./interface/SBSymbolContext.i"
+%include "./interface/SBSymbolContextList.i"
+%include "./interface/SBTarget.i"
+%include "./interface/SBThread.i"
+%include "./interface/SBThreadCollection.i"
+%include "./interface/SBThreadPlan.i"
+%include "./interface/SBType.i"
+%include "./interface/SBTypeCategory.i"
+%include "./interface/SBTypeEnumMember.i"
+%include "./interface/SBTypeFilter.i"
+%include "./interface/SBTypeFormat.i"
+%include "./interface/SBTypeNameSpecifier.i"
+%include "./interface/SBTypeSummary.i"
+%include "./interface/SBTypeSynthetic.i"
+%include "./interface/SBValue.i"
+%include "./interface/SBValueList.i"
+%include "./interface/SBVariablesOptions.i"
+%include "./interface/SBWatchpoint.i"
+%include "./interface/SBUnixSignals.i"
 
 %include "./Python/python-extensions.swig"
 
index 2b37f49..d880876 100644 (file)
@@ -36,7 +36,7 @@ PYTHON_DIR := $(PROJ_OBJ_ROOT)/$(BuildMode)
 SWIG_SOURCES := $(shell find $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts -type f -name '*.swig' -print)
 
 LLDBWrapPython.cpp lldb.py: $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/Python/modify-python-lldb.py \
-                            $(wildcard $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/Python/interface/*.i) \
+                            $(wildcard $(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/interface/*.i) \
                             ${SWIG_SOURCES}
        $(Echo) Generating LLDBWrapPython.cpp
        $(Verb) "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/scripts/build-swig-wrapper-classes.sh" "$(PROJ_SRC_DIR)/$(LLDB_LEVEL)" "$(PROJ_OBJ_DIR)" "$(PROJ_OBJ_DIR)" "$(PYTHON_DIR)" -m $(if $(DISABLE_AUTO_DEPENDENCIES),,-M)
index 3969de9..0f7ef0e 100644 (file)
@@ -59,7 +59,7 @@
                                       <p>Another piece of the SB API infrastructure is the Python (or other script interpreter) customization.  
                                         SWIG allows you to add property access, iterators and documentation to classes, but to do that you have to use
                                         a Swig interface file in place of the .h file. Those files have a different format than a straight C++ header file.  These 
-                                        files are called SB&lt;ClassName&gt;.i, and live in "scripts/Python/interface".  They are constructed by
+                                        files are called SB&lt;ClassName&gt;.i, and live in "scripts/interface".  They are constructed by
                                         starting with the associated .h file, and adding documentation and the Python decorations, etc.  We
                                         do this in a decidedly low-tech way, by maintaining the two files in parallel.  That simplifies the
                                         build process, but it does mean that if you add a method to the C++ API's for an SB class, you have