Ticket #1225: python_plugin.patch

File python_plugin.patch, 3.5 kB (added by yqiang, 3 months ago)
  • Plug-Ins/Python

    old new  
    88 
    99/* Begin PBXBuildFile section */ 
    1010                0A61C80407E05F7200C326B4 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 0A61C80307E05F7200C326B4 /* Localizable.strings */; }; 
    11                 1C0A13E708B036DA00324E25 /* Python.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C0A139C08B036DA00324E25 /* Python.framework */; }; 
    1211                1C0A13F508B0374800324E25 /* JVPythonChatPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C0A13F408B0374800324E25 /* JVPythonChatPlugin.m */; }; 
    1312                1C4FD36807C6BC25000EA451 /* JVPythonPluginLoader.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C4FD36607C6BC25000EA451 /* JVPythonPluginLoader.m */; }; 
    1413                8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */; }; 
     
    1918                089C167FFE841241C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; }; 
    2019                0A61C7FF07E05F6000C326B4 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = "<group>"; }; 
    2120                1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; }; 
    22                 1C0A139C08B036DA00324E25 /* Python.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Python.framework; path = /System/Library/Frameworks/Python.framework; sourceTree = "<absolute>"; }; 
     21                1C0A139C08B036DA00324E25 /* Python.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; name = Python.framework; path = /System/Library/Frameworks/Python.framework; sourceTree = "<absolute>"; }; 
    2322                1C0A13F308B0374800324E25 /* JVPythonChatPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JVPythonChatPlugin.h; sourceTree = "<group>"; }; 
    2423                1C0A13F408B0374800324E25 /* JVPythonChatPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JVPythonChatPlugin.m; sourceTree = "<group>"; }; 
    2524                1C0A141508B0380800324E25 /* pyobjc-api.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "pyobjc-api.h"; sourceTree = "<group>"; }; 
     
    3837                        buildActionMask = 2147483647; 
    3938                        files = ( 
    4039                                8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */, 
    41                                 1C0A13E708B036DA00324E25 /* Python.framework in Frameworks */, 
    4240                        ); 
    4341                        runOnlyForDeploymentPostprocessing = 0; 
    4442                }; 
     
    246244                                OTHER_LDFLAGS = ( 
    247245                                        "-undefined", 
    248246                                        dynamic_lookup, 
     247                                        "-weak_framework", 
     248                                        Python.framework, 
    249249                                ); 
    250250                                PRODUCT_NAME = "Python Support"; 
    251251                                WRAPPER_EXTENSION = plugin; 
     
    273273                                INFOPLIST_FILE = Info.plist; 
    274274                                LIBRARY_SEARCH_PATHS = ""; 
    275275                                OTHER_LDFLAGS = ( 
     276                                        "-weak_library", 
     277                                        /System/Library/Frameworks/Python.framework/Versions/2.5/Python, 
     278                                        "-weak_library", 
     279                                        /System/Library/Frameworks/Python.framework/Versions/2.3/Python, 
    276280                                        "-undefined", 
    277281                                        dynamic_lookup, 
    278282                                );